natcap / urban-online-workflow

This repository hosts the beta implementation of the Urban Online ES Workflow. The project is intended to give urban planners the ability to create and assess scenarios using InVEST Urban models.
1 stars 5 forks source link

Worker warp algorithm 'nearest' error #78

Closed dcdenu4 closed 1 year ago

dcdenu4 commented 1 year ago

Looks like we need to update nearest to near. This is likely from bumping InVEST from 3.11 to 3.13.

File "/opt/worker/worker.py", line 768, in do_work                                                                                         
     _create_new_lulc(                                                                                                                        
File "/opt/worker/worker.py", line 382, in _create_new_lulc                                                                                
     pygeoprocessing.geoprocessing.warp_raster(                                                                                               
 2023-04-11 18:14:06,977 (157430) ERROR root [validation_exception_handler:91] <starlette.requests.Request object at 0x7f3752398ee0>: 1 valida
type=value_error.missing)                                                                                                                     
   File "/opt/conda/lib/python3.10/site-packages/pygeoprocessing/geoprocessing.py", line 2364, in warp_raster                                 
 ValueError: Invalid resample method: "nearest". Must be one of mode|q1|q3|lanczos|med|max|min|near|cubicspline|cubic|bilinear|rms|average|sum
dcdenu4 commented 1 year ago

This was completed in a previous PR.