Commit dfbf8f36 authored by Remi Perenon's avatar Remi Perenon

Removing absolute value function in weighting getter

parent d246a636
Pipeline #4779 failed with stages
in 9 minutes and 49 seconds
......@@ -72,9 +72,9 @@ def get_weights(props, contents, dim):
weights[elements] = numpy.float64(numpy.copy(fact))
if normFactor is None:
normFactor = numpy.abs(fact)
normFactor = fact
else:
normFactor += numpy.abs(fact)
normFactor += fact
for k in weights.keys():
weights[k] /= numpy.float64(normFactor)
......
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