Skip to content

Commit

Permalink
TST: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Jan 24, 2016
1 parent 69e73ea commit cfb9c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/measure/tests/test_simple_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def test_NRMSE():
x = np.ones(4)
y = np.asarray([0., 2., 2., 2.])
assert_equal(nrmse(y, x, 'mean'), 1/np.mean(y))
assert_equal(nrmse(y, x, 'Euclidean'), 0.5)
assert_equal(nrmse(y, x, 'min-max'), 0.5)
assert_equal(nrmse(y, x, 'Euclidean'), 1/np.sqrt(3))
assert_equal(nrmse(y, x, 'min-max'), 1/(y.max()-y.min()))

assert_equal(nrmse(x, x), 0)

Expand Down

0 comments on commit cfb9c76

Please sign in to comment.