-
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
Regroup #473
Conversation
tests failing because |
Thanks @sbailey , I'll try to make time to look through this in the next day. |
Updates: I converted wavelength to double instead of single precision in the frame, cframe, and spectra output files, since this was related to the updates in the Spectra class. Fixes #469. In the process of re-adding comments to the fibermap HDU, that broke Bricks. These have been deprecated in favor of the Spectra objects/files, so I went ahead and removed them instead of fixing them. That led to removing the unused redmonster-centric zfind code which also used bricks. And then the super-optimized but slow and memory hungry coadds. I did leave |
I verified that this produces the same output (albeit with targets in a different order and extra columns) and that it runs faster than current master. We'll have more to do on this spectral regrouping topic, but I'm going to merge this now so that we can make use of the TILEID column that is needed downstream. |
This PR implements a number of updates to the spectral grouping, though it needs review and could benefit from some more updates before merging. Opening PR now so that this doesn't linger.
desi_group_spectra --pipeline
option, which was causing it to read the same frame once per target instead of once per pixel and thus being very slow. That was the original bug I was chasing here and then it got out of hand with "just one more thing..."It does not yet implement the final step of creating per-night slurm scripts for regrouping, nor does it fix the wavelength float -> double in frame, cframe, and spectra as suggested by @djschlegel and @tskisner .
There is also some commented out code that was useful for viewing while refactoring, but should be completely removed before merging.
This branch also still needs testing vs. master to verify that they actually do get the same spectra in both cases.