load¶
-
emg3d.io.
load
(fname, **kwargs)[source]¶ Load meshes, models, fields, and other data from disk.
Load and de-serialize
emg3d.meshes.TensorMesh
,emg3d.fields.Field
, andemg3d.models.Model
instances and add arbitrary other data that were saved withsave()
.Parameters: - fname : str
File name including extension. Possibilities:
- ‘.npz’: numpy-binary
- ‘.h5’: h5py-binary (needs h5py)
- ‘.json’: json
- verb : int
If 1 (default) verbose, if 0 silent.
Returns: - out : dict
A dictionary containing the data stored in fname;
emg3d.meshes.TensorMesh
,emg3d.fields.Field
, andemg3d.models.Model
instances are de-serialized and returned as instances.