pytrnsys_process.util.utils.load_simulations_data_from_pickle#
- pytrnsys_process.util.utils.load_simulations_data_from_pickle(path: ~pathlib.Path, logger: ~logging.Logger = <Logger default_pytrnsys_process (WARNING)>) SimulationsData[source]#
Load SimulationsData from a pickle file.
This function loads a previously saved SimulationsData object from a pickle file.
- Parameters:
path (pathlib.Path) – To the pickle file to load
logger (logging.Logger, optional) – Logger object that will log any messages, warnings, and/or errors
- Returns:
SimulationsData – Reconstructed SimulationsData object
- Return type:
pytrnsys_processing.data_structures.SimulationsData- Raises:
OSError – If there’s an error reading the file:
pickle.UnpicklingError – If the file is corrupted or invalid: