You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at a user's forums post, the following exception was being raised:
>>> hra._parse_criteria_table('/Users/jdouglass/Downloads/2023-02-18-manipreyamrakash-hra-criteria-table/criteria_score.csv', 'target.csv')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jdouglass/workspace/phargogh/invest/src/natcap/invest/hra.py", line 1781, in _parse_criteria_table
attribute_name = table[current_stressor_header_row][col_index]
UnboundLocalError: local variable 'current_stressor_header_row' referenced before assignment
The problem is that the user's criteria table has the field "HABITAT RESILIENCE ATIRIBUTES " instead of "HABITAT RESILIENCE ATTRIBUTES". The typo is causing the program to break in a cryptic way.
The text was updated successfully, but these errors were encountered:
Now, the criteria table parsing will trim leading/trailing whitespace
from string table cells and will also raise an exception if one or more
of the required table sections is missing.
RE:natcap#1191
Looking at a user's forums post, the following exception was being raised:
The problem is that the user's criteria table has the field
"HABITAT RESILIENCE ATIRIBUTES "
instead of"HABITAT RESILIENCE ATTRIBUTES"
. The typo is causing the program to break in a cryptic way.The text was updated successfully, but these errors were encountered: