ModelManager#

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

Bases: object

Container for models

pop(name)#

Returns the restored model and removes it from storage

Parameters:
namestr

The name of the model to restore and remove

See also

restore
store
remove
remove(name)#

Removes the given model

Parameters:
namestr

The name of the model to remove

See also

restore
store
pop
restore(name)#

Returns 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