UDST / urbanaccess

A tool for GTFS transit and OSM pedestrian network accessibility analysis by UrbanSim
https://udst.github.io/urbanaccess/index.html
GNU Affero General Public License v3.0
236 stars 56 forks source link

Needs updating to assure Pandas v.0.23 compatibility #60

Closed davidsvale closed 4 years ago

davidsvale commented 4 years ago

Description of the bug

Pandas v. 0.23.0 (released on May 15, 2018) has deprecated data frame.as_matrix(), used when creating the integrated transit and pedestrian network.

It is used in _nearest_neighbor(df1,df2) within network.py

It should be replaced by dataframe.values

GTFS feed or OSM data (optional)

If the issue is related to a specific GTFS feed or OSM data please provide the URL to download the GTFS feed or the bounding box used to extract the OSM data.

Environment

Paste the code that reproduces the issue here:

# ua.network.integrate_network(urbanaccess_network=urbanaccess_net, headways=False)

Paste the error message (if applicable):

# AttributeError: 'DataFrame' object has no attribute 'as_matrix'
sablanchard commented 4 years ago

Thanks @davidsvale ! We will take a look soon and plan to address this for the next release.

smmaurer commented 4 years ago

Resolved in PR #65, release coming soon.