Commit e7c0588e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed missing logger.

parent 0b84b858
Pipeline #1720 passed with stage
in 11 minutes and 57 seconds
......@@ -83,7 +83,7 @@ class L2B_object(L2A_object):
####################################
# perform spectral homogenization! #
####################################
SpH = SpectralHomogenizer(classifier_rootDir=CFG.path_spechomo_classif)
SpH = SpectralHomogenizer(classifier_rootDir=CFG.path_spechomo_classif, logger=self.logger)
if method == 'LI' or CFG.datasetid_spectral_ref is None:
# linear interpolation
......@@ -122,7 +122,7 @@ class L2B_object(L2A_object):
class SpectralHomogenizer(object):
def __init__(self, classifier_rootDir='', logger=None):
self.classifier_rootDir = classifier_rootDir or CFG.path_spechomo_classif
self.logger = logger or logging.getLogger(self.__class__.__name__)
self.logger = logger or logging.getLogger(self.__class__.__name__) # FIXME own logger logs nothing
def interpolate_cube(self, arrcube, source_CWLs, target_CWLs, kind='linear'):
# type: (Union[np.ndarray, GeoArray], list, list) -> np.ndarray
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment