Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
fe4c71c3
Commit
fe4c71c3
authored
Dec 28, 2017
by
Martin Reinecke
Browse files
small fix (necessary because of increased paranoia)
parent
e0d1dc5f
Pipeline
#23255
passed with stage
in 4 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
fe4c71c3
...
...
@@ -295,7 +295,8 @@ class Field(object):
if
dobj
.
distaxis
(
self
.
_val
)
>=
0
and
ind
==
0
:
# we need to distribute the weights along axis 0
wgt
=
dobj
.
local_data
(
dobj
.
from_global_data
(
wgt
))
out
*=
wgt
**
power
lout
=
dobj
.
local_data
(
out
.
val
)
lout
*=
wgt
**
power
fct
=
fct
**
power
if
fct
!=
1.
:
out
*=
fct
...
...
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