Skip to content

Commit

Permalink
neb/record_models.py was modified
Browse files Browse the repository at this point in the history
  • Loading branch information
hjnpark committed Mar 15, 2024
1 parent c69236d commit ed422c7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions qcportal/qcportal/neb/record_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,12 @@ class NEBRecord(BaseRecord):
optimizations_: Optional[Dict[str, NEBOptimization]] = None
ts_hessian_: Optional[SinglepointRecord] = None
neb_result_: Optional[Molecule] = None
initial_chain_: Optional[List[Molecule]] = None

########################################
# Caches
########################################
_optimizations_cache: Optional[Dict[str, OptimizationRecord]] = PrivateAttr(None)
_final_chain: Optional[List[SinglepointRecord]] = PrivateAttr(None)
_initial_chain: Optional[List[Molecule]] = PrivateAttr(None)
_singlepoints_cache: Optional[Dict[int, List[SinglepointRecord]]] = PrivateAttr(None)

def propagate_client(self, client):
Expand Down Expand Up @@ -235,7 +234,7 @@ def _fetch_initial_chain(self):
List[int],
)

self._initial_chain = self._client.get_molecules(self.initial_chain_molecule_ids_)
self.initial_chain_ = self._client.get_molecules(self.initial_chain_molecule_ids_)

def _fetch_neb_result(self):
self._assert_online()
Expand Down Expand Up @@ -263,9 +262,9 @@ def _handle_includes(self, includes: Optional[Iterable[str]]):

@property
def initial_chain(self) -> List[Molecule]:
if self._initial_chain is None:
if self.initial_chain_ is None:
self._fetch_initial_chain()
return self._initial_chain
return self.initial_chain_

@property
def final_chain(self) -> List[SinglepointRecord]:
Expand Down

0 comments on commit ed422c7

Please sign in to comment.