Skip to content

fix type error#11

Open
mmaelicke wants to merge 1 commit into
mheberger:mainfrom
KIT-HYD:fix-type
Open

fix type error#11
mmaelicke wants to merge 1 commit into
mheberger:mainfrom
KIT-HYD:fix-type

Conversation

@mmaelicke
Copy link
Copy Markdown

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
Copy Markdown
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