Habitat Quality Model ValueError: cannot convert float NaN to integer

05/05/2023 20:32:20 natcap.invest.utils ERROR Exception while executing natcap.invest.habitat_quality
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 469, in main
File “natcap\invest\habitat_quality.py”, line 392, in execute
File “natcap\invest\habitat_quality.py”, line 393, in
ValueError: cannot convert float NaN to integer

Hi,I don’t know how do i fix it
thank u very much

Hello @geniuscjq and welcome to the forums!

The most likely case here is that you are missing a value in the “habitat” column of your sensitivity table. Please verify that all fields in your sensitivity table are filled out and try re-running the model. If that doesn’t work, would you please upload your sensitivity table here?


1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.