ATLAS Offline Software
DataQuality/DQUtils/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 DQUtils - the Data Quality utility package
5 
6 This package is focussed at providing utility functions for quickly retrieving
7 and dealing with DQ data from COOL.
8 """
9 
10 import logging
11 
12 from .channel_mapping import channel_mapping, channel_names, convert_channel
13 from .db import fetch_iovs, write_iovs, Databases
14 from .events import process_iovs, process_iovs_mc, process_iovs_changed
15 from .general import send_error_email, daemonize
16 from .grl import grl_from_dir, load_grl_iovs_any
17 from .sugar import IOVSet, define_iov_type
18 from .logger import init_logger
19 
20 __all__ = ['channel_mapping', 'channel_names', 'convert_channel',
21  'fetch_iovs', 'write_iovs', 'Databases',
22  'process_iovs', 'process_iovs_mc', 'process_iovs_changed',
23  'send_error_email', 'daemonize',
24  'grl_from_dir', 'load_grl_iovs_any',
25  'IOVSet', 'define_iov_type', 'init_logger']
26 
27 # Below code ensures no warning is given if client doesn't set up logging.
28 try:
29  from logging.handlers import NullHandler
30 except ImportError:
31  class NullHandler(logging.Handler):
32  def emit(self, record):
33  pass
34 
35 logging.getLogger("DQUtils").addHandler(NullHandler())
python.NullHandler.emit
def emit(self, record)
Definition: DataQuality/DQDefects/python/__init__.py:25