-
Notifications
You must be signed in to change notification settings - Fork 27
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
ox.get_nearest_nodes update required #20
Comments
Hello! Thanks for the heads up. This issue is already solved in the master branch here. In the following weeks an updated version of urbanpy will be available via pip. |
Thanks Claudio , I am facing some issues executing the pub accessibility example would the updated version addresses these issues ? Or it supposed to run smoothly? |
Hello @mohdalattar thanks for the issue. Could you please provide a link for the example you mention to help you? Is one from the notebooks folder? |
@Claudio9701 .. I am trying to execute this exact script |
Since the fix is on the master branch we can install urbanpy latest version as follows: $ git clone --quiet https://github.com/EL-BID/urbanpy.git # Clone latest urbanpy version
$ pip install -r urbanpy/requirements.txt # Install requirements Then you can run your jupyter notebook inside the examples folder and it will work correctly. Here you can find a working colab notebook for this example. Hope you find this usefull. I hope the new version is out soon on pypi. Thank you a lot for using urbanpy! |
Hello @mohdalattar don't hesitate to let me know if the problem is solved 🤗 |
Hi Claudio, I've tried using Jupiter notebook (previously I used Spyder) and when I am executing
I am getting
|
The error OSM_CRS = 'EPSG:4326'
lima_boundaries.crs = OSM_CRS
ax = lima_boundaries.plot(facecolor='none', edgecolor='r')
isochrones.plot('contour', alpha=0.5, ax=ax)
ax.set_axis_off()
cx.add_basemap(ax, source=cx.providers.CartoDB.Positron, crs=OSM_CRS) This undefined crs problem is solved in the latest version of urbanpy which is available in the repo master branch. If you haven't runned this colab notebook yet, I recommend you to run it so you can get in touch with a working example 🤗 . I will try to make the new release on Pypi as son as possible. Thanks for your feedback!! |
any luck? |
Thanks Claudio for following up. I just tested the code in the notebook. It is working well |
Hi,
In routing.py line 702
ox.get_nearest_nodes
should beox.nearest_nodes
and I guess x and y should be reversed as well.The text was updated successfully, but these errors were encountered: