Skip to content

Commit

Permalink
remove 'updated' column
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Oct 8, 2024
1 parent d8630a4 commit f0aa081
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/desispec/specstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def update_specstatus(specstatus, tiles, update_only=False,
Args:
specstatus: astropy Table from surveyops/ops/tiles-specstatus.ecsv
tiles: astropy Table from spectro/redux/daily/tiles.csv
update_only: bool don't change entries for tiles that have no new data.
clear_qa: bool indicating whether QA data should be cleared
Returns: updated specstatus table, sorted by TILEID
Expand All @@ -44,6 +45,10 @@ def update_specstatus(specstatus, tiles, update_only=False,
if 'PROGRAM' in tiles.colnames:
tiles.remove_column('PROGRAM')

# Quick and dirty fix to keep the tiles file compatible with the specstatus file.
if 'UPDATED' in tiles.colnames:
tiles.remove_column('UPDATED')

#- Confirm that they have the same columns except QA-specific ones
tilecol = set(tiles.colnames) | set(['USER', 'QA', 'OVERRIDE', 'ZDONE', 'QANIGHT', 'ARCHIVEDATE'])
if tilecol != set(specstatus.colnames):
Expand Down

0 comments on commit f0aa081

Please sign in to comment.