Pcap
PCAPPacket = TypeAdapter(PCAPStart | PCAPData | PCAPEnd)
module-attribute
Union type for PCAP packets
PCAPData
Bases: PCAPBase
While the original stream sends 3 separate zmq frames (no multipart), this returns a single packet.
Example
PCAPImage(
message_id=2,
version=1,
message_type="data",
frame_number=0,
inttime=[7.1160000000000005, 7.315, 7.093800000000001, 7.1584, 7.1322, 7.1062, 7.0206, 6.9082, 7.0164, 6.912, 6.966, 6.885000000000001, 6.7946, 6.731800000000001, 6.9636000000000005],
triggernumber=[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0],
repeatindex=[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
energy=[8879.101048716273, 8879.299376689953, 8879.5003861779, 8879.699330779304, 8879.8999612314, 8880.099636263549, 8880.300291637586, 8880.499422033765, 8880.700264322526, 8880.900116547104, 8881.099615570443, 8881.29966467182, 8881.499998985424, 8881.700179495409, 8881.900461311128],
INENC3.VAL.Mean=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
Source code in dranspose/data/pcap.py
PCAPEnd
Bases: PCAPBase
Source code in dranspose/data/pcap.py
PCAPStart
Bases: PCAPBase