Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 9, 2024
1 parent 625f2b3 commit 7179189
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions python/sdist/amici/petab/petab_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class AmiciPetabProblem:

Check warning on line 14 in python/sdist/amici/petab/petab_problem.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/petab/petab_problem.py#L14

Added line #L14 was not covered by tests
"""Manage experimental conditions based on a PEtab problem definition.
Create :class:`ExpData` objects from a PEtab problem definition, handle
Create :class:`ExpData` objects from a PEtab problem definition, and handle
parameter scales and parameter mapping.
:param petab_problem: PEtab problem definition.
Expand All @@ -24,13 +24,13 @@ class AmiciPetabProblem:
:param scaled_parameters: Whether the provided parameters are on PEtab
`parameterScale` or not.
:param simulation_conditions: Simulation conditions to use for simulation.
It Can be used to subset the conditions in the PEtab problem.
All subsequent operations will only be performed based on that subset.
It can be used to subset the conditions in the PEtab problem.
All subsequent operations will only be performed on that subset.
By default, all conditions are used.
:param store_edatas: Whether to create and store all ExpData objects for
all conditions upfront. If set to False, ExpData objects will be
created and disposed of on the fly during simulation. This can save
memory if many conditions are simulated.
:param store_edatas: Whether to create and store all `ExpData` objects for
all conditions upfront. If set to ``False``, `ExpData` objects will be
created and disposed of on the fly during simulation. The latter saves
memory if the given PEtab problem comprises many simulation conditions.
"""

def __init__(

Check warning on line 36 in python/sdist/amici/petab/petab_problem.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/petab/petab_problem.py#L36

Added line #L36 was not covered by tests
Expand Down Expand Up @@ -148,14 +148,14 @@ def get_edata(
) -> amici.ExpData:
"""Get ExpData object for a given condition.
NOTE: If `store_edatas=True` was passed to the constructor and the
NOTE: If ``store_edatas=True`` was passed to the constructor and the
returned object is modified, the changes will be reflected in the
internal ExpData objects. Also, if parameter values of
AmiciPetabProblem are changed, all ExpData objects will be updated.
internal `ExpData` objects. Also, if parameter values of
`AmiciPetabProblem` are changed, all `ExpData` objects will be updated.
Create a deep copy if you want to avoid this.
:param condition_id: PEtab Condition ID
:param preequilibration_condition_id: PEtab Preequilibration condition ID
:param condition_id: PEtab condition ID
:param preequilibration_condition_id: PEtab preequilibration condition ID
:return: ExpData object
"""
# exists or has to be created?
Expand All @@ -173,10 +173,10 @@ def get_edata(
def get_edatas(self):

Check warning on line 173 in python/sdist/amici/petab/petab_problem.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/petab/petab_problem.py#L173

Added line #L173 was not covered by tests
"""Get all ExpData objects.
NOTE: If `store_edatas=True` was passed to the constructor and the
NOTE: If ``store_edatas=True`` was passed to the constructor and the
returned objects are modified, the changes will be reflected in the
internal ExpData objects. Also, if parameter values of
AmiciPetabProblem are changed, all ExpData objects will be updated.
internal `ExpData` objects. Also, if parameter values of
`AmiciPetabProblem` are changed, all `ExpData` objects will be updated.
Create a deep copy if you want to avoid this.
:return: List of ExpData objects
Expand All @@ -202,8 +202,8 @@ def _create_edata(
) -> amici.ExpData:
"""Create ExpData object for a given condition.
:param condition_id: PEtab Condition ID
:param preequilibration_condition_id: PEtab Preequilibration condition ID
:param condition_id: PEtab condition ID
:param preequilibration_condition_id: PEtab preequilibration condition ID
:return: ExpData object
"""
simulation_condition = pd.DataFrame(

Check warning on line 209 in python/sdist/amici/petab/petab_problem.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/petab/petab_problem.py#L209

Added line #L209 was not covered by tests
Expand Down

0 comments on commit 7179189

Please sign in to comment.