pyleecan.Functions.Save.save_hdf5 module

save_hdf5(obj, save_path, obj_dict=None)[source]

Save a pyleecan obj in hdf5 format

Parameters:
  • obj (Pyleecan object) – object to save

  • save_path (str) – file path

  • obj_dict (dict) – obj.as_dict to save (optionnal to skip call to as_dict)

pyleecan_dict_to_hdf5(file, obj, obj_dict=None)[source]

Save a dict from a pyleecan object in the hdf5 file

Parameters:
  • file – hdf5 file

  • obj (Pyleecan object) – object to save

  • obj_dict (dict) – obj.as_dict to save (optionnal to skip call to as_dict)

list_to_hdf5(file, group_name, name, list_to_save)[source]

Save a list in the hdf5 file : save it as a ndarray if possible

Parameters:
  • file (HDF5 file) – file to save the data

  • group_name (str) – name of the group

  • name (str) – name to extend the group or to contain the dataset

  • list_to_save (list) – list to save

dict_to_hdf5(file, prefix, dict_to_save)[source]

Save a list in the hdf5 file

variable_to_hdf5(file, prefix, variable, name)[source]