-
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
Night_qa: introduce new ctedet row-by-row diagnosis plot #2312
Conversation
I notice that the "documentation" check didn t pass... |
sphinx is being strict about the indentation under mydicts; I think if you align those lines it will be quiet. |
thanks! that did fix it. |
Thanks Anand. I'd like @schlafly to comment on your choices of restricting the color range and removing the median. The code looks fine to me (I admittedly didn't attempt to understand every line). |
@akremin : thanks for the feedback. about missing 1s flat: the approach is the same as for the previous ctedet diagnosis, ie Lines 170 to 173 in 094c3be
one other thing I could think of: if some camera / petal are missing; I ve not tested that; here, it should have the same behavior as for the dark diagnosis (I adapted that piece of code), i.e. just create an empty figure, so I think it should be robust. desispec/py/desispec/night_qa.py Line 1115 in 094c3be
if you can provide me an example of a 1s flat exposure with missing camera / petal, I can surely run a test (I ll try to look for such an exposure, but you re likely be faster than me, here). about the choices of restricting the color range and removing the median: sorry, I should have mentioned, I ve already iterated with @schlafly on that. |
20240723 had petal 7 missing from its configuration. Would that test your concern? It doesn't have a BADCAMWORD set in the pipeline exposure_table because the camera wasn't in the instance. If you need a night where we flagged a camera as bad I can dig further. Those are quite rare for calibrations. |
thanks that should be perfect for testing (I see |
Anand and I chatted separately re color scales; this looks good to me. |
as usual, @akremin, thanks for raising those points. now the code runs well if one petal is missing: full night qa files for 20240723 here: |
Thank you, Anand. The plots in that last post look great. Are you happy with this PR now or are you still planning to make changes? |
as far as I m concerned, I m happy with the current PR version. |
No, go ahead, thanks!
…On Wed, Aug 7, 2024, 18:49 araichoor ***@***.***> wrote:
as far as I m concerned, I m happy with the current PR version.
don t know if @schlafly <https://github.com/schlafly> would have any
further suggestions?
—
Reply to this email directly, view it on GitHub
<#2312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK2E4MSHZVJ7BPCAH4GUDTZQKP53AVCNFSM6AAAAABME77ATSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZUGQ3TONZXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This PR introduces a new plot to diagnose possible cte occurences.
The plot was suggested by @schlafly here: https://desisurvey.slack.com/archives/C01HNN87Y7J/p1722543734755599?thread_ts=1722538227.361809&cid=C01HNN87Y7J
Copying from there: "load the 1 s flat, do a row by row extraction, plot the residuals."
In addition to @schlafly initial "recipe", I made these changes:
res_median
, reported on the plot);OFFCOLS
and/orCTECOLS
): column range is reported, along with a line to visualize it.The plots come as a new pdf file (
ctedetrowbyrow-NIGHT.pdf
), with one page per petal, three plots (for each camera) per page.Here is one example for a petal for 20230822:
And here is another example for 20240730, illustrating the "newly" cte on r1:
Here are the
nightqa-NIGHT.html
pages for those two examples:https://data.desi.lbl.gov/desi/users/raichoor/nightqa_dev/nightqa_v27/aug07/nightqa/20230822/nightqa-20230822.html
https://data.desi.lbl.gov/desi/users/raichoor/nightqa_dev/nightqa_v27/aug07/nightqa/20240730/nightqa-20240730.html
I think that the code now reads twice the 1s flat preproc images (and I also had to switch from a simple reading with
fitsio
to a more complete/time-consuming reading withdesispec.io.read_image()
), that may take an extra minute? but I guess it s ok.The new plot also calls
correct_cte.get_rowbyrow_image_model()
, which may take 1 extra minute.Any suggestion is welcome!