Closed EwoutH closed 4 months ago
What's the weirdest thing is that I have this notebook tracked in git, and it was running perfectly just a few weeks ago (May 6): https://github.com/EwoutH/urban-self-driving-effects/blob/main/network/create_network.ipynb
I even explicitly tested it with this exact osmnx 2.0.0b0 version. So it almost has to have been an underlying dependency that got updated. Shapely hasn't had a release since April 17th, and the only other option I can maybe think of is geopandas, which had their 1.0 update last week.
Wow it looks like it is geopandas! With geopandas 0.14.4 it actually runs perfectly fine.
Yeah, sorry! This is a regression in geopandas 1.0 that'll be fixed in 1.0.1 in a few days.
I can confirm this is issue was fixed by https://github.com/geopandas/geopandas/issues/3362, thanks a lot @martinfleis!
Contributing guidelines
Documentation
Existing issues
What operating system and Python version are you using?
Windows 11, Python 3.12
What OSMnx version are you using?
2.0.0b0
Environment packages and versions
How did you install OSMnx?
Pip
Problem description
When using a dictionary for tolerances the
consolidate_intersections()
function crashes, while it works with a single tolerance value (replacetolerance=tolerance_dict
withtolerance=1
in the example below).See for context:
1150
1160
Complete minimal reproducible example