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

Functional arearatio #583

Merged
merged 9 commits into from
Jun 12, 2024
Merged

Functional arearatio #583

merged 9 commits into from
Jun 12, 2024

Conversation

u3ks
Copy link
Collaborator

@u3ks u3ks commented May 20, 2024

reimplemented arearatio using describe_reached.
alternatively we can drop this function in the new api and have the user do the ratio manually like so:

stats= describe_reached(right, right_group_key, result_index=left.index)
result = stats["sum"] / left.values

Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.9%. Comparing base (4037c70) to head (2d02843).
Report is 34 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #583     +/-   ##
=======================================
+ Coverage   97.4%   97.9%   +0.6%     
=======================================
  Files         26      37     +11     
  Lines       4328    5908   +1580     
=======================================
+ Hits        4214    5786   +1572     
- Misses       114     122      +8     
Files Coverage Δ
momepy/functional/tests/test_intensity.py 100.0% <100.0%> (ø)

momepy/functional/_intensity.py Outdated Show resolved Hide resolved
u3ks and others added 7 commits May 31, 2024 11:30
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
…aFrame as enclosure input (pysal#582)

* BUG: ensure custom enclosure index is supported in tessellation

* support both series and datarame as enclosures input

* tests

* typing
* ENH: adaptive buffer as a tessellation limit

* pass kwargs

* version checks and tests

* fix expected
@u3ks u3ks requested a review from martinfleis June 12, 2024 13:32
@martinfleis martinfleis merged commit 99106d9 into pysal:main Jun 12, 2024
14 checks passed
@martinfleis martinfleis added enhancement New feature or request and removed refactor labels Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants