pysal / segregation

Segregation Measurement, Inferential Statistics, and Decomposition Analysis
https://pysal.org/segregation/
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

performance enhancements #183

Closed knaaptime closed 2 years ago

knaaptime commented 2 years ago

this PR speeds up the calculation of a few indices by using rvlib, numba, and parallelization. Depends on https://github.com/conda-forge/rvlib-feedstock/pull/14

codecov-commenter commented 2 years ago

Codecov Report

Merging #183 (28d47f9) into master (19940f8) will decrease coverage by 0.07%. The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
- Coverage   63.49%   63.41%   -0.08%     
==========================================
  Files         118      118              
  Lines        4421     4445      +24     
==========================================
+ Hits         2807     2819      +12     
- Misses       1614     1626      +12     
Impacted Files Coverage Δ
segregation/singlegroup/gini.py 95.83% <ø> (-0.17%) :arrow_down:
segregation/singlegroup/spatial_proximity.py 93.75% <ø> (-0.19%) :arrow_down:
segregation/singlegroup/spatial_prox_profile.py 66.66% <36.84%> (-19.70%) :arrow_down:
...egregation/singlegroup/density_corrected_dissim.py 97.50% <100.00%> (+0.06%) :arrow_up:
segregation/singlegroup/modified_dissim.py 90.90% <100.00%> (+1.71%) :arrow_up:
segregation/singlegroup/modified_gini.py 95.12% <100.00%> (+1.18%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 19940f8...28d47f9. Read the comment docs.