From b67bcfad316fa0455d3774ffd3912091942c6510 Mon Sep 17 00:00:00 2001 From: GudniRos Date: Thu, 28 Jan 2016 13:04:13 -0800 Subject: [PATCH] Fix bug in test. --- tests/mt/test_Problem3D_againstAnalytic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mt/test_Problem3D_againstAnalytic.py b/tests/mt/test_Problem3D_againstAnalytic.py index 1cef276d..3eea95ca 100644 --- a/tests/mt/test_Problem3D_againstAnalytic.py +++ b/tests/mt/test_Problem3D_againstAnalytic.py @@ -227,9 +227,9 @@ def appResPhsHalfspace_eFrom_ps_Norm(sigmaHalf,appR=True,expMap=False): # Calculate the app phs app_rpxy, app_rpyx = np.array(getAppResPhs(data)) if appR: - return np.all(np.abs(app_rpxy[0,:] - np.ones(survey.nFreq)/sigmaHalf) * sigmaHalf < .4) + return np.all(np.abs(app_rpxy[0,:] - 1./sigmaHalf) * sigmaHalf < .4) else: - return np.all(np.abs(app_rpxy[1,:] + np.ones(survey.nFreq)*135) / 135 < .4) + return np.all(np.abs(app_rpxy[1,:] + 135) / 135 < .4) class TestAnalytics(unittest.TestCase):