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
Thomas Peters
NIFTy
Commits
76cfd35f
Commit
76cfd35f
authored
Apr 20, 2017
by
Martin Reinecke
Browse files
Merge remote-tracking branch 'origin/master' into mmm1
parents
c8796913
6faa0a78
Changes
2
Hide whitespace changes
Inline
Side-by-side
ci/requirements.txt
View file @
76cfd35f
...
...
@@ -4,7 +4,7 @@ cython
astropy
healpy
mpi4py
ipython
ipython
==5.3.0
nose
nose-parameterized
git+https://gitlab.mpcdf.mpg.de/ift/mpi_dummy.git
...
...
nifty/spaces/rg_space/rg_space.py
View file @
76cfd35f
...
...
@@ -298,13 +298,13 @@ class RGSpace(Space):
dists
=
((
np
.
float128
(
0
)
+
cords
[
0
]
-
shape
[
0
]
//
2
)
*
dk
[
0
])
**
2
# apply zerocenterQ shift
if
self
.
zerocenter
[
0
]
==
False
:
dists
=
np
.
fft
.
fftshift
(
dists
)
if
not
self
.
zerocenter
[
0
]:
dists
=
np
.
fft
.
i
fftshift
(
dists
)
# only save the individual slice
dists
=
dists
[
slice_of_first_dimension
]
for
ii
in
range
(
1
,
len
(
shape
)):
temp
=
((
cords
[
ii
]
-
shape
[
ii
]
//
2
)
*
dk
[
ii
])
**
2
if
self
.
zerocenter
[
ii
]
==
False
:
if
not
self
.
zerocenter
[
ii
]:
temp
=
np
.
fft
.
fftshift
(
temp
)
dists
=
dists
+
temp
dists
=
np
.
sqrt
(
dists
)
...
...
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