5454 "pysb_model_from_path" ,
5555 "pysb2amici" ,
5656 "pysb2jax" ,
57+ "MeasurementChannel" ,
5758]
5859
5960CL_Prototype = dict [str , dict [str , Any ]]
@@ -89,11 +90,12 @@ def pysb2jax(
8990 simulations.
9091
9192 :param model:
92- pysb model, :attr:` pysb.core.Model.name ` will determine the name of the
93- generated module
93+ PySB model, :class:`model.name < pysb.core.Model> ` will determine the
94+ name of the generated module.
9495
9596 :param output_dir:
96- see :meth:`amici.de_export.ODEExporter.set_paths`
97+ The directory where the generated model code is stored.
98+ Will be created if it does not exist.
9799
98100 :param observation_model:
99101 The different measurement channels that make up the observation
@@ -113,13 +115,15 @@ def pysb2jax(
113115 if set to ``True``, conservation laws are automatically computed and
114116 applied such that the state-jacobian of the ODE right-hand-side has
115117 full rank. This option should be set to ``True`` when using the Newton
116- algorithm to compute steadystates
118+ algorithm to compute steady states.
117119
118120 :param simplify:
119- see :attr:`amici.DEModel._simplify`
121+ If not ``None``, this function will be used to simplify symbolic
122+ derivative expressions. Receives sympy expressions as only argument.
123+ To apply multiple simplifications, wrap them in a lambda expression.
120124
121125 :param cache_simplify:
122- see :func:`amici.DEModel.__init__`
126+ Whether to cache calls to the simplify method.
123127 Note that there are possible issues with PySB models:
124128 https://github.com/AMICI-dev/AMICI/pull/1672
125129
@@ -190,11 +194,12 @@ def pysb2amici(
190194 simulations.
191195
192196 :param model:
193- pysb model, :attr:` pysb.core.Model.name ` will determine the name of the
194- generated module
197+ PySB model, :class:`model.name < pysb.core.Model> ` will determine the
198+ name of the generated module.
195199
196200 :param output_dir:
197- see :meth:`amici.de_export.ODEExporter.set_paths`
201+ The directory where the generated model code is stored.
202+ Will be created if it does not exist.
198203
199204 :param observation_model:
200205 The different measurement channels that make up the observation
@@ -234,12 +239,14 @@ def pysb2amici(
234239 just generate the source code.
235240
236241 :param simplify:
237- see :attr:`amici.DEModel._simplify`
242+ If not ``None``, this function will be used to simplify symbolic
243+ derivative expressions. Receives sympy expressions as only argument.
244+ To apply multiple simplifications, wrap them in a lambda expression.
238245
239246 :param cache_simplify:
240- see :func:`amici.DEModel.__init__`
241- Note that there are possible issues with PySB models:
242- https://github.com/AMICI-dev/AMICI/pull/1672
247+ Whether to cache calls to the simplify method.
248+ Note that there are possible issues with PySB models:
249+ https://github.com/AMICI-dev/AMICI/pull/1672
243250
244251 :param generate_sensitivity_code:
245252 if set to ``False``, code for sensitivity computation will not be
@@ -341,12 +348,14 @@ def ode_model_from_pysb_importer(
341348 see :func:`amici.importers.pysb.pysb2amici`
342349
343350 :param simplify:
344- see :attr:`amici.DEModel._simplify`
351+ If not ``None``, this function will be used to simplify symbolic
352+ derivative expressions. Receives sympy expressions as only argument.
353+ To apply multiple simplifications, wrap them in a lambda expression.
345354
346355 :param cache_simplify:
347- see :func:`amici.DEModel.__init__`
348- Note that there are possible issues with PySB models:
349- https://github.com/AMICI-dev/AMICI/pull/1672
356+ Whether to cache calls to the simplify method.
357+ Note that there are possible issues with PySB models:
358+ https://github.com/AMICI-dev/AMICI/pull/1672
350359
351360 :param verbose: verbosity level for logging, True/False default to
352361 :attr:`logging.DEBUG`/:attr:`logging.ERROR`
@@ -1599,7 +1608,8 @@ def _get_changed_stoichiometries(
15991608
16001609
16011610def pysb_model_from_path (pysb_model_file : str | Path ) -> pysb .Model :
1602- """Load a pysb model module and return the :class:`pysb.Model` instance
1611+ """
1612+ Load a PySB model module and return the :class:`pysb.core.Model` instance.
16031613
16041614 :param pysb_model_file: Full or relative path to the PySB model module
16051615 :return: The pysb Model instance
0 commit comments