Skip to content

Commit

Permalink
Merge pull request #178 from brown-ccv/feat-logger/4-replace-print-lo…
Browse files Browse the repository at this point in the history
…gger-config

chore: logging 4 – remove prints from config directory
  • Loading branch information
hollandjg authored Mar 22, 2024
2 parents a10364c + 2b3111e commit 2d0bff2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/icesat2waves/config/generate_colors.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#%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')

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
3 changes: 3 additions & 0 deletions src/icesat2waves/config/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 @@ -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)
Expand Down

0 comments on commit 2d0bff2

Please sign in to comment.