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
f0ed0b7f
Commit
f0ed0b7f
authored
Aug 09, 2018
by
Martin Reinecke
Browse files
bug fix
parent
7db6d4f9
Changes
1
Show whitespace changes
Inline
Side-by-side
nifty5/multi_field.py
View file @
f0ed0b7f
...
...
@@ -257,8 +257,8 @@ for op in ["__iadd__", "__isub__", "__imul__", "__idiv__",
for
f
in
[
"sqrt"
,
"exp"
,
"log"
,
"tanh"
]:
def
func
(
f
):
def
func2
(
self
):
fu
=
getattr
(
dobj
,
f
)
fu
=
getattr
(
Field
,
f
)
return
MultiField
(
self
.
domain
,
tuple
(
fu
nc2
(
val
)
for
val
in
self
.
values
()))
tuple
(
fu
(
val
)
for
val
in
self
.
values
()))
return
func2
setattr
(
MultiField
,
f
,
func
(
f
))
Write
Preview
Supports
Markdown
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