LSSTDESC / rail_sklearn

RAIL algorithms that depend on scikit-learn.
MIT License
1 stars 0 forks source link

add band checks to knn #17

Open sschmidt23 opened 4 months ago

sschmidt23 commented 4 months ago

Addresses #16 by adding a couple of checks on the bands, ref_band, and mag_limits values. My local pytest is acting up, so I don't know if the tests work or not, I'll create a draft PR to run them here.

Code Quality

sschmidt23 commented 4 months ago

and, my mouse slipped and I created areal PR, oops.

sschmidt23 commented 4 months ago

added some linting changes that make the additions looks more substantial than they really are, tests now run ok and should give more informative error messages. Tagging both @aimalz and @hangqianjun for reviewers.

sschmidt23 commented 1 month ago

@hangqianjun it looks like you are working on essentially the same checks in tables_io, should we maybe just abandon this PR rather than merging it and just let tables_io be responsible for the checks?