diff --git a/src/icesat2waves/config/generate_colors.py b/src/icesat2waves/config/generate_colors.py index 0eb653d..b8b5f45 100644 --- a/src/icesat2waves/config/generate_colors.py +++ b/src/icesat2waves/config/generate_colors.py @@ -1,6 +1,10 @@ #%matplotlib inline +import logging + from icesat2waves.local_modules import m_colormanager_ph3 as M_color +_logger = logging.getLogger(__name__) + mconfig['paths'] path=mconfig['paths']['config'] A = M_color.ase_to_json(path+'color_def.ase') @@ -8,7 +12,7 @@ B=dict() for i in A[0]['swatches']: B[i['name']] = i['data']['values'] - print(i['name'] + ' ' + str(i['data']['values'])) + _logger.debug("swatch name: %s, values: %s", i['name'], i['data']['values']) rels=dict() diff --git a/src/icesat2waves/config/startup.py b/src/icesat2waves/config/startup.py index 60564f1..dd7415e 100644 --- a/src/icesat2waves/config/startup.py +++ b/src/icesat2waves/config/startup.py @@ -1,3 +1,4 @@ +import logging import os import pathlib import string @@ -7,6 +8,8 @@ from icesat2waves.local_modules import m_colormanager_ph3 as M_color from icesat2waves.local_modules import m_tools_ph3 as MT +_logger = logging.getLogger(__name__) + ## Read folders and configuration paths config_dir_path = os.path.dirname(__file__) mconfig=MT.json_load('config',config_dir_path)