Skip to content

Commit

Permalink
fix bug in compute_error
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Dec 13, 2023
1 parent c1b54ae commit 4e67b85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion container/Dockerfile_python3.10_cuda
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN pip install git+https://github.com/acesuit/MACE.git@55f7411 && \
RUN pip install pyscf

ARG GIT_COMMIT_SHA
RUN pip install 'psiflow[parsl] @ git+https://github.com/molmod/psiflow'
RUN pip install 'psiflow[parsl] @ git+https://github.com/molmod/psiflow@v3.0.1'
RUN pip cache purge

ENV OMPI_MCA_plm_rsh_agent=
Expand Down
4 changes: 2 additions & 2 deletions psiflow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def compute_error(

errors = np.zeros(len(properties))
assert mask.dtype == bool
if not np.any(mask):
return np.nan
if not np.any(mask): # should still return a tuple
return tuple([np.nan for i in range(len(properties))])
if "energy" in properties:
assert "energy" in atoms_0.info.keys()
assert "energy" in atoms_1.info.keys()
Expand Down

0 comments on commit 4e67b85

Please sign in to comment.