-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Details
- It's possible to serialize the entire state of an
Instrobject to file, including to anHDF5file. - Retrieving the full
Instrobject from this state is slow for as-yet-undetermined reasons. - Sometimes only part of the state is needed, and a modification to
load_hdf5would be possible to enable specifying what part of the file to load more-quickly.
Ideas
- Profile de-serialization to work out what part(s) are possibly worth improving
- Add an in-file
pathkeyword argument toload_hdf5to select out just, e.g., the instrument parameters.
Temporary workaround
import h5py
from mccode_antlr.io.hdf5 import HDF5IO
with h5py.File(filename, 'r', driver='core', backing_store=False) as file:
return HDF5IO.load(file['parameters'])Metadata
Metadata
Assignees
Labels
No labels