mszell / bikenwgrowth

Source code for the paper "Growing urban bicycle networks", exploring algorithmically the limitations of urban bicycle network growth
https://GrowBike.Net
GNU Affero General Public License v3.0
69 stars 7 forks source link

upgrade to pre-release OSMnx 2.0 & geopandas 1.0 #14

Open anastassiavybornova opened 2 weeks ago

anastassiavybornova commented 2 weeks ago

current versions incompatible:

Could not solve for environment specs
The following packages are incompatible
├─ geopandas >=1.0  is requested and can be installed;
└─ osmnx >=1.9.4  is not installable because it requires
   └─ geopandas >=0.12,<0.15 , which conflicts with any installable versions previously reported.
anastassiavybornova commented 2 weeks ago

OSMnx migration - tracking warnings

FutureWarning: The geometries module and geometries_from_X functions have been renamed the features module and features_from_X functions. Use these instead. The geometries module and function names are deprecated and will be removed in the v2.0.0 release. See the OSMnx v2 migration guide: https://github.com/gboeing/osmnx/issues/1123 gdf = ox.geometries.geometries_from_polygon(location, poitag)

FutureWarning: The get_undirected function is deprecated and will be removed in the v2.0.0 release. Replace it with convert.to_undirected instead. See the OSMnx v2 migration guide: https://github.com/gboeing/osmnx/issues/1123 Gu = ox.bearing.add_edge_bearings(ox.get_undirected(G))

anastassiavybornova commented 2 weeks ago

Tracking pyproj deprecation warnings

FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1 transformed_sw = pyproj.transform(p_ll, p_mt, sw.x, sw.y) # Transform NW point to equidistant

gboeing commented 5 days ago

@anastassiavybornova in the meantime, if it's useful, you can install the pre-release of OSMnx 2.0.0 beta from pip if you need GeoPandas >=1.0 compatibility. The beta is at this point pretty well tested and an rc is coming shortly.

anastassiavybornova commented 4 days ago

@gboeing thanks for the hint!