Commit d7304e86 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

bugfix on threshold management

parent c2b896b8
......@@ -35,8 +35,8 @@ class Proximite(Indicator):
# All Bdv are fullfilled
result = 1
else:
# put 0 where target is reached and computing mean
result = result.where(result<1,0).sum() / result.where(result<1).count()
# put 1 where target is reached and computing mean
result = result.where(result<1, 1).sum() / result.count()
result = result.values[0]
return 1/result
......
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