ranking_HM.Rank.from_hdf5#
Back to Class page
Summary#
Load the class from a hdf5 file
Signature#
def from_hdf5(cls, path, outformat = h5py.Dataset, mode = 'r', load_example_trigs = True, outputdir_to_use = None)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
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 |
|---|---|---|
|
Rank instance with self.fobj set to the hdf5 file |
Docstring#
Load the class from a hdf5 file
: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: Rank instance with self.fobj set to the hdf5 file