Commit 8fc6973a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix for invalid no data value.

parent 681a4ea7
Pipeline #2971 passed with stage
in 17 minutes and 20 seconds
......@@ -1712,7 +1712,9 @@ class Cluster_Learner(object):
"""
cluster_labels = sorted(list(np.unique(cmap)))
im_pred = np.full((im_src.shape[0], im_src.shape[1], self.tgt_n_bands), nodataVal, dtype=im_src.dtype)
im_pred = np.full((im_src.shape[0], im_src.shape[1], self.tgt_n_bands),
fill_value=nodataVal if nodataVal is not None else 0,
dtype=im_src.dtype)
if len(cluster_labels) > 1:
# iterate over all cluster labels and apply corresponding machine learner parameters
......
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