We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 771efd4 commit 6bee396Copy full SHA for 6bee396
tests/utilities/raster_test.py
@@ -1,3 +1,5 @@
1
+from pathlib import Path
2
+
3
import numpy as np
4
import rasterio
5
from rasterio import profiles
@@ -8,9 +10,11 @@
8
10
split_raster_bands,
9
11
stack_raster_arrays,
12
)
-from tests.exploratory_analyses.pca_test import MULTIBAND_RASTER_PATH
13
from tests.raster_processing.clip_test import raster_path as SMALL_RASTER_PATH
14
15
+TESTS_DIR = Path(__file__).parent.parent
16
+MULTIBAND_RASTER_PATH = TESTS_DIR.joinpath("data/remote/small_raster_multiband.tif")
17
18
19
def test_split_raster_bands():
20
"""Test that splitting a multiband raster into singleband raster works as expected."""
0 commit comments