@@ -41,8 +41,6 @@ def test_bounds2raster():
41
41
assert rimg .shape == img .shape
42
42
assert rimg .sum () == img .sum ()
43
43
assert_array_almost_equal (rimg .mean (), img .mean ())
44
- assert_array_almost_equal (ext , (0.0 , 939258.2035682457 ,
45
- 6261721.35712164 , 6887893.492833804 ))
46
44
assert_array_almost_equal (ext , (0.0 , 939258.2035682457 ,
47
45
6261721.35712164 , 6887893.492833804 ))
48
46
rtr_bounds = [- 613.0928221724841 , 6262334.050013727 ,
@@ -159,10 +157,10 @@ def test_add_basemap():
159
157
ax_extent = (- 11740727.544603072 , - 11662456.027639052 ,
160
158
4852834.0517692715 , 4891969.810251278 )
161
159
assert_array_almost_equal (ax_extent , ax .images [0 ].get_extent ())
162
- assert ax .images [0 ].get_array ().sum () == 75687792
163
- assert ax .images [0 ].get_array ().shape == (256 , 511 , 3 )
160
+ assert ax .images [0 ].get_array ().sum () == 75853866
161
+ assert ax .images [0 ].get_array ().shape == (256 , 512 , 3 )
164
162
assert_array_almost_equal (ax .images [0 ].get_array ().mean (),
165
- 192.86068982387476 )
163
+ 192.90635681152344 )
166
164
167
165
# Test local source
168
166
f , ax = matplotlib .pyplot .subplots (1 )
@@ -188,10 +186,10 @@ def test_add_basemap():
188
186
ax_extent = (- 11740727.544603072 , - 11691807.846500559 ,
189
187
4852834.0517692715 , 4891969.810251278 )
190
188
assert_array_almost_equal (ax_extent , ax .images [0 ].get_extent ())
191
- assert ax .images [0 ].get_array ().sum () == 719543527
192
- assert ax .images [0 ].get_array ().shape == (1021 , 1276 , 3 )
189
+ assert ax .images [0 ].get_array ().sum () == 723918764
190
+ assert ax .images [0 ].get_array ().shape == (1024 , 1280 , 3 )
193
191
assert_array_almost_equal (ax .images [0 ].get_array ().mean (),
194
- 184.10237852536648 )
192
+ 184.10206197102863 )
195
193
196
194
def test_attribution ():
197
195
f , ax = matplotlib .pyplot .subplots (1 )
0 commit comments