pysal / momepy

Urban Morphology Measuring Toolkit
https://docs.momepy.org
BSD 3-Clause "New" or "Revised" License
496 stars 59 forks source link

ENH: neighbor_distance using Graph and new API #555

Closed martinfleis closed 8 months ago

martinfleis commented 8 months ago

Only a boring 10x speedup here 😃

15.3 s ± 362 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
1.5 s ± 4.38 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

It currently prints warnings but those shall be solved by https://github.com/geopandas/geopandas/issues/1832.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.6%. Comparing base (4037c70) to head (27ce3ca). Report is 5 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pysal/momepy/pull/555/graphs/tree.svg?width=650&height=150&src=pr&token=VNn0WR5JWT&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal)](https://app.codecov.io/gh/pysal/momepy/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal) ```diff @@ Coverage Diff @@ ## main #555 +/- ## ======================================= + Coverage 97.4% 97.6% +0.2% ======================================= Files 26 30 +4 Lines 4328 4752 +424 ======================================= + Hits 4214 4638 +424 Misses 114 114 ``` | [Files](https://app.codecov.io/gh/pysal/momepy/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal) | Coverage Δ | | |---|---|---| | [momepy/functional/\_distribution.py](https://app.codecov.io/gh/pysal/momepy/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal#diff-bW9tZXB5L2Z1bmN0aW9uYWwvX2Rpc3RyaWJ1dGlvbi5weQ==) | `100.0% <100.0%> (ø)` | | | [momepy/functional/tests/test\_distribution.py](https://app.codecov.io/gh/pysal/momepy/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal#diff-bW9tZXB5L2Z1bmN0aW9uYWwvdGVzdHMvdGVzdF9kaXN0cmlidXRpb24ucHk=) | `100.0% <100.0%> (ø)` | |
knaaptime commented 8 months ago

i've spent a bunch of time trying to copy the momepy and spopt test workflow files, but i cannot get that lovely codecov report thing to trigger for any of my packages

martinfleis commented 8 months ago

@knaaptime I believe it is this https://github.com/apps/codecov. You need to configure the Github app.

knaaptime commented 8 months ago

ah, that would help 🙃 thanks.

weird permissions issue. @sjsrey do you mind turning that on for the whole org?

knaaptime commented 8 months ago

pretty neat we get a global overview of the subpackage coverage... (sorry for commandeering this tread :P)

martinfleis commented 8 months ago

That is cool! And @jGaboardi rocks with spaghetti on the top!

knaaptime commented 8 months ago

as usual 🙄

...pretty impressive runner up with inequality, though...

...dont judge me on tobler. that number is BS :P

jGaboardi commented 8 months ago

That is cool! And @jGaboardi rocks with spaghetti on the top!

The only thing that spaghetti is good at! LOL

sjsrey commented 8 months ago

ah, that would help 🙃 thanks.

weird permissions issue. @sjsrey do you mind turning that on for the whole org?

Sure, but what needs to be turned on?

knaaptime commented 8 months ago

@sjsrey try this link https://github.com/apps/codecov and see if you can configure the app for all repositories when you get here

Screenshot 2024-03-06 at 8 12 07 PM
sjsrey commented 8 months ago

@sjsrey try this link https://github.com/apps/codecov and see if you can configure the app for all repositories when you get here Screenshot 2024-03-06 at 8 12 07 PM

It was already configured for all repositories:

image