DUNE-DAQ / detdataformats

Decoders for DUNE raw data
2 stars 2 forks source link

Add python bindings for setters and serialization #43

Closed jmcarcell closed 2 years ago

jmcarcell commented 2 years ago

which allows to create frames and modify frames from python and to save them to binary files (i.e. you can make a frames.bin file with whichever pattern you want directly from python):

with open('frames.bin', 'wb') as f:
    fr = WIBFrame()
    # Modify using the setter if needed
    ...
    #
    f.write(fr.get_bytes())