readH5

astraeus.hdf5IO.readH5(filename, verbose=True, data=None, keys=None)

Load parameters from a generic HDF5 file to an object.

Parameters

filename: str

File name to load data from, with our without extension

verbose: boolean

Set True to enable print statements declaring success/failure, and optional error message

data: object

Data object instance that parameters are added to. If None, then data object will be created.

keys: list

List of keyword parameters to read from file. If None, then all keywords will be read in.

Returns

data: object

Data object instance that parameters are added to.