Open michaelJwilson opened 5 years ago
This "qa-fiberassign" script is copied from the original legacy codebase. We should consider merging this functionality with the fba_run_qa / fba_plot_qa scripts, which generate a json document with assignment stats for each tile and also visualizes those values on the footprint.
After running fba_run_qa
on the SV data I get the following
INFO: Reading fiber positions from /global/common/software/desi/cori/desiconda/20180709-1.2.6-spec/code/desimodel/master/da
ta/focalplane/fiberpos-all.fits
INFO: Found 91 fiberassign tile files
INFO: Selecting 0 fiberassign tile files
and an empty qa.json
file.
What is then the correct way to call the script?
I think it's failing because of the sv tile ids. Adding --footprint works, but achieves another error.
fba_run_qa --dir /global/cscratch1/sd/mjwilson/svdc2019c/fiberassign --out /global/cscratch1/sd/mjwilson/svdc2019c/fiberassign-qa/qa.json --footprint /global/cscratch1/sd/mjwilson/svdc2019c/survey/SV-tiles.fits
This is because the fiberassign*.fits is split into subdirs, e.g. SV_BGS. This runs to completion:
fba_run_qa --dir /global/cscratch1/sd/mjwilson/svdc2019c/fiberassign/SV_BGS --out /global/cscratch1/sd/mjwilson/svdc2019c/fiberassign-qa/bgs_qa.json --footprint /global/cscratch1/sd/mjwilson/svdc2019c/survey/SV-tiles.fits
Output in the SV dir /fiberasssign-qa/
Got it. Thanks.
I was looking at:
It'd be great to have a follow-up based on this SV set. Not least, I think Stephen wanted checks that things hadn't gone awry.
I will take that as guide to prepare a short report.
Hi @forero: Any update on this ticket? qa-fiberassign would need to work on CMX as well and the blocking factor seems to be the unrecognizable objtype.
Hi @Srheft. Nothing new, fba_run_qa
works but the older qa_fiberassign
does not. To me the best solution seems to be implementing the qa_fiberassign
stats insidefba_run_qa
and avoid using DESI_TARGET
(OBJTYPE
does the work to count science,sky and stars). I will only have time to tackle this in August.
ok; thanks for the info; fba_run_qa and fiberassign-qa both have useful info. I'll give it shot to work to our taste for cmx/sv.
Running qa-fiberassign on the SV sim. results in the following error:
seems a straightforward fix (to rewrite DESI_TARGET expectation) see fiberassign itself. I'll look at it, but maybe someone (@forero?) will beat me to it ...
Launch script:
Also a --outputdir argument would help?