Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: logging 4 – remove prints from config directory #178

Merged
merged 9 commits into from
Mar 22, 2024
2 changes: 2 additions & 0 deletions src/icesat2_tracks/config/IceSAT2_startup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
import pathlib
import string
Expand All @@ -6,6 +7,7 @@

from icesat2_tracks.local_modules import m_colormanager_ph3 as M_color
from icesat2_tracks.local_modules import m_tools_ph3 as MT
_logger = logging.getLogger(__name__)

## Read folders and configuration paths
config_dir_path = os.path.dirname(__file__)
Expand Down
6 changes: 5 additions & 1 deletion src/icesat2_tracks/config/generate_colors.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#%matplotlib inline
import logging

from icesat2_tracks.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')

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()

Expand Down
Loading