magrittetorch.utils.io
- class magrittetorch.utils.io.IO(save_location: str)
- read(dataCollection: DataCollection, legacy_mode: bool = False) None
Reads all stored values from a given DataCollection (stored in hdf5 format)
- Parameters:
dataCollection (DataCollection) – The DataCollection storing all values
- Raises:
TypeError – Dev error: when reading a storagetypes.storageTypes for which reading has not yet been implemented
- write(dataCollection: DataCollection) None
Write all stored values from a given DataCollection to hdf5 format
- Parameters:
dataCollection (DataCollection) – The DataCollection storing all values
- Raises:
ValueError – If not all data is already set.
TypeError – Dev error: when reading a storagetypes.storageTypes for which writing has not yet been implemented
- save_location: str
Save location