Skip to content

Commit 784f074

Browse files
dweindldilpath
andcommitted
Update petab/v2/core.py
Co-authored-by: Dilan Pathirana <[email protected]>
1 parent acbbc68 commit 784f074

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

petab/v2/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,9 +1844,7 @@ def has_ml_objective(self) -> bool:
18441844
18451845
:returns: ``True`` if ML objective, ``False`` otherwise.
18461846
"""
1847-
return all(
1848-
p.prior_distribution is None for p in self.parameters if p.estimate
1849-
)
1847+
return not self.has_map_objective
18501848

18511849
def get_priors(self) -> dict[str, Distribution]:
18521850
"""Get prior distributions.

0 commit comments

Comments
 (0)