SimPEG.directives.SaveModelEveryIteration#

class SimPEG.directives.SaveModelEveryIteration(directory='.', name='InversionModel', **kwargs)[source]#

Bases: SaveEveryIteration

This directive saves the model as a numpy array at each iteration. The default directory is the current directoy and the models are saved as InversionModel-YYYY-MM-DD-HH-MM-iter.npy

Attributes

debug

verbose.debug has been deprecated.

directory

Directory to save results in.

dmisfit

Data misfit associated with the directive.

invProb

Inverse problem associated with the directive.

inversion

Inversion object associated with the directive.

name

Root of the filename to be saved.

opt

Optimization algorithm associated with the directive.

reg

Regularization associated with the directive.

simulation

Return simulation for all data misfits.

survey

Return survey for all data misfits

verbose

Whether or not to print debugging information.

fileName

Methods

endIter()

Update inversion parameter(s) according to directive at end of iteration.

finish()

Update inversion parameter(s) according to directive at end of inversion.

initialize()

Initialize inversion parameter(s) according to directive.

validate([directiveList])

Validate directive.