Skip to content

Commit

Permalink
Update test_atomicdistances.py
Browse files Browse the repository at this point in the history
removed the .distances
  • Loading branch information
talagayev authored Dec 5, 2024
1 parent cbb3e66 commit 16a0605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/MDAnalysisTests/analysis/test_atomicdistances.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_ad_pairwise_dist(self, ad_ag1, ad_ag2,
correctly calculated without PBCs.'''
pairwise_no_pbc = ad.AtomicDistances(ad_ag1, ad_ag2,
pbc=False).run()
actual = pairwise_no_pbc.results.distances
actual = pairwise_no_pbc.results

# compare with expected values from dist()
assert_allclose(actual, expected_dist)
Expand All @@ -130,7 +130,7 @@ def test_ad_pairwise_dist_pbc(self, ad_ag1, ad_ag2,
'''Ensure that pairwise distances between atoms are
correctly calculated with PBCs.'''
pairwise_pbc = ad.AtomicDistances(ad_ag1, ad_ag2).run()
actual = pairwise_pbc.results.distances
actual = pairwise_pbc.results

# compare with expected values from dist()
assert_allclose(actual, expected_pbc_dist)

0 comments on commit 16a0605

Please sign in to comment.