Skip to content

ENH: warn and fall back to p-median when k >= p_facilities in KNearestPMedian#511

Open
CONFUZ3 wants to merge 2 commits into
pysal:mainfrom
CONFUZ3:fix/knearest-pmedian-k-gte-p-warning
Open

ENH: warn and fall back to p-median when k >= p_facilities in KNearestPMedian#511
CONFUZ3 wants to merge 2 commits into
pysal:mainfrom
CONFUZ3:fix/knearest-pmedian-k-gte-p-warning

Simplify warning comment for k-nearest constraint

bd48c68
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Mar 25, 2026 in 1s

76.9% (+0.0%) compared to 9b36063

View this Pull Request on Codecov

76.9% (+0.0%) compared to 9b36063

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.9%. Comparing base (9b36063) to head (bd48c68).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #511   +/-   ##
=====================================
  Coverage   76.9%   76.9%           
=====================================
  Files         29      29           
  Lines       3700    3703    +3     
=====================================
+ Hits        2846    2849    +3     
  Misses       854     854           
Files with missing lines Coverage Δ
spopt/locate/p_median.py 98.6% <100.0%> (+<0.1%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.