Ufunc 'isfinite' not supported for the input types in the NDR model

Hello, I am new to the tool and need the NDR for my thesis, but I am getting his error message… can someone tell me where the problem is, I can also share the documents.

Initializing…
Showing messages with level INFO and higher
2021-01-17 21:31:55,397 utils.prepare_workspace(111) INFO Writing log messages to C:/Users/Public\InVEST-Nutrient-Delivery-Ratio-Model-(NDR)-log-2021-01-17–21_31_55.txt
2021-01-17 21:31:55,401 model._logged_target(1626) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.ndr.ndr 3.8.9:
biophysical_table_path C:/Users/Lenovo/Desktop/GIS Project_1_1-20210114T200657Z-001/GIS Project_1_1/experiment_1.csv
calc_n False
calc_p True
dem_path C:/Users/Lenovo/Desktop/thesis/čmelak/GIS/fill_sinks_copernicus_watershed_25x25.tif
k_param 2
lulc_path C:/Users/Lenovo/Desktop/thesis/čmelak/GIS/LULC_watershed_25x25_values added.tif
n_workers -1
results_suffix nx
runoff_proxy_path C:/Users/Lenovo/Desktop/thesis/čmelak/GIS/clim_data_annual_mean_25x25_eatershed_new_values_monthly_average_2019.tif
subsurface_critical_length_n 200
subsurface_critical_length_p 200
subsurface_eff_n 0.8
subsurface_eff_p 0.8
threshold_flow_accumulation 1000
watersheds_path C:/Users/Lenovo/Desktop/thesis/čmelak/GIS/watershed_polygon_added_info.shp
workspace_dir C:/Users/Public

2021-01-17 21:31:55,489 utils.build_lookup_from_csv(521) WARNING Empty or NaN values were found in the table: C:/Users/Lenovo/Desktop/GIS Project_1_1-20210114T200657Z-001/GIS Project_1_1/experiment_1.csv.
2021-01-17 21:31:55,540 Task.add_task(731) ERROR Something went wrong when adding task runoff proxy mean (8), terminating taskgraph.
Traceback (most recent call last):
File “site-packages\taskgraph\Task.py”, line 697, in add_task
File “site-packages\taskgraph\Task.py”, line 1174, in _call
File “site-packages\natcap\invest\ndr\ndr.py”, line 867, in _normalize_raster
File “<array_function internals>”, line 6, in isclose
File “site-packages\numpy\core\numeric.py”, line 2288, in isclose
TypeError: ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’
2021-01-17 21:31:55,541 model._logged_target(1632) ERROR Exception while executing <function execute at 0x173E5F18>
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\model.py”, line 1629, in _logged_target
File “site-packages\natcap\invest\ndr\ndr.py”, line 490, in execute
File “site-packages\taskgraph\Task.py”, line 697, in add_task
File “site-packages\taskgraph\Task.py”, line 1174, in _call
File “site-packages\natcap\invest\ndr\ndr.py”, line 867, in _normalize_raster
File “<array_function internals>”, line 6, in isclose
File “site-packages\numpy\core\numeric.py”, line 2288, in isclose
TypeError: ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’
2021-01-17 21:31:55,542 model._logged_target(1635) INFO Execution finished
2021-01-17 21:31:55,546 utils.prepare_workspace(117) INFO Elapsed time: 0.15s
2021-01-17 21:31:55,549 execution.run(78) ERROR Target <function InVESTModel.execute_model.._logged_target at 0x1650C4B0> failed with exception
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\execution.py”, line 68, in run
File “site-packages\natcap\invest\ui\model.py”, line 1629, in _logged_target
File “site-packages\natcap\invest\ndr\ndr.py”, line 490, in execute
File “site-packages\taskgraph\Task.py”, line 697, in add_task
File “site-packages\taskgraph\Task.py”, line 1174, in _call
File “site-packages\natcap\invest\ndr\ndr.py”, line 867, in _normalize_raster
File “<array_function internals>”, line 6, in isclose
File “site-packages\numpy\core\numeric.py”, line 2288, in isclose
TypeError: ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’
2021-01-17 21:31:55,550 execution.run(83) INFO Execution finished

Hi @Jakub_Masri,

Thanks for posting and welcome to the Forums! Do you mind attaching the output text file log here? It will be easier for us to parse through that and find out what’s going on. Thanks!

Doug