Xspress
XspressPacket = TypeAdapter(XspressStart | XspressImage | XspressEnd)
module-attribute
Union type for Xspress packets
XspressEnd
Bases: XspressBase
Source code in dranspose/data/xspress3.py
XspressImage
Bases: XspressBase
While the original stream sends 3 separate zmq frames (no multipart), this returns a single packet.
Example
XspressImage(
htype='image',
frame=0,
shape=[4, 4096],
exptime=0.099999875,
type='uint32',
compression='none',
data=array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=uint32),
meta={
'ocr': array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.56250195e-15]),
'AllEvents': array([2, 0, 0, 3], dtype=uint32),
'AllGood': array([0, 0, 0, 1], dtype=uint32),
'ClockTicks': array([7999990, 7999990, 7999990, 7999990], dtype=uint32),
'TotalTicks': array([7999990, 7999990, 7999990, 7999990], dtype=uint32),
'ResetTicks': array([ 0, 0, 0, 91], dtype=uint32),
'event_widths': array([6, 6, 6, 6], dtype=int32),
'dtc': array([1.00000175, 1. , 1. , 1.000014 ])
}
)
Source code in dranspose/data/xspress3.py
XspressStart
Bases: XspressBase