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

fix type error #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix type error #11

wants to merge 1 commit into from

Conversation

mmaelicke
Copy link

Hi,
me again. I ran into a strange error, when trying to delineate from megabasins 11 or 12.

for basin in basins:

the for loop over the basins suddenly changes to floats, which makes load_gdf fail:

catchments_gdf = load_gdf("catchments", basin, True)

here, I add a quick fix to force the basinback to integer. However, I do not fully understand why this happens in the first place. From my understanding of the code, the content of basins is not influenced by me, when I change the input outlets.
The only two explanations for me are: nobody tried these to megabasins so far, which is unlikely. The other option is that geopandas is causing the problem. I had to upgrade to geopandas version 1.0.1, as the <= 14.2 versions had problems with pygeos, that I could not solve otherwise.

I still think this needs some investigation, what exactly is happening. Maybe you have yet another idea.

@mheberger
Copy link
Owner

mheberger commented Oct 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants