dynamics
classes.dynamics
Functions
| Name | Description |
|---|---|
| order_by_equations | Orders the derived_variables dictionary based on the key order of the dependent_equations dictionary. |
| update_parameters | Update parameters from ontology. |
order_by_equations
classes.dynamics.order_by_equations(derived_variables, dependent_equations)Orders the derived_variables dictionary based on the key order of the dependent_equations dictionary.
Parameters: derived_variables (dict): Dictionary to be ordered. dependent_equations (dict): Dictionary providing the key order for sorting.
Returns: dict: A new dictionary ordered by the key order from dependent_equations.
update_parameters
classes.dynamics.update_parameters(
metadata,
ontoclass,
verbose=0,
only_used=True,
**kwargs,
)Update parameters from ontology.
Parameters
metadata : Dynamics Model metadata to update ontoclass : owlready2.ThingClass Ontology class verbose : int Verbosity level only_used : bool If True (default), only add parameters that are referenced in equations. If False, add all parameters from ontology (legacy behavior). **kwargs : dict Parameter overrides