Skip to content

Commit

Permalink
Fix BS parsing (related to #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Apr 10, 2020
1 parent 829dbef commit c8acfe2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiida_crystal_dft/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def gto_basis_parser():
pp.Group(pp.OneOrMore(pp.Group(2 * pc.real + pc.signed_integer))))
bs_head = pp.Group(3 * pc.integer + 2 * pc.number)
bs_part = pp.OneOrMore(pp.Group(bs_head +
pp.ZeroOrMore(pp.Group((3 * pc.real + pp.Suppress(pp.LineEnd())) ^
(2 * pc.real + pp.Suppress(pp.LineEnd()))))))
pp.ZeroOrMore(pp.Group(
(3 * pc.sci_real + pp.Suppress(pp.LineEnd())) ^
(2 * pc.sci_real + pp.Suppress(pp.LineEnd()))
))))
return pp.SkipTo(header) + header('header') + pp.Optional(ecp_part('ecp')) + bs_part('bs')

0 comments on commit c8acfe2

Please sign in to comment.