Save/Load
Provided that the sub-modules of B-FADE are correctly imported any instantiated object can be saved and load through bfade.util.save and bfade.util.load, respectively.
Save
Suppose one wish to save the results of the MAP, thus:
save(bay, folder=aStringFolder)
Before folder any number of object can be supplied. save will keep the names that bay and mc were given in the resulting file. Note that the files are given with .bfd extension.
Load
To load previously save objects, use:
load(folder = aStringFolder, extension = ".bfd")
which returns all the objects ending with .bfd. This is particularly suitable for loading multiple objects. Instead, to load an objects that matches a specific name, do:
load(folder = aStringFolder, filename = aStringFilename)
These options can be combined as well:
load(folder = aStringFolder, extension = ".bfd", filename = aStringFilename)