# Path: lib/logger.py
# def get_logger(name):
#     '''
#     Obtain a logger outputing to stderr with specified name. Defaults to INFO
#     log level.
#     '''
#     logger = logging.getLogger(name)
#     if LUIGI_LOG_ARG in sys.argv:
#         index = sys.argv.index(LUIGI_LOG_ARG) + 1
#         if len(sys.argv) > index:
#             logger.setLevel(sys.argv[index])
# 
#     return logger


import json
from collections import OrderedDict
from lib.logger import get_logger

LOGGER = get_logger(__name__)

CONDITIONS = "conditions"
EXCEPTIONS = "exceptions"


class ColumnsDeclarations:
    def __init__(self, JSONFile):
        with open(JSONFile) as infile:
            self._columns = json.load(infile)


# Path: lib/logger.py
# def get_logger(name):
#     '''
#     Obtain a logger outputing to stderr with specified name. Defaults to INFO
#     log level.
#     '''
#     logger = logging.getLogger(name)
#     if LUIGI_LOG_ARG in sys.argv:
#         index = sys.argv.index(LUIGI_LOG_ARG) + 1
#         if len(sys.argv) > index:
#             logger.setLevel(sys.argv[index])
# 
#     return logger


# Path: lib/columns.py
import json
from collections import OrderedDict
from lib.logger import get_logger


LOGGER = get_logger(__name__)

CONDITIONS = "conditions"
EXCEPTIONS = "exceptions"


class ColumnsDeclarations:
    def __init__(self, JSONFile):
        with open(JSONFile) as infile:
            self._columns = json.load(infile)


    def _find_column(self, colid):