Skip to content

Commit 349c744

Browse files
committed
added comment
1 parent a3c5573 commit 349c744

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

prism_pruner/pruner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,10 @@ def _batch_rmsd_prune(
512512
start_t = perf_counter()
513513

514514
N = len(structures)
515+
516+
# check how many heavy atoms: if none, use all
515517
M = int(np.count_nonzero(atoms != "H"))
518+
516519
heavy_mask: Array1D_bool = (
517520
atoms != "H" if (heavy_atoms_only and M > 0) else np.ones(structures.shape[1], dtype=bool)
518521
)

0 commit comments

Comments
 (0)