HDF5 Module#
- class NaxToPy.Modules.common.hdf5.HDF5_NaxTo[source]#
Bases:
object
- create_hdf5() None [source]#
Method used to create an HDF5 file, either in disk (if the FilePath attribute has been filled in), or in memory (if the FilePath boolean attribute has not been filled in). This file will have the following default attributes:
“SOFTWARE”, which will always be “NAXTO”.
“DESCRIPTION”, which will be the FileDescription attribute (if it has been set).
- “CREATION_DATE”, which will be the exact date when this function is called. Its structure will be
HH:MM:SS, DD-MM-YYYY <==> hour:minutes:seconds, day-month-year
- Then, a first group will be created, called “NAXTO”, with the following attributes:
“VERSION”, which will be the NaxTo version used.
“ASSEMBLY”, which will be the NaxToPy version used.
Finally, a second group will be created inside the “NAXTO” group, called “RESULTS”, which will be empty and should be filled with data written in the “write_dataset()” function.
- export_to_HDF5() None [source]#
Method used to convert an HDF5 file that has been created in memory to an HDF5 file in disk, which will be located in the FilePath attribute.
- property File#
- property FileDescription: str#
- property FilePath: str#
- property MemoryFile: bool#