From 3148781b222514f5bb33cdfa602da25bef4daf9b Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 28 Aug 2021 18:47:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Made=20epsilon=20for=20residual?= =?UTF-8?q?=20scale=20with=20original=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/test_result_consistency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/test_result_consistency.py b/.github/test_result_consistency.py index f7a5c086f..3c35a05b5 100644 --- a/.github/test_result_consistency.py +++ b/.github/test_result_consistency.py @@ -171,8 +171,8 @@ def data_var_test( eps = np.finfo(np.float32).eps rtol = 1e-5 - # if "residual" in expected_var_name: # type:ignore[operator] - # eps = 1e-5 + if expected_var_name.endswith("residual"): # type:ignore[operator] + eps = expected_result["data"].values.max() * 1e-8 if "singular_vectors" in expected_var_name: # type:ignore[operator] rtol = 1e-4