Skip to content

Commit

Permalink
Fix RMSD with weight and without final Kabsch
Browse files Browse the repository at this point in the history
  • Loading branch information
hmcezar committed Jan 11, 2025
1 parent 43d635a commit 6c04677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clusttraj/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .main import main

__version__ = "0.3.1"
__version__ = "0.3.2"

__all__ = [
"main",
Expand Down
4 changes: 1 addition & 3 deletions clusttraj/distmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,7 @@ def compute_distmat_line(
if nsatoms and reorder and not final_kabsch:
if weight_solute:
diff = Pr - Q
distmat.append(
np.sqrt(np.dot(W, np.sum(diff * diff, axis=1)) / Pr.shape[0])
)
distmat.append(np.sqrt(np.dot(W, np.sum(diff * diff, axis=1))))
else:
distmat.append(rmsd.rmsd(Pr, Q))
else:
Expand Down

0 comments on commit 6c04677

Please sign in to comment.