mcsas3.mcopt.McOpt#

class mcsas3.mcopt.McOpt(loadFromFile: Path | None = None, resultIndex: int = 1, **kwargs: dict)[source]#

Bases: object

Class to store optimization settings and keep track of running variables

__init__(loadFromFile: Path | None = None, resultIndex: int = 1, **kwargs: dict) None[source]#

Initializes the options to the MC algorithm, or loads them from a previous run. Note: If the parameters are loaded from a previous file, any additional key-value pairs are updated.

Methods

__init__([loadFromFile, resultIndex])

Initializes the options to the MC algorithm, or loads them from a previous run.

load(filename[, path, repetition])

store(filename[, path])

stores the settings in an output file (HDF5)

Attributes

accepted

acceptedGofs

acceptedSteps

convCrit

gof

loadKeys

maxAccept

maxIter

modelI

repetition

step

storeKeys

testModelI

testModelV

testX0

weighting

x0

store(filename: Path, path: PurePosixPath | None = None) None[source]#

stores the settings in an output file (HDF5)