Skip to content

Commit 2e38e82

Browse files
committed
feat(loader): do gate tweaking after document is correctly read
1 parent 42424f3 commit 2e38e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neuroml/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def __nml2_doc(cls, file_name: str) -> neuroml.NeuroMLDocument:
4949
if supressGeneratedsWarnings:
5050
warnings.simplefilter("ignore")
5151
nml2_doc = nmlparse(file_name, silence=True)
52-
utils.move_undetermined_gates_to_typed(nml2_doc)
5352
if supressGeneratedsWarnings:
5453
warnings.resetwarnings()
5554
except Exception as e:
5655
raise Exception("Not a valid NeuroML 2 doc (%s): %s" % (file_name, e), e)
5756

57+
utils.move_undetermined_gates_to_typed(nml2_doc)
5858
return nml2_doc
5959

6060

0 commit comments

Comments
 (0)