From 2c7d23cd928c175677526e2ed68619037aef491c Mon Sep 17 00:00:00 2001 From: Sean Colby Date: Mon, 15 Apr 2024 11:22:35 -0700 Subject: [PATCH] Reenable attribute propagation from QM result to geometry instance --- isicle/qm.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/isicle/qm.py b/isicle/qm.py index aef2526..1927641 100644 --- a/isicle/qm.py +++ b/isicle/qm.py @@ -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,