Skip to content

Commit 4e7c9ee

Browse files
committed
Allow both xml and nml extensions when validating nml 1/2 files
nml is preferred but not required
1 parent 18cde13 commit 4e7c9ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyneuroml/pynml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,13 +874,13 @@ def _evaluate_arguments(args):
874874

875875
exit(0)
876876
elif args.validate:
877-
file_types = ["nml"]
877+
file_types = ["nml","xml"]
878878
pre_args = "-validate"
879879
exit_on_fail = True
880880
run_multi = True
881881

882882
elif args.validatev1:
883-
file_types = ["nml"]
883+
file_types = ["nml","xml"]
884884
pre_args = "-validatev1"
885885
exit_on_fail = True
886886
run_multi = True

0 commit comments

Comments
 (0)