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
Spx io refactor #1082
Spx io refactor #1082
Conversation
Successfully tested along with specex branch io_refactor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're sorting out some pybind11 cleanup and installation procedures on the specex side, but once that is resolved and merged, ok to merge this too.
@weaverba137 do you know how to update the coverage tests to be informative but not flag the PR as failing tests due to a 0.2% drop in coverage? OK to merge once desihub/specex#36 is merged. |
For a long time, we weren't getting any advice at all about coverage because it had been disabled entirely. I re-enabled in what I thought was an advice-only state. However, it appears that not specifying a decrease threshold actually corresponds to any decrease being flagged as an error, rather than simply sending an informational message. So, what thresholds do we set? There are two that need to be specified:
|
@weaverba137 thanks. Let's set the desispec absolute threshold to 25%, and the relative drop threshold to 1% (and that can be done independently of this PR). Note that although 29% looks quite low, many of the "untested" lines of code are:
Some day in the glorious future we'll have an in-person documentation and testing hackfest... |
OK, I'll implement those settings momentarily. Things like plotting code and other IO-related routines can usually be successfully tested with |
desihub/specex#36 merged, now merging this required desispec PR and retesting with master. |
(this pull request is identical to and meant to accompany desihub/specex#36)
A major change to how specex is called by desispec, using pybind11.
Calculations performed on the same day using (i.e. with specex.py as called by desi_compute_psf_mpi)
https://github.com/desihub/desispec/tree/spx_io_refactor
and (with directions for compiling the python shared object module in subdirectory specex_pybind)
https://github.com/desihub/specex/tree/io_refactor
should produce an identical merged psf fit file to that using
https://github.com/desihub/desispec
and
https://github.com/desihub/specex
Please note this pull request is additionally dependent on branch of https://github.com/desihub/specex, as reflected in the URLs above.