diff --git a/xrspatial/tests/general_checks.py b/xrspatial/tests/general_checks.py index 0638dc3a6..8978249c0 100644 --- a/xrspatial/tests/general_checks.py +++ b/xrspatial/tests/general_checks.py @@ -32,7 +32,7 @@ def create_test_raster( backend='numpy', name='myraster', dims=['y', 'x'], - attrs={'res': (0.5, 0.5), 'crs': 'EPSG: 5070'}, + attrs={'res': (0.5, 0.5), 'crs': 'EPSG:5070'}, chunks=(3, 3) ): raster = xr.DataArray(data, name=name, dims=dims, attrs=attrs) diff --git a/xrspatial/tests/test_aspect.py b/xrspatial/tests/test_aspect.py index 00a32afeb..070661bad 100644 --- a/xrspatial/tests/test_aspect.py +++ b/xrspatial/tests/test_aspect.py @@ -271,7 +271,7 @@ def _rectangular_cell_raster(backend='numpy', xres=10.0, yres=1.0): data = (X + Y).astype(np.float64) return create_test_raster( data, backend=backend, - attrs={'res': (xres, yres), 'crs': 'EPSG: 5070'}) + attrs={'res': (xres, yres), 'crs': 'EPSG:5070'}) @pytest.mark.parametrize("backend", ['numpy', 'dask+numpy']) diff --git a/xrspatial/tests/test_contour.py b/xrspatial/tests/test_contour.py index c3ee0ff35..fc30f2ae5 100644 --- a/xrspatial/tests/test_contour.py +++ b/xrspatial/tests/test_contour.py @@ -1052,7 +1052,7 @@ def test_geopandas_crs_from_attrs(self): """return_type='geopandas' copies agg.attrs['crs'] onto the gdf.""" pytest.importorskip("geopandas") data = _make_peak() - # create_test_raster sets attrs={'res': ..., 'crs': 'EPSG: 5070'}. + # create_test_raster sets attrs={'res': ..., 'crs': 'EPSG:5070'}. agg = create_test_raster(data, backend='numpy') gdf = contours(agg, levels=[1.5], return_type="geopandas") # GeoPandas normalizes the CRS; check it resolves to EPSG:5070. diff --git a/xrspatial/tests/test_multispectral.py b/xrspatial/tests/test_multispectral.py index f22c0cf8d..10076322b 100644 --- a/xrspatial/tests/test_multispectral.py +++ b/xrspatial/tests/test_multispectral.py @@ -891,7 +891,7 @@ def _tc_band(backend): data = np.random.default_rng(3429).random((6, 6)).astype(np.float32) return create_test_raster( data, backend=backend, dims=['lat', 'lon'], - attrs={'res': (0.5, 0.5), 'crs': 'EPSG: 5070'}, + attrs={'res': (0.5, 0.5), 'crs': 'EPSG:5070'}, ) diff --git a/xrspatial/tests/test_preview.py b/xrspatial/tests/test_preview.py index 4c840bfc1..2e6e88523 100644 --- a/xrspatial/tests/test_preview.py +++ b/xrspatial/tests/test_preview.py @@ -521,7 +521,7 @@ def test_res_passthrough_unchanged(): def test_no_res_attr_stays_absent(): """preview should not invent a res when the input never had one.""" data = np.random.default_rng(1).random((200, 400)).astype(np.float32) - agg = create_test_raster(data, attrs={'crs': 'EPSG: 5070'}) + agg = create_test_raster(data, attrs={'crs': 'EPSG:5070'}) assert 'res' not in agg.attrs result = preview(agg, width=40) assert 'res' not in result.attrs