Commit 280c7a9f authored by Daniel Scheffler's avatar Daniel Scheffler Committed by Mathias Peters
Browse files

Fix.

parent 74b90b02
......@@ -2224,15 +2224,15 @@ class GMS_identifier(object):
self.dataset_ID = dataset_ID
self.logger = logger
# super().__init__(zip(
# ['image_type', 'Satellite', 'Sensor', 'Subsystem', 'proc_level', 'dataset_ID', 'logger'],
# [image_type, satellite, sensor, subsystem, proc_level, dataset_ID, logger]))
def to_odict(self, include_logger=True):
return OrderedDict(zip(
['image_type', 'Satellite', 'Sensor', 'Subsystem', 'proc_level', 'dataset_ID', 'logger'],
[self.image_type, self.satellite, self.sensor, self.subsystem, self.proc_level, self.dataset_ID,
self.logger]))
odict = OrderedDict(zip(
['image_type', 'Satellite', 'Sensor', 'Subsystem', 'proc_level', 'dataset_ID'],
[self.image_type, self.satellite, self.sensor, self.subsystem, self.proc_level, self.dataset_ID]))
if include_logger:
odict['logger'] = self.logger
return odict
def __repr__(self):
return repr(self.to_odict())
......
Markdown is supported
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