Skip to content
Snippets Groups Projects
Commit c9784a45 authored by John Kenneth Anders's avatar John Kenneth Anders Committed by Atlas Nightlybuild
Browse files

Merge branch '21.0-fix-dcsc' into '21.0'

Fix failure on invalid LumiAccounting data (affected 301915 and 301918)

See merge request atlas/athena!21859

(cherry picked from commit 17869351)

ac49dc79 Fix failure on invalid LumiAccounting data (affected 301915 and 301918)
parent eb2a7158
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,14 @@ class TDAQ_Busy(DCSC_Defect_Global_Variable):
counter=0
for since, until, (state,) in events:
if state.Run == 0: continue
if state.Run == 0 or state.Run is None: continue
#print state
if state is not None:
deadfrac = 1-state.LiveFraction
if state.LiveFraction is None:
deadfrac=1
print 'WARNING: LiveFraction is "None" for', state.Run, state.LumiBlock
else:
deadfrac = 1-state.LiveFraction
if deadfrac < self.deadfraction_threshold:
continue
yield DefectIOV(RunLumi(state.Run, state.LumiBlock),
......@@ -65,7 +69,7 @@ class TDAQ_Busy(DCSC_Defect_Global_Variable):
#print counter_max
events = process_iovs(iovs)
for since, until, (state,) in events:
if state is not None:
if state is not None and state.Run is not None:
deadfrac = 1-state.LiveFraction
if deadfrac < self.deadfraction_threshold:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment