From 69f5ed0abcd22035aa842cc653f3e2ccb4d2a84f Mon Sep 17 00:00:00 2001 From: Angeline Burrell Date: Tue, 3 Sep 2024 11:49:05 -0400 Subject: [PATCH] STY: updated logger Updated the logger to use pysat directly instead of importing it from pysat. --- pysatMadrigal/instruments/madrigal_pandas.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pysatMadrigal/instruments/madrigal_pandas.py b/pysatMadrigal/instruments/madrigal_pandas.py index d1daf3c..1519d31 100644 --- a/pysatMadrigal/instruments/madrigal_pandas.py +++ b/pysatMadrigal/instruments/madrigal_pandas.py @@ -64,7 +64,7 @@ import datetime as dt -from pysat import logger +import pysat from pysatMadrigal.instruments.methods import general @@ -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 @@ -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