Skip to content

Commit

Permalink
Reenable attribute propagation from QM result to geometry instance
Browse files Browse the repository at this point in the history
  • Loading branch information
smcolby committed Apr 15, 2024
1 parent 8233598 commit 2c7d23c
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 2c7d23c

Please sign in to comment.