ranking_HM.Rank.from_hdf5_static#
Back to Class page
Summary#
Load attributes from a hdf5 file into an instance of the class
Signature#
def from_hdf5_static(instance, path, outformat = h5py.Dataset, mode = 'r', load_example_trigs = True, outputdir_to_use = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Instance of the class to load the attributes into |
||
|
Path to the hdf5 file, can also be a File object |
||
|
h5py.Dataset |
Format of the big data in the output (default is dataset, can also be mmap). It can be a string or a type |
|
|
‘r’ |
Mode to open the hdf5 file or mmap in |
|
|
True |
Boolean flag to load the example trigs |
|
|
None |
If given, replace the outputdir with this path for the example trigs |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
BankBG instance with self.fobj set to the hdf5 file |
Docstring#
Load attributes from a hdf5 file into an instance of the class
:param instance: Instance of the class to load the attributes into
:param path: Path to the hdf5 file, can also be a File object
:param outformat:
Format of the big data in the output (default is dataset, can also
be mmap). It can be a string or a type
:param mode: Mode to open the hdf5 file or mmap in
:param load_example_trigs: Boolean flag to load the example trigs
:param outputdir_to_use:
If given, replace the outputdir with this path for the example trigs
:return: BankBG instance with self.fobj set to the hdf5 file