Skip to content

Commit

Permalink
fix: lower 2d det threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
szsdk committed Sep 19, 2024
1 parent ce599be commit f77826e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emcfile/_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def get_ewald_vec(coor: npt.NDArray[Any]) -> npt.NDArray[np.float64]:
with np.errstate(divide="ignore", invalid="ignore"):
coor_shift /= np.linalg.norm(coor_shift, axis=1, keepdims=True)
coor_shift[ca] = 0
is_2d = np.all(np.abs(np.dot(coor_shift, n0.reshape(3, 1))) < 1e-2)
is_2d = np.all(np.abs(np.dot(coor_shift, n0.reshape(3, 1))) < 1e-3)
if is_2d:
return np.array([n0[0], n0[1], n0[2], 0.0])

Expand Down

0 comments on commit f77826e

Please sign in to comment.