NREL / routee-compass

An energy-aware routing engine
https://nrel.github.io/routee-compass/
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Fix osmnx deprecation warning #217

Closed nreinicke closed 4 months ago

nreinicke commented 4 months ago

We're currently getting a deprecation warning:

The `get_largest_component` function is deprecated and will be removed in the v2.0.0 release. Replace it with `truncate.largest_component` instead. See the OSMnx v2 migration guide: https://github.com/gboeing/osmnx/issues/1123
  g1 = ox.utils_graph.get_largest_component(g)

The fix should be simple, switch our current usage to the preferred usage. Then, we should make sure everything looks okay.

SnoopJ commented 4 months ago

I'll work on this one