ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DataQuality
DQDefects
python
DataQuality/DQDefects/python/__init__.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
2
3
"""
4
Authors: Peter Waller <peter.waller@cern.ch> and "Peter Onyisi" <peter.onyisi@cern.ch>
5
6
Please see https://twiki.cern.ch/twiki/bin/viewauth/Atlas/DQDefects
7
8
The main way to use all of the code found in this module can be found in the
9
"db" module.
10
"""
11
12
from
.constants
import
(DEFECT_IOV, DEFAULT_CONNECTION_STRING,
13
PARENT_FOLDERSET,
14
DEFECTS_FOLDER, DEFECT_FOLDER_DESC,
15
DEFECT_LOGIC_FOLDER, DEFECT_LOGIC_FOLDER_DESC,
16
DEFECT_LOGIC_TAG_FORMAT)
17
from
.db
import
DefectsDB
18
import
logging
19
20
# Add a NullHandler to the DQDefects logger so that we don't get complaints
21
# if there are no log handlers defined in client applications.
22
23
# Logging is the responsibility of the client application!
24
class
NullHandler
(logging.Handler):
25
def
emit
(self, record):
26
pass
27
logging.getLogger(
"DQDefects"
).addHandler(NullHandler())
28
29
__all__ = [
'DefectsDB'
,
'DEFECT_IOV'
,
30
'DEFAULT_CONNECTION_STRING'
,
'PARENT_FOLDERSET'
,
31
'DEFECTS_FOLDER'
,
'DEFECT_FOLDER_DESC'
,
32
'DEFECT_LOGIC_FOLDER'
,
'DEFECT_LOGIC_FOLDER_DESC'
,
33
'DEFECT_LOGIC_TAG_FORMAT'
]
python.NullHandler
Definition
DataQuality/DQDefects/python/__init__.py:24
python.NullHandler.emit
emit(self, record)
Definition
DataQuality/DQDefects/python/__init__.py:25
Generated on
for ATLAS Offline Software by
1.17.0