Skip to content

Commit

Permalink
fix broken unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Simkovic committed Mar 29, 2017
1 parent 94fde2e commit 359128f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conkit/core/tests/test_ContactMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ def test_calculate_kernel_density_1(self):
contact_map1.add(c)
density = contact_map1.calculate_kernel_density()
self.assertEqual(
[0.16667107733143438, 0.31043404719558043, 0.2164399375102372, 0.03819316377418961], density)
[0.16474084813765252, 0.261112863222513, 0.19866887264998387, 0.06773394884313075], density)

def test_calculate_kernel_density_2(self):
contact_map1 = ContactMap('foo')
for c in [Contact(1, 5, 1.0), Contact(3, 3, 0.4), Contact(2, 4, 0.1), Contact(3, 4, 0.4)]:
contact_map1.add(c)
density = contact_map1.calculate_kernel_density()
self.assertEqual(
[0.14368199694070077, 0.32329654171162514, 0.23892418165173065, 0.02903560560801715], density)
[0.14936186609839505, 0.2861706643122889, 0.22273876277011645, 0.05660346699219792], density)

def test_find_1(self):
contact_map1 = ContactMap('1')
Expand Down

0 comments on commit 359128f

Please sign in to comment.