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

Fixed Exception in case a ClassifierCollection does not have the requested key (LBA).


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 37894fd1
Pipeline #25841 canceled with stages
in 51 minutes and 27 seconds
......@@ -15,6 +15,7 @@ History
* Fixed TypeError in case the input image for the prediction has no nodata pixels and no in- and output nodata
value is given.
* Fixed type error in case non-kNN regressors are used for prediction.
* Fixed Exception in case a ClassifierCollection does not have the requested key (LBA).
0.9.3 (2020-12-15)
------------------
......
......@@ -466,7 +466,7 @@ class ClassifierCollection(object):
return self.content[item]
except KeyError:
raise(KeyError("The classifier has no key '%s'. Available keys are: %s"
% (item, repr(self))))
% (item, list(self.content.keys()))))
# def save_to_json(self, filepath):
# a = 1
# pass
......
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