We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5e7be commit 648678aCopy full SHA for 648678a
petab/v2/core.py
@@ -1839,9 +1839,7 @@ def has_ml_objective(self) -> bool:
1839
1840
:returns: ``True`` if ML objective, ``False`` otherwise.
1841
"""
1842
- return all(
1843
- p.prior_distribution is None for p in self.parameters if p.estimate
1844
- )
+ return not self.has_map_objective
1845
1846
def get_priors(self) -> dict[str, Distribution]:
1847
"""Get prior distributions.
0 commit comments