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
When running the workflow, I encountered a VALUE ERROR in line 190 in the workflow/scripts/create_modelrun.py
It suggested that the indexed column wouldn't exist even though it did.
I solved by replacing
interp_values = iter(interpolated_values.flatten().astype(float))
for year in range(first_year, end_year + 1):
model_params[name].loc[tuple(index) + (year,)] = next(interp_values)
I also had to modify the function get_types_from_tuple(). My datatype was int64 which wasn't included in the function and raised an error! Currently, only str, int and float are included.
The text was updated successfully, but these errors were encountered:
Timon-R
changed the title
Error in the workflow/scripts/create_modelrun.py
Errors in the workflow/scripts/create_modelrun.py
Jan 23, 2024
When running the workflow, I encountered a VALUE ERROR in line 190 in the workflow/scripts/create_modelrun.py
It suggested that the indexed column wouldn't exist even though it did.
I solved by replacing
with
I also had to modify the function get_types_from_tuple(). My datatype was int64 which wasn't included in the function and raised an error! Currently, only str, int and float are included.
The text was updated successfully, but these errors were encountered: