Closed ljwolf closed 8 months ago
Attention: 15 lines
in your changes are missing coverage. Please review.
Comparison is base (
e24adfb
) 85.0% compared to head (a24c979
) 85.0%. Report is 18 commits behind head on main.
Tests are now added, but pulp installation fails on windows through conda-forge
. Is there a better way to do this?
Tests are now added, but pulp installation fails on windows through
conda-forge
. Is there a better way to do this?
In spopt
we install pulp
via pip
--> https://github.com/pysal/spopt/blob/4760bd9e03f9b31c003bfa7f5d785a2a81b174bd/ci/312-latest.yaml#L32
Looks like numpy
is never being imported --> https://github.com/pysal/libpysal/actions/runs/7159612453/job/19493044782?pr=666#step:7:2098
i think it just needs to be wrapped in a tuple
Yes, but fixing that, I still have fails locally. Will fix.
One question I had for maintainers:
I built the spatial matching framework to be able to do cross-pattern queries. So, something like:
For all points in pattern X, find at least k matched points in pattern Y such that the total distance of X->Y matches are minimised.
I think this would be good to expose in cg
, since it's a general purpose spatial matching function for computational geometry applications. I have something even more general that will probably make it into a separate package for spatial causal inference in python, but the spatial implementation can live here.
So, would it be OK to grab _spatial_matching()
from libpysal.graph._matching
and expose it directly in libpysal.cg
? I could alternatively define a dispatching function that requires the second pattern (y
argument) to be provided.
The code is ready to review. I'm not sure why the ruff check is failing... I've run the ruff auto formatter myself locally on the submission (2c04acf, 215022d, 273e6ea)
The code is ready to review. I'm not sure why the ruff check is failing... I've run the ruff auto formatter myself locally on the submission (2c04acf, 215022d, 273e6ea)
Do you have the most recent ruff
installed locally? I think there was a fresh version released last night. Could be playing a part.
Yes, not quite sure what's up here:
0.1.8 is the most recent version of ruff, and it fixes nothing both in the CI and locally?
It is ruff-format
that is failing, not ruff
linter.
OK! Wasn't clear on the differences between ruff check and format. Sorry!
I think this is complete.
The large diff in base is just moving stuff around to get alphabetic order of builders?
Yes.
I believe I've addressed all comments!
Hi! could one of the approvers please merge this?
thank you!
Hello! Please make sure to check all these boxes before submitting a Pull Request (PR). Once you have checked the boxes, feel free to remove all text except the justification in point 5.
pytest
on your changes. Continuous integration will be run on all PRs with GitHub Actions, but it is good practice to test changes locally prior to a making a PR.pysal/main
branch.todo:
pulp
to our testing matrix.