-
Notifications
You must be signed in to change notification settings - Fork 78
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
ENH: explore method for graph #617
Conversation
Codecov Report
@@ Coverage Diff @@
## main #617 +/- ##
=======================================
+ Coverage 84.4% 84.5% +0.1%
=======================================
Files 139 139
Lines 14857 14963 +106
=======================================
+ Hits 12536 12638 +102
- Misses 2321 2325 +4
|
Shall we aim for API parity with static plots here? |
@knaaptime a side note as I noticed the code in the screenshot above - for explore, CRS makes no difference. Map is always EPSG:3857 and is reprojected under the hood. |
Ah, good call. I get it mixed up with contextily where I need to set it |
Not sure where folks wanna take the api. Don’t have much of an opinion but figured this is enough to get us started |
This is great and apart from that one suggestion works as expected. Nice! Do you want to give a go to tests (ideally mirroring those from |
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
@martinfleis i'll take the first pass, but would probably be speediest if we tag team again. I'll try and do a thorough first draft. Would be interested to cut RCs for lib and esda today for kicking the tires |
related, are there common patterns like this one that are becoming common enough to centralize in a testing module of lib? (a la numpy?). We now have explore in esda, pointpats, and here... its a tiny function so nbd, but there are probably other patterns used across the meta (and i know the original is from geopandas, i just mean there are probably pysal-common testing patterns we could stdize) |
The original is from folium :D. I think it makes sense to centralise stuff as |
looks like this will also require a minimum pin for a recent geopandas |
We'll need to include a version of this as we currently plot both ij and ji. I will take back to this later today and expand tests a bit to ensure similar coverage we have in libpysal/libpysal/graph/_plotting.py Lines 106 to 107 in 3976997
|
Did a bit of refactor based on the code from I think it is ready. It is smooooth! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet!
i need one of you two to approve and merge though, :P then lets do an RC? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks great. One minor comment.
Do we need RC? Can we just do 4.9.0? |
we can just do 49 if you like |
My opinion is that it's never a bad idea to do an RC just to make sure things are working properly. On the other hand, we can delete tags & releases if something is broken. |
I mean, what do you expect to test by RC in this case? |
the only thing with an "unnecessary" RC is that the changelog tooling techninically fails and you need to copy over the changelog |
Making sure the actions (doc build & release) still work as they should. But I won't be stickler on that. Let's just try for the |
Hold on with that, there's a bug in this PR |
aw crap lol i just pushed the tag |
looks like we're doing a 491 today 🙃 |
it'll be 4.9.1 then :D |
I done told yall! 🤣 |
Sorry @jGaboardi, we should listen to you more :D |
(the graph is actually based on network distance so that water observation is a known snapping issue :P)