Skip to content

Commit

Permalink
Merge pull request #31 from pnnl/attribute-fix
Browse files Browse the repository at this point in the history
Reenable attribute propagation from QM result to geometry instance
  • Loading branch information
jessbade authored Apr 15, 2024
2 parents 8233598 + 2c7d23c commit e828c62
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion isicle/qm.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,14 @@ def finish(self):
# Parse results
result = parser.parse()

return result
# Update this instance attributes
self.__dict__.update(result)

# Update geom attributes
self.geom.add___dict__(
{k: v for k, v in result.items() if k != 'geom'})

return self

def run(self, geom, template=None, tasks='energy', functional='b3lyp',
basis_set='6-31g*', ao_basis='cartesian', charge=0,
Expand Down

0 comments on commit e828c62

Please sign in to comment.