ModelManager#

class hyperspy.signal.ModelManager(signal, dictionary=None)#

Bases: object

Container for models.

pop(name)#

Return the restored model and remove it from storage.

Parameters:
namestr

The name of the model to restore and remove.

See also

restore
store
remove
remove(name)#

Remove the given model.

Parameters:
namestr

The name of the model to remove.

See also

restore
store
pop
restore(name)#

Return the restored model.

Parameters:
namestr

The name of the model to restore.

See also

remove
store
pop
store(model, name=None)#

If the given model was created from this signal, stores it.

Parameters:
modelBaseModel (or subclass)

The model to store in the signal.

namestr or None

The name for the model to be stored with.

See also

remove
restore
pop