Skip to content

Commit

Permalink
Fix different censoring_types are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Doresic committed Nov 11, 2024
1 parent 456824a commit 05cd6bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pypesto/hierarchical/petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,10 @@ def validate_observable_data_types(petab_problem: petab.Problem) -> None:
other_data_type,
other_observables,
) in observables_by_data_type.items():
if data_type == other_data_type:
if data_type == other_data_type or (
data_type in CENSORING_TYPES
and other_data_type in CENSORING_TYPES
):
continue
if observables & other_observables:
raise ValueError(
Expand Down

0 comments on commit 05cd6bd

Please sign in to comment.