Skip to content

Commit

Permalink
only consider row good if status agrees with file count
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Aug 31, 2024
1 parent 72115d7 commit f55d48f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion py/desispec/scripts/procdashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ def count_num_files(ftype, expid=None):
elif nfiles[terminal_step] < nexpected:
row_color = 'INCOMPLETE'
elif nfiles[terminal_step] == nexpected:
row_color = 'GOOD'
if status in ['COMPLETED', 'NULL']:
row_color = 'GOOD'
else:
row_color = 'INCOMPLETE'
else:
row_color = 'OVERFULL'

Expand Down
5 changes: 4 additions & 1 deletion py/desispec/scripts/zprocdashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ def populate_night_zinfo(night, doem=True, doqso=True, dotileqa=True, dozmtl=Tru
elif nfiles[true_terminal_step] < npossible:
row_color = 'INCOMPLETE'
elif nfiles[true_terminal_step] == npossible:
row_color = 'GOOD'
if status in ['COMPLETED', 'NULL']:
row_color = 'GOOD'
else:
row_color = 'INCOMPLETE'
else:
row_color = 'OVERFULL'

Expand Down
2 changes: 1 addition & 1 deletion py/desispec/workflow/proc_dashboard_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def _table_row(dictionary):
## If job is still running don't color things yet
if idlabel.upper() in non_final_q_states:
row_str += _table_element(elem)
elif key == 'STATUS' and elem in ['COMPLETED', 'NULL'] and idlabel == 'GOOD':
elif key == 'STATUS' and elem == 'COMPLETED' and idlabel in ['GOOD', 'NULL']:
row_str += _table_element_id(elem, 'GOOD')
elif key == 'STATUS' and elem not in ['COMPLETED', 'unprocessed', 'unrecorded'] \
and elem not in non_final_q_states and idlabel != 'GOOD':
Expand Down

0 comments on commit f55d48f

Please sign in to comment.