Skip to content

Commit

Permalink
neb.result can be returned from singlepoint records if offline
Browse files Browse the repository at this point in the history
  • Loading branch information
hjnpark committed Apr 26, 2024
1 parent 7a14d48 commit 004f1f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qcportal/qcportal/neb/record_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,12 @@ def singlepoints(self) -> Dict[int, List[SinglepointRecord]]:
return self._singlepoints_cache

@property
def result(self):
def result(self) -> Molecule:
if self.neb_result_ is None and "neb_result_" not in self.__fields_set__:
self._fetch_neb_result()
if self.offline:
self.neb_result_ = max(self.final_chain, key=lambda x: x.properties["return_energy"]).molecule
else:
self._fetch_neb_result()
return self.neb_result_

@property
Expand Down

0 comments on commit 004f1f9

Please sign in to comment.