File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -510,9 +510,7 @@ def run(self, problem: Problem) -> ValidationIssue | None:
510510 # Check that there are no duplicate timepoints
511511 counter = Counter (period .time for period in experiment .periods )
512512 duplicates = sorted (
513- time
514- for time , count in counter .items ()
515- if count > 1
513+ time for time , count in counter .items () if count > 1
516514 )
517515 if duplicates :
518516 messages .append (
@@ -912,8 +910,8 @@ def run(self, problem: Problem) -> ValidationIssue | None:
912910 # modelEntityId columns, occurs only once
913911 must_be_unique_ids = []
914912 for mapping in problem .mappings :
915- petab_id : = getattr (mapping , "petab_id" ):
916- model_id : = getattr (mapping , "model_id" ):
913+ petab_id = getattr (mapping , "petab_id" , None )
914+ model_id = getattr (mapping , "model_id" , None )
917915
918916 if petab_id :
919917 must_be_unique_ids .append (petab_id )
You can’t perform that action at this time.
0 commit comments