Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
dfbf8f36
Commit
dfbf8f36
authored
Jan 30, 2019
by
Remi Perenon
Browse files
Removing absolute value function in weighting getter
parent
d246a636
Pipeline
#4779
failed with stages
in 9 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Src/Mathematics/Arithmetic.py
View file @
dfbf8f36
...
@@ -72,9 +72,9 @@ def get_weights(props, contents, dim):
...
@@ -72,9 +72,9 @@ def get_weights(props, contents, dim):
weights
[
elements
]
=
numpy
.
float64
(
numpy
.
copy
(
fact
))
weights
[
elements
]
=
numpy
.
float64
(
numpy
.
copy
(
fact
))
if
normFactor
is
None
:
if
normFactor
is
None
:
normFactor
=
numpy
.
abs
(
fact
)
normFactor
=
fact
else
:
else
:
normFactor
+=
numpy
.
abs
(
fact
)
normFactor
+=
fact
for
k
in
weights
.
keys
():
for
k
in
weights
.
keys
():
weights
[
k
]
/=
numpy
.
float64
(
normFactor
)
weights
[
k
]
/=
numpy
.
float64
(
normFactor
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment