File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,10 @@ def _evaluate_arguments(args):
578
578
logger .critical ("No input files specified" )
579
579
sys .exit (ARGUMENT_ERR )
580
580
581
+ # check for correct file types
582
+ for f in args .input_files :
583
+ confirm_file_type (f , file_types , sys_error = True )
584
+
581
585
if args .validate_sbml_units :
582
586
# A failed unit consistency check generates an error
583
587
strict_units = True
@@ -612,6 +616,10 @@ def _evaluate_arguments(args):
612
616
logger .critical ("No input files specified" )
613
617
sys .exit (ARGUMENT_ERR )
614
618
619
+ # check for correct file types
620
+ for f in args .input_files :
621
+ confirm_file_type (f , file_types , sys_error = True )
622
+
615
623
try :
616
624
result = validate_sedml_files (args .input_files )
617
625
except Exception as e :
@@ -639,6 +647,10 @@ def _evaluate_arguments(args):
639
647
logger .critical ("No input files specified" )
640
648
sys .exit (ARGUMENT_ERR )
641
649
650
+ # check for correct file types
651
+ for f in args .input_files :
652
+ confirm_file_type (f , file_types , sys_error = True )
653
+
642
654
try :
643
655
if len (args .input_files ) == 1 :
644
656
sedml_file = [args .input_files [0 ]]
You can’t perform that action at this time.
0 commit comments