cottax.ode.consumers.json module

Registers the JSON Spelling of an ODE condition.

class OdeSpelling[source]

Bases: Spelling[OdeCondition]

The states, their rates and their initial values, then the span.

kind: AbstractClassVar[str] = 'ode'

How it is referred to in the file.

write[V: Place](node: OdeCondition[V], w: Writer[Any, V])[source]

The node’s fields; recursive through wrapped nodes (Driven/Implemented)

Return type:

dict

read[V: Place](data: dict, r: Reader[Any, V])[source]

The node data spells: recursive through wrapped nodes (Driven/Implemented)

Return type:

OdeCondition[V]