Skip to content

Commit 8cb07ee

Browse files
committed
Remove parameter mapping from v2.Problem
Leftover from v1. Never worked. Not planned to implement.
1 parent d140230 commit 8cb07ee

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

petab/v2/core.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from typing_extensions import Self
3333

3434
from ..v1 import (
35-
parameter_mapping,
3635
validate_yaml_syntax,
3736
yaml,
3837
)
@@ -1775,24 +1774,6 @@ def x_fixed_indices(self) -> list[int]:
17751774
"""Parameter table non-estimated parameter indices."""
17761775
return [i for i, p in enumerate(self.parameters) if not p.estimate]
17771776

1778-
# TODO remove in v2?
1779-
def get_optimization_to_simulation_parameter_mapping(self, **kwargs):
1780-
"""
1781-
See
1782-
:py:func:`petab.parameter_mapping.get_optimization_to_simulation_parameter_mapping`,
1783-
to which all keyword arguments are forwarded.
1784-
"""
1785-
return (
1786-
parameter_mapping.get_optimization_to_simulation_parameter_mapping(
1787-
condition_df=self.condition_df,
1788-
measurement_df=self.measurement_df,
1789-
parameter_df=self.parameter_df,
1790-
observable_df=self.observable_df,
1791-
model=self.model,
1792-
**kwargs,
1793-
)
1794-
)
1795-
17961777
def get_priors(self) -> dict[str, Distribution]:
17971778
"""Get prior distributions.
17981779

0 commit comments

Comments
 (0)