BACKUP ToOs#889
Conversation
| BGS_WISE_SOUTH: SAME_AS_BGS_FAINT_SOUTH | ||
| BGS_WISE_NORTH: SAME_AS_BGS_FAINT_SOUTH | ||
|
|
||
| BACKUP_TOO_HIP: {UNOBS: 100, MORE_ZGOOD: 2, MORE_ZWARN: 2, DONE: 2, OBS: 1, DONOTOBSERVE: 0, MORE_MIDZQSO: 0} |
There was a problem hiding this comment.
Let's set UNOBS for BACKUP_TOO_HIP at the standard "very high" priority value of 9500 in case we ever add additional BACKUP targets at higher priority. For example, there are currently secondary targets (WDs) in the backup program that have an UNOBS priority of 1998.
| allowed = {"TOO_TYPE": {'FIBER', 'TILE'}, | ||
| "TOO_PRIO": {'LO', 'HI'}, | ||
| "OCLAYER": {'BRIGHT', 'DARK'}} | ||
| "OCLAYER": {'BRIGHT', 'DARK','BACKUP'}} |
There was a problem hiding this comment.
You're missing a space after a comma.
There was a problem hiding this comment.
I think the code will fail, here, because bitname will be, e.g., BACKUP_TOO_LOP and sMx is the mask of secondary bits. Because we have to store BACKUP_TOO_LOP in mMx (the mask of MWS bits) sMx[bitname] is not defined.
I tested the code by adding this line to a mock-up of the ToO-input.ecsv file:
350.555538 0.404432 0.000000 0.000000 2000.0 XH/AP FIBER LO BACKUP 61219.42268462 61249.42268462 2999999999
And did, indeed, trigger such a failure. So, I think you need some extra lines indicating which bit mask to query to retrieve the BACKUP_TOO bits.
|
Thank you are the review and the catch! I forgot to rerun
since the BACKUP ToO is technically not a secondary? This is more of a bookkeeping issue so please let me know if I should change it to |
|
Oh, yes, excellent point. That should indeed be changed to
We might want to check with @dylanagreen (if you didn't already) as to whether |
|
On further review, I don't think this approach will work for I think perhaps the cleanest solution, then, is to instead put these new bits directly in the |
|
Thanks for looking at it again! I will give that a try locally and report back! |
I have made changes to
desitargetso that if there are nearby and bright ToOs, these ToOs can be ingested and we can get the ToO spectra.The changes I made are to include the BACKUP program in the
ToO.pyfile and to add the BACKUP ToOs to thetargetmask.yamlunder thebgs_mask.I ran this through
fba_launchand was able to successfully assign the BACKUP ToOs to a tile. The command I used wasAnd the
TOODIRused was:/global/cfs/cdirs/desi/users/banovetz/ToO_desitarget_test