Skip to content

Commit

Permalink
STY: updated logger
Browse files Browse the repository at this point in the history
Updated the logger to use pysat directly instead of importing it from pysat.
  • Loading branch information
aburrell committed Sep 3, 2024
1 parent 1ae0983 commit 69f5ed0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pysatMadrigal/instruments/madrigal_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

import datetime as dt

from pysat import logger
import pysat

from pysatMadrigal.instruments.methods import general

Expand Down Expand Up @@ -135,10 +135,11 @@ def init(self, kindat=''):
# If the kindat (madrigal tag) is not known, advise user
self.kindat = kindat
if self.kindat == '':
logger.warning('`inst_id` did not supply KINDAT, all will be returned.')
pysat.logger.warning(
'`inst_id` did not supply KINDAT, all will be returned.')

# Remind the user of the Rules of the Road
logger.info(self.acknowledgements)
pysat.logger.info(self.acknowledgements)
return


Expand All @@ -155,8 +156,9 @@ def clean(self):
"""
if self.clean_level in ['clean', 'dusty', 'dirty']:
logger.warning(''.join(["The generalized Madrigal data Instrument ",
"can't support instrument-specific cleaning."]))
pysat.logger.warning(''.join(["The generalized Madrigal data ",
"Instrument can't support instrument-",
"specific cleaning."]))

return

Expand Down

0 comments on commit 69f5ed0

Please sign in to comment.