Skip to content

Commit

Permalink
TST Sharpen rms error tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervdw committed Jun 23, 2016
1 parent 3f94319 commit 97cbba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trackpy/tests/test_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def test_ep(self):
# background average and standard deviation can be estimated within 1%
# accuracy.

# The (relative) tolerance for ep in this test is 10% pixels.
# The tolerance for ep in this test is 0.005 px.
# Parameters are tweaked so that there is no deviation due to a too
# small mask size. Noise/signal ratios up to 50% are tested.
self.check_skip()
Expand All @@ -686,7 +686,7 @@ def test_ep(self):

_, actual = sort_positions(f[['y', 'x']].values, expected)
rms_dev = np.sqrt(np.mean(np.sum((actual-expected)**2, 1)))
assert_allclose(rms_dev, f['ep'].mean(), rtol=0.1)
assert_allclose(rms_dev, f['ep'].mean(), atol=0.005)

# Additionally test the measured noise
actual_noise = tp.uncertainty.measure_noise(image, image_noisy,
Expand Down

1 comment on commit 97cbba8

@nkeim
Copy link
Contributor

@nkeim nkeim commented on 97cbba8 Jun 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!!

Please sign in to comment.