NetworkSim.simulation.tools.load_save
.save_model¶
-
NetworkSim.simulation.tools.load_save.
save_model
(simulator, fname, dir=None, minimal=True)[source]¶ Function to save simulation models as pickle files.
Note that all env variables present in the objects are cleared before saving.
- Parameters
simulator (BaseSimulator or ParallelSimulator) – The simulator to be saved.
fname (str) – The file name of the saved model.
dir (str, optional) – The output directory of the saved model, by default
None
, corresponding to the models directory.minimal (bool, optional) – If file size is further reduced by removing transmitter and receiver objects.