Commit 46d6c1b7 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Replaced FIXME by clearer comment.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 153afe09
Pipeline #25842 failed with stages
in 6 minutes and 26 seconds
...@@ -498,7 +498,7 @@ class RSImage_ClusterPredictor(object): ...@@ -498,7 +498,7 @@ class RSImage_ClusterPredictor(object):
dist_norm = (self.distance_metrics - dist_min) /\ dist_norm = (self.distance_metrics - dist_min) /\
(dist_max - dist_min) (dist_max - dist_min)
weights = 1 - dist_norm weights = 1 - dist_norm
weights[weights < 0] = 1e-10 # FIXME 0 causes ZeroDivisionError later weights[weights < 0] = 1e-10 # set negative weights to 0 but avoid ZeroDivisionError
else: else:
weights = None weights = None
......
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