Skip to content
Snippets Groups Projects
Commit bd4ea627 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'bugfix/pix-mon-getrunnumber' into 'master'

Fix GetRunNumber None in PixelMonitoring

See merge request atlas/athena!37280
parents 3a294599 f53c4422
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,12 @@
# hack to deal with global variables in this module
# check if we are in "old-" or "new-style" configuration
from AthenaConfiguration.AllConfigFlags import ConfigFlags
from RecExConfig.AutoConfiguration import GetRunNumber
if ConfigFlags.DQ.isReallyOldStyle:
from RecExConfig.AutoConfiguration import GetRunNumber
runtext = ' (Run %d)' % GetRunNumber()
runtext = ''
if GetRunNumber() is not None:
runtext = ' (Run %d)' % GetRunNumber()
else:
from AthenaConfiguration.AllConfigFlags import ConfigFlags
runtext = ' (Run %d)' % ConfigFlags.Input.RunNumber[0]
......
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