finesse.utilities.storage.save

finesse.utilities.storage.save(obj, filename, format=None)[source]

Saves a Finesse solution object to a file. Two options are available: HDF5 and Pickle.

Parameters
objSolution

Solution object generated by a Finesse simulation

filenamestr

A path and filename to save the output. If the path does not exist it will be created.

formatstr, optional

For HDF files use one of “.h5”, “.hdf5”, “.hdf” or pickle files use one of “.pkl”, “.pickle”. If None then the extension of the filename is used.