amici.amici.ModelContext

class amici.amici.ModelContext(model: amici.amici.Model)[source]

The ModelContext temporarily stores amici::Model::state and restores it when going out of scope

__init__(model: amici.amici.Model)[source]

initialize backup of the original values.

Parameters

model (amici.amici.Model) –

Methods Summary

__init__(model)

initialize backup of the original values.

restore()

Restore original state on constructor-supplied amici::Model.

Methods

__init__(model: amici.amici.Model)[source]

initialize backup of the original values.

Parameters

model (amici.amici.Model) –

restore()None[source]

Restore original state on constructor-supplied amici::Model. Will be called during destruction. Explicit call is generally not necessary.

Return type

None