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 d83ca2b commit d209a29Copy full SHA for d209a29
petab/v2/lint.py
@@ -768,8 +768,15 @@ def run(self, problem: Problem) -> ValidationIssue | None:
768
if condition_id in valid_conditions:
769
continue
770
771
- # we assume that all referenced condition IDs are valid
772
- condition = id_to_condition[condition_id]
+ try:
+ condition = id_to_condition[condition_id]
773
+ except KeyError:
774
+ messages.append(
775
+ f"Unable to validate changes for condition "
776
+ f"{condition_id} applied at the start of "
777
+ f"experiment {experiment.id}, as the condition "
778
+ "does not exist."
779
+ )
780
781
used_symbols = {
782
str(sym)
0 commit comments