Skip to content

Commit d2c921f

Browse files
committed
adds no heavy atom support to the non-batched divide-and-conquer RMSD pruning function
1 parent 349c744 commit d2c921f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prism_pruner/pruner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __post_init__(self) -> None:
143143
assert type(self.atoms) is np.ndarray
144144

145145
# pre-compute heavy atom mask once
146-
if self.heavy_atoms_only:
146+
if self.heavy_atoms_only and np.count_nonzero(self.atoms != "H") > 0:
147147
self._heavy_mask: Array1D_bool = self.atoms != "H"
148148
else:
149149
self._heavy_mask = np.ones(self.atoms.shape[0], dtype=np.bool_)

0 commit comments

Comments
 (0)