Recovery Strategy¶
This module contains the definition of a recovery strategy. It has the definition of PickleStrategy that allows to save and import experiments stored as a pickle file.
Example
Creating the strategy:
strategy = PickleStrategy()
-
class
gsf.experiments.strategies.pickle_recovery.
PickleRecovery
¶ Bases:
gsf.experiments.core.recovery_strategy.RecoveryStrategy
Pickle Recovery Strategy
It saves the experiments using the pickle serialization library.
-
load
(data: bytes) → gsf.dynamic_system.core.base_dynamic_sytem.BaseDynamicSystem¶ Recovers a previous existing experiment.
-
save
(experiment: BaseExperiment, *args, **kwargs) → bytes¶ Saves the experiment
-