Closed sbailey closed 3 years ago
@geordie666 I added a check similar to what you suggested. Unexpectedly missing optional columns are logged, while missing required columns trigger a ValueError.
I forgot to update master before branching so the doc/changes.rst is behind. To avoid merge conflicts I will update it after this is approved and merged.
@sbailey: This looks fine to me. Merge at will. Don't worry about updating the changes docs for this PR, I'll do that in my working branch.
This PR fixes a
make_zqso_files
bug when the input file FIBERMAP is missing a*_SCND_TARGET
input column (because the input fiberassign file was also missing that column). e.g. from the example in PR 737:This PR logs an error and leaves that column as zeros in the output file:
It also records the quasarnp version used in a DEPNAMnn/DEPVERnn header.
@eleanorlyke and/or @geordie666, please confirm that leaving SV1_SCND_TARGET blank in the case of a missing input column is the correct behavior.