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 acbbc68 commit 784f074Copy full SHA for 784f074
petab/v2/core.py
@@ -1844,9 +1844,7 @@ def has_ml_objective(self) -> bool:
1844
1845
:returns: ``True`` if ML objective, ``False`` otherwise.
1846
"""
1847
- return all(
1848
- p.prior_distribution is None for p in self.parameters if p.estimate
1849
- )
+ return not self.has_map_objective
1850
1851
def get_priors(self) -> dict[str, Distribution]:
1852
"""Get prior distributions.
0 commit comments