Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydro none type error #1047

Open
jtgilbert opened this issue Oct 29, 2024 · 1 comment
Open

Hydro none type error #1047

jtgilbert opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
🐛 bug Something isn't working pkg:hydro_context Hydrologic Context Python Package

Comments

@jtgilbert
Copy link
Contributor

e.g. HUC 0430010810

Traceback (most recent call last):
File "/usr/local/src/riverscapes-tools/packages/hydro/hydro/hydro.py", line 304, in main
hydro_context(args.huc, args.dem, args.hillshade, args.igo, args.dgo, args.flowlines, args.output_folder, meta)
File "/usr/local/src/riverscapes-tools/packages/hydro/hydro/hydro.py", line 151, in hydro_context
VALUES ("{huc}", "{row['Name']}", "{row['States']}", "{row['QLow']}", "{row['Q2']}", "{row['MaxDrainage']}", "{row['EcoregionID']}")""")
TypeError: 'NoneType' object is not subscriptable

@jtgilbert jtgilbert self-assigned this Oct 29, 2024
@jtgilbert jtgilbert added 🐛 bug Something isn't working pkg:hydro_context Hydrologic Context Python Package labels Oct 29, 2024
@jtgilbert
Copy link
Contributor Author

These appear to be border HUCs for which there's not an entry in the 'Watersheds' table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working pkg:hydro_context Hydrologic Context Python Package
Projects
None yet
Development

No branches or pull requests

1 participant