Skip to content

Commit

Permalink
removed redundant target_nodata specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-simpson committed Dec 17, 2024
1 parent bcc63c2 commit 47cafc4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test_geoprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def test_reclassify_raster_missing_pixel_value(self):
value_map = {
test_value: 100,
}
target_nodata = -1
with self.assertRaises(
pygeoprocessing.ReclassificationMissingValuesError) as cm:
pygeoprocessing.reclassify_raster(
Expand Down Expand Up @@ -222,7 +221,6 @@ def test_reclassify_raster(self):
value_map = {
test_value: 100,
}
target_nodata = -1
pygeoprocessing.reclassify_raster(
(raster_path, 1), value_map, target_path, gdal.GDT_Float32,
target_nodata, values_required=True)
Expand All @@ -245,7 +243,6 @@ def test_reclassify_raster_no_raster_path_band(self):
value_map = {
test_value: 100,
}
target_nodata = -1
# we expect a value error because we didn't pass a (path, band)
# for the first argument
with self.assertRaises(ValueError):
Expand All @@ -267,7 +264,6 @@ def test_reclassify_raster_empty_value_map(self):

empty_value_map = {
}
target_nodata = -1
with self.assertRaises(ValueError):
pygeoprocessing.reclassify_raster(
(raster_path, 1), empty_value_map, target_path,
Expand Down Expand Up @@ -2118,7 +2114,6 @@ def test_align_and_resize_raster_stack_int_with_vectors(self):
pixel_a_matrix, target_nodata, base_a_path)

pixel_b_matrix = numpy.ones((15, 15), numpy.int16)
target_nodata = -1
base_b_path = os.path.join(self.workspace_dir, 'base_b.tif')
_array_to_raster(
pixel_b_matrix, target_nodata, base_b_path)
Expand Down Expand Up @@ -2225,7 +2220,6 @@ def test_align_and_resize_raster_stack_no_overlap(self):
pixel_a_matrix, target_nodata, base_a_path, origin=[-10*30, 10*30])

pixel_b_matrix = numpy.ones((15, 15), numpy.int16)
target_nodata = -1
base_b_path = os.path.join(self.workspace_dir, 'base_b.tif')
_array_to_raster(pixel_b_matrix, target_nodata, base_b_path)

Expand Down Expand Up @@ -2268,7 +2262,6 @@ def test_align_and_resize_raster_stack_union(self):
pixel_a_matrix, target_nodata, base_a_path, pixel_size=(30, -30))

pixel_b_matrix = numpy.ones((10, 10), numpy.int16)
target_nodata = -1
base_b_path = os.path.join(self.workspace_dir, 'base_b.tif')
_array_to_raster(
pixel_b_matrix, target_nodata, base_b_path, pixel_size=(60, -60))
Expand Down Expand Up @@ -2308,7 +2301,6 @@ def test_align_and_resize_raster_stack_bb(self):
pixel_a_matrix, target_nodata, base_a_path, pixel_size=(30, -30))

pixel_b_matrix = numpy.ones((10, 10), numpy.int16)
target_nodata = -1
base_b_path = os.path.join(self.workspace_dir, 'base_b.tif')
_array_to_raster(
pixel_b_matrix, target_nodata, base_b_path, pixel_size=(30, -30))
Expand Down

0 comments on commit 47cafc4

Please sign in to comment.