Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
25bd59fb
Unverified
Commit
25bd59fb
authored
Nov 12, 2020
by
Gao, Xiang
Committed by
GitHub
Nov 12, 2020
Browse files
Using the lalr parser loads networks x2 faster (#9) (#538)
Co-authored-by:
Ignacio Pickering
<
ign.pickering@gmail.com
>
parent
648c970e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchani/neurochem/__init__.py
torchani/neurochem/__init__.py
+2
-2
No files found.
torchani/neurochem/__init__.py
View file @
25bd59fb
...
...
@@ -147,7 +147,7 @@ def load_atomic_network(filename):
%import common.CNAME
%import common.WS
%ignore WS
'''
)
'''
,
parser
=
'lalr'
)
tree
=
parser
.
parse
(
nnf_file
)
# execute parse tree
...
...
@@ -362,7 +362,7 @@ if sys.version_info[0] > 2:
%import common.WS
%ignore WS
%ignore /!.*/
'''
)
# noqa: E501
'''
,
parser
=
'lalr'
)
# noqa: E501
tree
=
parser
.
parse
(
txt
)
class
TreeExec
(
lark
.
Transformer
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment