Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
02dea13c
Commit
02dea13c
authored
Dec 09, 2017
by
Martin Reinecke
Browse files
fix issue
#188
parent
faac9fba
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
02dea13c
...
...
@@ -842,7 +842,7 @@ class Field(Loggable, Versionable, object):
@
property
def
real
(
self
):
""" The real part of the field
(data is not copied)
.
""" The real part of the field.
"""
real_part
=
self
.
val
.
real
result
=
self
.
copy_empty
(
dtype
=
real_part
.
dtype
)
...
...
@@ -851,7 +851,7 @@ class Field(Loggable, Versionable, object):
@
property
def
imag
(
self
):
""" The imaginary part of the field
(data is not copied)
.
""" The imaginary part of the field.
"""
imag_part
=
self
.
val
.
imag
result
=
self
.
copy_empty
(
dtype
=
imag_part
.
dtype
)
...
...
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