diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 09:27:46 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-03 09:27:46 +0200 |
commit | e42f3541d9e16264f79e090ddd87b864f5c2a837 (patch) | |
tree | 4058b20f4d913678d616a7ec94a58109b2c21090 /lib/utils.py | |
parent | f1a9e8b419c3b0836989565fa462d7c67a4bc9b9 (diff) |
more consistent logging; use logger. instead of logging. where appropriate
Diffstat (limited to 'lib/utils.py')
-rw-r--r-- | lib/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils.py b/lib/utils.py index 8186ee7..d28ecda 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -1,7 +1,9 @@ import numpy as np import re +import logging arg_support_enabled = True +logger = logging.getLogger(__name__) def running_mean(x: np.ndarray, N: int) -> np.ndarray: @@ -212,7 +214,7 @@ def filter_aggregate_by_param(aggregate, parameters, parameter_filter): ) ) if len(indices_to_keep) == 0: - print("??? {}->{}".format(parameter_filter, name)) + logger.debug("??? {}->{}".format(parameter_filter, name)) names_to_remove.add(name) else: for attribute in aggregate[name]["attributes"]: |