Closed cychow2 closed 9 months ago
I looked back for the reason why I added if not np.any(mask): return {"total": ecp_val}
. It had to do with wf.testvalue
not handling zero configs, and I thought it was better to avoid calling it in that case. Another way to address that is to replace ratio = wf.testvalue(e, epos, mask)[0]
with
if np.any(mask):
ratio = wf.testvalue(e, epos, mask)[0]
else:
ratio = np.zeros(P_l.shape[:2])
That might be a simpler fix than generating empty arrays for all the variables or adding an if statement to compute_tmoves.
Fix the following key error
that results from a DMC run. This occurs when the ecp mask of an atom is all
False
.