Skip to content

Commit 648678a

Browse files
dweindldilpath
andauthored
Update petab/v2/core.py
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
1 parent 1b5e7be commit 648678a

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
@@ -1839,9 +1839,7 @@ def has_ml_objective(self) -> bool:
18391839
18401840
:returns: ``True`` if ML objective, ``False`` otherwise.
18411841
"""
1842-
return all(
1843-
p.prior_distribution is None for p in self.parameters if p.estimate
1844-
)
1842+
return not self.has_map_objective
18451843

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

0 commit comments

Comments
 (0)