Skip to content

Commit

Permalink
add examples of incomplete socket output
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Jan 19, 2024
1 parent 5813b51 commit 4fc34b4
Show file tree
Hide file tree
Showing 9 changed files with 13,476 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparc/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def _make_singlepoint(self, calc_results, images, raw_results):
SinglePointDFTCalculators
The calculator also takes parameters from ion, inpt that exist
in self.raw_results
in self.raw_results.
Arguments:
calc_results (List): Calculation results for all images
Expand All @@ -483,7 +483,7 @@ def _make_singlepoint(self, calc_results, images, raw_results):
for res, _atoms in zip(calc_results, images):
atoms = _atoms.copy()
sp = SinglePointDFTCalculator(atoms)
# Simply copy the results?
# Res can be empty at this point, leading to incomplete calc
sp.results.update(res)
sp.name = "sparc"
sp.kpts = raw_results["inpt"].get("params", {}).get("KPOINT_GRID", None)
Expand Down
Loading

0 comments on commit 4fc34b4

Please sign in to comment.