Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions petab/v2/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,15 @@ def run(self, problem: Problem) -> ValidationIssue | None:
if condition_id in valid_conditions:
continue

# we assume that all referenced condition IDs are valid
condition = id_to_condition[condition_id]
try:
condition = id_to_condition[condition_id]
except KeyError:
messages.append(
f"Unable to validate changes for condition "
f"{condition_id} applied at the start of "
f"experiment {experiment.id}, as the condition "
"does not exist."
)

used_symbols = {
str(sym)
Expand Down