pysal / pointpats

Planar Point Pattern Analysis in PySAL
https://pysal.org/pointpats/
BSD 3-Clause "New" or "Revised" License
83 stars 27 forks source link

ENH: support geopandas objects in distance statistics #145

Closed martinfleis closed 1 month ago

martinfleis commented 1 month ago

A simple change that allows us to pass geopandas objects directly onto Ripley's functions without a need of extracting the underlying array of coordinates.

This is a part of #135 that does not need me to learn the dispatch thingy :)

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 69.9%. Comparing base (4ecafc6) to head (ef72770). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/pysal/pointpats/pull/145/graphs/tree.svg?width=650&height=150&src=pr&token=0S5nzc1oBN&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal)](https://app.codecov.io/gh/pysal/pointpats/pull/145?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal) ```diff @@ Coverage Diff @@ ## main #145 +/- ## ======================================= + Coverage 69.7% 69.9% +0.2% ======================================= Files 12 12 Lines 1775 1785 +10 ======================================= + Hits 1237 1247 +10 Misses 538 538 ``` | [Files](https://app.codecov.io/gh/pysal/pointpats/pull/145?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal) | Coverage Δ | | |---|---|---| | [pointpats/distance\_statistics.py](https://app.codecov.io/gh/pysal/pointpats/pull/145?src=pr&el=tree&filepath=pointpats%2Fdistance_statistics.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pysal#diff-cG9pbnRwYXRzL2Rpc3RhbmNlX3N0YXRpc3RpY3MucHk=) | `83.0% <100.0%> (+0.8%)` | :arrow_up: |