iohandler

load_data(file_path: str)[source]

Loads a PAData instance from an IPASC-formatted HDF5 file.

Parameters:

file_path (str) – Path of the HDF5 file to load the PAData from.

Returns:

PAData instance containing all data and metadata read from the HDF5 file.

Return type:

PAData

write_data(file_path: str, pa_data: PAData, file_compression: Optional[str] = None)[source]

Saves a PAData instance into an HDF5 file according to the IPASC consensus format.

Parameters:
  • file_path (str) – Path of the file to save the dictionary in.

  • pa_data (PAData) – Instance of the PAData class containing all information

  • file_compression (str) – possible file compression for the hdf5 output file. Possible values are: gzip, lzf and szip.

Returns:

This method does not return anything

Return type:

None