You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desispec.zcatalog.update_table_columns() has been failing when assembling zall-tilecumulative-daily(db).fits files. When the various individual ztile files are concatenated, the columns have this ordering:
which is apparently different from the ordering when assembling a uniformly-processed specprod. Then when the rearrangement (with all_columns=True) is performed, the indices are invalid, and as a result the final list of columns contains some duplicate column names.
Some specific examples in the list above; it is not true that:
TARGET columns sit between NUMOBS_INIT and PLATE_RA columns
Last column in [sic] TSNR2_LRG in all the redshift catalogs
If there is an option that forces a particular ordering when desispec.scripts.zcatalog.main() is run, we should probably use that. If not, how, programmatically, can one reconstruct the column ordering for a uniformly-processed specprod?
The text was updated successfully, but these errors were encountered:
PS, since this is ultimately for the database, what is the advantage of rearranging the columns at all? The database loading software does not care about column ordering.
Related: PR #2368 which provided a minimal fix for another time that the fragile column order assumptions broke the code. Thanks for opening a ticket about the issue.
I agree that we should fix this, especially since it has now bitten us twice. I think the original motivation for reordering the columns was for human friendliness when inspecting the files/tables, e.g. inspecting FITS headers or Table.colnames, or even the datamodel which is likely to follow the order of the columns in the files --- it is helpful to group columns that conceptually go together. i.e. this code and zall files is not just for the database.
desispec.zcatalog.update_table_columns()
has been failing when assemblingzall-tilecumulative-daily(db).fits
files. When the various individual ztile files are concatenated, the columns have this ordering:which is apparently different from the ordering when assembling a uniformly-processed specprod. Then when the rearrangement (with
all_columns=True
) is performed, the indices are invalid, and as a result the final list of columns contains some duplicate column names.Some specific examples in the list above; it is not true that:
If there is an option that forces a particular ordering when
desispec.scripts.zcatalog.main()
is run, we should probably use that. If not, how, programmatically, can one reconstruct the column ordering for a uniformly-processed specprod?The text was updated successfully, but these errors were encountered: