grogupy.io.load

grogupy.io.load(infile: str | dict) DefaultTimer | Contour | Kspace | MagneticEntity | Pair | Hamiltonian | Builder[source]

Recreates the instance from a pickled state.

Parameters

infileUnion[str, dict]

Either the path to the file or the appropriate dictionary for the setup

Returns

Union[DefaultTimer, Contour, Kspace, MagneticEntity, Pair, Hamiltonian, Builder]

The instance that was loaded