Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'osm2gmns' has no attribute 'connectPOIWithNet' #3

Closed
d-camargo opened this issue Jan 11, 2022 · 1 comment
Closed

Comments

@d-camargo
Copy link

Hi, everyone.
The latest version of osm2gmns that I've got (by 'pip install osm2gmns') was 0.6.3, this error appear:
AttributeError: module 'osm2gmns' has no attribute 'connectPOIWithNet'

I did the downgrade to 0.6.2 and I got the same error. My code was:

import osm2gmns as og 
net = og.getNetFromOSMFile('cefet_ns.osm', default_lanes=True, POI=True)
og.connectPOIWithNet(net)
og.generateNodeActivityInfo(net)
og.consolidateComplexIntersections(net)
og.generateMovements(net)
og.outputNetToCSV(net)
og.show(net)

PS.: I'm using PyCharm to process. The argument 'POIs' (in the second line of the code), as it is in the documentation bring another error:
net = og.getNetFromOSMFile('cefet_ns.osm', default_lanes=True, POIs=True)
TypeError: getNetFromOSMFile() got an unexpected keyword argument 'POIs'
After use 'POI' the argument error disappear.

Something has changed on the use of connectPOIWithNet?

@jiawlu
Copy link
Owner

jiawlu commented Jan 16, 2022

Hi,

Thanks for reporting the bug. We will fix the function connectPOIWithNet() in the next release.

@jiawlu jiawlu closed this as completed Mar 5, 2022
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

No branches or pull requests

2 participants