Skip to content

Commit

Permalink
Using utils' array equals nodata instead of the pygeoprocessing one. RE:
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Oct 9, 2023
1 parent 093e1ef commit c8c7493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/natcap/invest/ndr/ndr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def _mask_op(mask, raster):
result = numpy.full(mask.shape, nodata,
dtype=source_raster_info['numpy_type'])
valid_pixels = (
~pygeoprocessing.array_equals_nodata(raster, nodata) &
~utils.array_equals_nodata(raster, nodata) &
(mask == 1))
result[valid_pixels] = raster[valid_pixels]
return result
Expand Down

0 comments on commit c8c7493

Please sign in to comment.