We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 349c744 commit d2c921fCopy full SHA for d2c921f
prism_pruner/pruner.py
@@ -143,7 +143,7 @@ def __post_init__(self) -> None:
143
assert type(self.atoms) is np.ndarray
144
145
# pre-compute heavy atom mask once
146
- if self.heavy_atoms_only:
+ if self.heavy_atoms_only and np.count_nonzero(self.atoms != "H") > 0:
147
self._heavy_mask: Array1D_bool = self.atoms != "H"
148
else:
149
self._heavy_mask = np.ones(self.atoms.shape[0], dtype=np.bool_)
0 commit comments