pytrnsys_process.util.utils.save_to_pickle#

pytrnsys_process.util.utils.save_to_pickle(data: ~pytrnsys_process.process.data_structures.Simulation | ~pytrnsys_process.process.data_structures.SimulationsData, path: ~pathlib.Path, logger: ~logging.Logger = <Logger default_pytrnsys_process (WARNING)>) None[source]#

Save ResultsForComparison data to a pickle file.

This function saves the entire ResultsForComparison object to a pickle file, preserving all data structures and relationships.

Parameters:
  • data – data object to save

  • path – Path where to save the pickle file

Raises:

OSError – If there’s an error when writing to the file: