Skip to content

Commit

Permalink
Fix upper bound to include principle quantum numbers of 7 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhe authored Apr 24, 2024
1 parent 097a928 commit c8c5f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sktools/src/sktools/calculators/slateratom.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def write(self, workdir):
occ[0], occ[1], self._COMMENT, nn, sc.ANGMOM_TO_SHELL[ll]))

# Occupied shell range
occqns = [[sc.MAX_PRINCIPAL_QN, 0],] * (maxang + 1)
occqns = [[sc.MAX_PRINCIPAL_QN + 1, 0],] * (maxang + 1)
for qn, occ in self._atomconfig.occshells:
nn = qn[0]
ll = qn[1]
Expand Down
2 changes: 1 addition & 1 deletion sktools/src/sktools/skdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def fromhsd(cls, root, query):
occnode = query.findchild(root, "occupations")
for ll, shellname in enumerate(sc.ANGMOM_TO_SHELL):
occ_l = []
for nn in range(ll + 1, sc.MAX_PRINCIPAL_QN):
for nn in range(ll + 1, sc.MAX_PRINCIPAL_QN + 1):
txt = "{:d}{:s}".format(nn, shellname)
shelloccnode = query.findchild(occnode, txt, optional=True)
if shelloccnode is None:
Expand Down

0 comments on commit c8c5f71

Please sign in to comment.