def test_good_case(self): """ Basic tests to ensure correct adjustment factors """ # Magnitude < 6.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(5.5, self.distance), np.array([0.37, 0.22, 0.22])) # 6.0 < Magnitude < 7.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(6.5, self.distance), np.array([0.25, 0.23, 0.23])) # Magnitude > 7.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(7.5, self.distance), np.array([0.40, 0.36, 0.33]))
def test_good_case(self): """ Basic tests to ensure correct adjustment factors """ # Magnitude < 6.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(5.5, self.distance), np.array([0.37, 0.22, 0.22])) # 6.0 < Magnitude < 7.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(6.5, self.distance), np.array([0.25, 0.23, 0.23])) # Magnitude > 7.0 np.testing.assert_array_almost_equal( nga_west2_epistemic_adjustment(7.5, self.distance), np.array([0.40, 0.36, 0.33]))