Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maximilian Schuette
MCS DAQ Data Tools
Commits
66c5f085
Commit
66c5f085
authored
Nov 27, 2020
by
Maximilian Schuette
🌃
Browse files
Added example
parent
2cb0c924
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/mcsdaqtools/DaqTimingPattern.py
View file @
66c5f085
#
# Based on information from https://confluence.desy.de/display/MCS/Timing+Pattern+for+DOOCS+Servers
#
# EXAMPLE
# import numpy as np
# import matplotlib.pyplot as plt
# from mcxdaqtools.DaqTimingPatter import parse_timing_pattern_packed
#
# with h5py.File('sample.hdf5', 'r') as file:
# bunch_pattern = parse_timing_pattern_packed(file['XFEL.DIAG/TIMINGINFO/TIME1.BUNCH_PATTERN/Value'][0])
# plt.figure()
# plt.plot(bunch_pattern.destination[::4])
# plt.yticks([e.value for e in DestinationXfel], [e.name for e in DestinationXfel])
from
collections.abc
import
Sequence
from
enum
import
Enum
,
IntEnum
,
IntFlag
,
unique
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment