File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def test_regrid():
95
95
96
96
# compare with analytical solution
97
97
rel_err = (ds_out ['data_ref' ] - dr_out )/ ds_out ['data_ref' ]
98
- assert np .max (np .abs (rel_err )) == pytest .approx (0.03126 , abs = 1e-5 )
98
+ assert np .max (np .abs (rel_err )) == pytest .approx (0.03126 , abs = 2e-4 )
99
99
100
100
# check metadata
101
101
assert_equal (dr_out ['lat' ].values , ds_out ['lat' ].values )
@@ -138,7 +138,7 @@ def test_regrid_periodic_correct():
138
138
139
139
# compare with analytical solution
140
140
rel_err = (ds_out ['data_ref' ] - dr_out )/ ds_out ['data_ref' ]
141
- assert np .max (np .abs (rel_err )) == pytest .approx (0.00457 , abs = 1e-5 )
141
+ assert np .max (np .abs (rel_err )) == pytest .approx (0.00457 , abs = 2e-4 )
142
142
143
143
# clean-up
144
144
regridder .clean_weight_file ()
@@ -162,7 +162,7 @@ def test_regrid_with_1d_grid():
162
162
163
163
# compare with analytical solution
164
164
rel_err = (ds_out ['data_ref' ] - dr_out )/ ds_out ['data_ref' ]
165
- assert np .max (np .abs (rel_err )) == pytest .approx (0.00457 , abs = 1e-5 )
165
+ assert np .max (np .abs (rel_err )) == pytest .approx (0.00457 , abs = 2e-4 )
166
166
167
167
# metadata should be 1D
168
168
assert_equal (dr_out ['lon' ].values , ds_out_1d ['lon' ].values )
You can’t perform that action at this time.
0 commit comments