Commit 66c5f085 authored by Maximilian Schuette's avatar Maximilian Schuette 🌃
Browse files

Added example

parent 2cb0c924
#
# 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment