Skip to content

Commit

Permalink
Fixed hazardlib tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Oct 3, 2023
1 parent e09ca5e commit b26f058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openquake/hazardlib/tests/geo/surface/simple_fault_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_get_strike_2(self):
def test_get_strike_along_meridian(self):
line = Line([Point(0, 0), Point(1e-5, 1e-3), Point(0, 2e-3)])
surface = SimpleFaultSurface.from_fault_data(line, 1.0, 6.0, 89.9, 0.1)
self.assertAlmostEqual(0, surface.get_strike(), delta=6e-2)
self.assertAlmostEqual(0, surface.get_strike(), delta=7e-2)


class SimpleFaultSurfaceGetDipTestCase(utils.SurfaceTestCase):
Expand Down
2 changes: 1 addition & 1 deletion openquake/hazardlib/tests/source/simple_fault_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_calculate_fault_surface_area(self):
computed = source.get_fault_surface_area()
# Checked with an approx calculaton by hand
expected = 665.66913
self.assertAlmostEqual(computed, expected, places=2)
self.assertAlmostEqual(computed, expected, places=1)


class SimpleFaultParametersChecksTestCase(_BaseFaultSourceTestCase):
Expand Down

0 comments on commit b26f058

Please sign in to comment.