Closed sbailey closed 3 years ago
Just so you know: To test this I've flipped two of the tiles in /global/cfs/cdirs/desi/users/sjbailey/spectro/redux/zmtl/tiles.csv
to zdone=true
.
Oh, and I've now flipped the two tiles I tested in /global/cfs/cdirs/desi/users/sjbailey/spectro/redux/zmtl/tiles.csv
back to zdone=false
.
Thanks for the quick review. I'll leave $ZCAT_DIR as-is, and update the change log after merging so that I don't have to wait for tests again.
This PR adds ZWARN bits BAD_SPECQA and BAD_PETALQA and updates the MTL logic to reject those in addition to NODATA. I'll open a companion desispec PR after this to set those bits when making zmtl (formerly zqso formerly zcat) files.
Example desispec outputs are in /global/cfs/cdirs/desi/users/sjbailey/spectro/redux/zmtl, though I have not tested how mtl updates would use them. Unit tests did catch some typos so the updates are at least somewhat tested.
@geordie666 please take a look. I did not update the $ZCAT_DIR environment variable, but let's consider renaming that to $ZMTL_DIR too in both the code and etc/desitarget.module .
Also: I did not remove the zqso code from desitarget yet, even though it is moving over to desispec as part of the aforementioned PR. Let's make sure it fully works there (as zmtl) before removing it from desitarget as a separate PR.