Skip to content

Commit

Permalink
removed float32 conversion and fixed test (result is _more_ precise t…
Browse files Browse the repository at this point in the history
…han test value)
  • Loading branch information
gp0 committed Mar 21, 2015
1 parent b8c75c4 commit 0971f69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/KABSCH/kabsch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export calc_centroid, kabsch, rotate, rmsd, translate_points, kabsch_rmsd
# Calculate root mean square deviation of two matrices A, B
# http://en.wikipedia.org/wiki/Root-mean-square_deviation_of_atomic_positions
function rmsd(A, B)

RMSD = 0.0

# D pairs of equivalent atoms
Expand Down
2 changes: 1 addition & 1 deletion src/KABSCH/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Q = [51.30 -2.99 46.54;

@test_approx_eq_eps rmsd(P,Q) 3.87845580529 1e-4

@test_approx_eq_eps kabsch_rmsd(P,Q) 0.00304375026351 1e-6
@test_approx_eq_eps kabsch_rmsd(P,Q) 0.00304375026351 1e-5

structure = get_structure("examples/data/2HHB.pdb")
chains = get_chains(structure)
Expand Down

0 comments on commit 0971f69

Please sign in to comment.