-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix qproc non-empty fibermaps #1587
Conversation
This looks fine to me, but for a cross check could you provide a cut-and-pasteable test case that fails (or does the incorrect thing) with current master and works with this branch? |
Yes, I'll add a unit test that demonstrates that not including the fibermap just reproduces the behavior in the main branch. |
I don't want to turn down the offer for adding unit tests, but I was asking for something even more minimal than that: what nightwatch or qproc command should someone run and how can they tell whether the right fibermap is being used, even if done as a one-off test of the PR? |
OK, in the course of writing instructions on how to test this, I discovered a problem with the branch, so I'm converting the PR to a draft until I fix it. Meanwhile, here are instructions for a one-off test at NERSC. This default mode of creating an empty fibermap in preproc and using that empty fibermap in qproc is tested by running:
To test using a fibermap, create one and use it as follows:
Then check the FIBERMAP HDU in the preproc and qproc output FITS files using
Please let me know if you want this documented in a README or if this comment is good enough. |
This comment is good enough; no need for adding README. Thanks for specific example. |
I'm converting this PR back from draft mode. The issue was I noticed differences in the Nightwatch QA and wanted to track down the origin. I confirmed the PR does not affect any of the qframe or qcframe output. Only qsky is different, because if a good fibermap with SKY fibers isn't available, qproc sorts the fibers by flux and uses the 50% faintest ones to compute the background. |
Two updates needed for using non-empty fibermaps in qproc:
read_raw
to preventpreproc
from creating an empty default fibermap.qproc_boxcar_extraction
from running past the end of the input traceset.These changes address #1315. I tried not to touch qproc to fix the issue but the changes are necessary.