diff options
Diffstat (limited to 'datamaps')
-rw-r--r-- | datamaps/main.py | 14 | ||||
-rw-r--r-- | datamaps/process/cleansers.py | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/datamaps/main.py b/datamaps/main.py index 7adc84c..cce33c7 100644 --- a/datamaps/main.py +++ b/datamaps/main.py @@ -21,18 +21,18 @@ import logging from functools import partial import click - -import colorlog from click import version_option -from datamaps import __version__ +from datamaps import __version__ from engine.adapters import cli as engine_cli from engine.config import Config as engine_config from engine.use_cases.parsing import MalFormedCSVHeaderException -logger = colorlog.getLogger("datamaps") +logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) +be_logger = logging.getLogger("engine.use_cases.parsing") + # we want to pass echo func down to bcompiler-engine output_funcs = dict( click_echo_green=partial(click.secho, nl=False, fg="green"), @@ -100,9 +100,9 @@ def templates(to_master): click.style("Incorrect headers in datamap. {}.".format(e.args[0]), bold=True, reverse=True, fg="cyan")) except KeyError as e: if "Expected Sheet Missing" in e.args: - click.echo("Expected Sheet Missing: sheet Introduction in test_template.xlsm is expected from" \ - " datamap.csv. Not processing that file until fixed." \ - "Imported data from input/dft1_temp.xlsm to output/master.xlsx." \ + click.echo("Expected Sheet Missing: sheet Introduction in test_template.xlsm is expected from" + " datamap.csv. Not processing that file until fixed." + "Imported data from input/dft1_temp.xlsm to output/master.xlsx." "Finished.") else: click.secho("Not implemented yet. Try --to-master/-m flag") diff --git a/datamaps/process/cleansers.py b/datamaps/process/cleansers.py index d562f9c..d2225ce 100644 --- a/datamaps/process/cleansers.py +++ b/datamaps/process/cleansers.py @@ -1,12 +1,12 @@ import datetime +import logging import re from datetime import date from operator import itemgetter -import colorlog from dateutil.parser import parse -logger = colorlog.getLogger("bcompiler.cleanser") +logger = logging.getLogger("bcompiler.cleanser") ENDASH_REGEX = r"–" ENDASH_FIX = r"-" |