Skip to content

Commit

Permalink
Cleaning up misc. code from debugging. RE:natcap#1641
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Oct 16, 2024
1 parent 63fb888 commit 292c3e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/invest-autovalidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ def main(sampledatadir):
model_warnings = [] # define here in case of uncaught exception.
try:
LOGGER.info('validating %s ', os.path.abspath(datastack_path))
filepath = r"D:\a\invest\invest\data\invest-sample-data\Annual_Water_Yield\watershed_gura.shp"
LOGGER.info(f"File exists {filepath}: ", os.path.exists(filepath))
model_warnings = getattr(
model_module, 'validate')(paramset.args)
except AttributeError as err:
Expand Down
1 change: 1 addition & 0 deletions src/natcap/invest/urban_nature_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -2548,6 +2548,7 @@ def _warp_lulc(source_lulc_path, target_lulc_path, target_pixel_size,
'near', target_bb=target_bounding_box,
target_projection_wkt=source_raster_info['projection_wkt'])

# if there is no defined nodata, set a default value
if target_nodata is None:
# Guarantee that our nodata cannot be represented by the datatype -
# select a nodata value that's out of range.
Expand Down

0 comments on commit 292c3e2

Please sign in to comment.