Open pv33 opened 1 year ago
HDF5 format permits groups with subfolder type names (er, subgroups?). Basically it is a hierarchical data format that can be used to collect binary data for use by a builder method. We can even pass a pointer to the group or subgroup and have it access data only associated to it. Also permits something called Attributes. Plus other weird data can be serialized then saved (say as YAML or JSON). When loading it can be de-serialized.
Some links for HDF5 Python
Another option is PyTables, but it looks to be overkill for current needs.
Create save and load machinery for the detector. Some of it might still need to be hard coded until we figure out a good way to save all of the specifications and then load them. Problems lie with the lambda functions. We might need for these things to be partially hard coded (involves builder function that can parse YAML file with interpretation of additional extra fields).