Skip to content

Commit

Permalink
more tiles/specstatus debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Oct 8, 2024
1 parent 3e1d434 commit 84f352d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/desispec/specstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@ def update_specstatus(specstatus, tiles, update_only=False,
#- Note: there is probably a more efficient way of doing this in bulk,
#- but let's favor obvious over clever unless efficiency is needed
num_updatedtiles = 0
log.debug('Checking for differences between tiles file and specstatus file')
for i, tileid in enumerate(tiles['TILEID']):
j = np.where(specstatus['TILEID'] == tileid)[0][0]
if not update_only or tiles['LASTNIGHT'][i] > specstatus['LASTNIGHT'][j]:
different = False
for col in specstatus.colnames:
if col not in qacols:
if tiles[col][i] != specstatus[col][j]:
log.debug('Tile %d updating %s %s -> %s',
tileid, col, str(tiles[col][i]), str(specstatus[col][j]))
different = True
if not different and not clear_qa:
continue
Expand Down

0 comments on commit 84f352d

Please sign in to comment.