Skip to content

Commit

Permalink
Fix gaussian basis set
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed May 27, 2024
1 parent 76bad16 commit ba6c7cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electronicparsers/gaussian/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ def resolve_xc_functional(parameter):
self.logger.error(
'Found multiple or no basis set', data=dict(n_parsed=len(basis_sets))
)
bs = None
for basis_set in basis_sets:
bs = BasisSet(
type='gaussians',
Expand All @@ -1414,7 +1415,7 @@ def resolve_xc_functional(parameter):
BasisSetContainer(
type='atom-centered orbitals',
scope=['wavefunction'],
basis_set=[bs],
basis_set=[bs] if bs is not None else [],
)
]

Expand Down

0 comments on commit ba6c7cb

Please sign in to comment.