From c679a45f433dc6cbd326e56eb58bef4aa3c132d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0ev=C4=8D=C3=ADk?= Date: Thu, 9 Jan 2025 15:28:49 +0100 Subject: [PATCH] run pre-commit --- test/test_io_raster.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/test_io_raster.py b/test/test_io_raster.py index 5e230d73..7cff8c0f 100644 --- a/test/test_io_raster.py +++ b/test/test_io_raster.py @@ -409,17 +409,13 @@ def test_resample_from_array(): # not keep 2D in_data = (np.ones(in_tile.shape[1:]),) out_tile = BufferedTilePyramid("geodetic").tile(6, 10, 10) - out_array = resample_from_array(in_data, in_tile.affine, out_tile, keep_2d=False) + out_array = resample_from_array(in_data, in_tile.affine, out_tile, keep_2d=False) assert out_array.shape == (1, 256, 256) # Test ma.MaskedArray input - in_data = ( - ma.MaskedArray( - data=np.ones(in_tile.shape[1:]) - ), - ) + in_data = (ma.MaskedArray(data=np.ones(in_tile.shape[1:])),) out_tile = BufferedTilePyramid("geodetic").tile(6, 10, 10) - out_array = resample_from_array(in_data, in_tile.affine, out_tile) - assert out_array.shape == (1, 256, 256) + out_array = resample_from_array(in_data, in_tile.affine, out_tile) + assert out_array.shape == (1, 256, 256) # errors with pytest.raises(TypeError): in_data = "invalid_type"