Skip to content

Commit

Permalink
Enabled another test of interpolation overshoot tolerances which pass…
Browse files Browse the repository at this point in the history
…es now that #19 has been done
  • Loading branch information
uniomni committed Oct 19, 2011
1 parent 41d58b0 commit 158188e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions impact/tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,10 +856,10 @@ def test_interpolation_lembang(self):
# as this was calculated using EQRM and thus different.
assert numpy.allclose(calculated_mmi, MMI[i], rtol=0.02)

# FIXME (Ole): Disabled until we get onto the
# new interpolation scheme (issue #19)
def Xtest_interpolation_tsunami(self):
"""Interpolation using tsunami data set
def test_interpolation_tsunami(self):
"""Interpolation using tsunami data set works
This is test for issue #19 about interpolation overshoot
"""

# Name file names for hazard level, exposure and expected fatalities
Expand Down Expand Up @@ -893,8 +893,7 @@ def Xtest_interpolation_tsunami(self):
depth_min, depth_max))

if not numpy.isnan(interpolated_depth):
tol = 1.0e-6
assert depth_min - tol <= interpolated_depth <= depth_max, msg
assert depth_min <= interpolated_depth <= depth_max, msg

# FIXME (Ole): This is another test for interpolation. Work in progress.
# Enable when workning on issue #19
Expand Down

0 comments on commit 158188e

Please sign in to comment.