Skip to content
GitLab
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
edb983e4
Commit
edb983e4
authored
Jan 15, 2018
by
Martin Reinecke
Browse files
fix SHTs
parent
315d1848
Pipeline
#23713
failed with stage
in 4 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator_support.py
View file @
edb983e4
...
...
@@ -159,7 +159,7 @@ class SphericalTransformation(Transformation):
res
[
0
:
self
.
lmax
+
1
]
=
rr
[
0
:
self
.
lmax
+
1
].
real
res
[
self
.
lmax
+
1
::
2
]
=
np
.
sqrt
(
2
)
*
rr
[
self
.
lmax
+
1
:].
real
res
[
self
.
lmax
+
2
::
2
]
=
np
.
sqrt
(
2
)
*
rr
[
self
.
lmax
+
1
:].
imag
return
res
*
(
np
.
sqrt
(
4
*
np
.
pi
)
/
inp
.
size
)
return
res
/
np
.
sqrt
(
np
.
pi
*
4
)
def
_slice_h2p
(
self
,
inp
):
res
=
np
.
empty
((
len
(
inp
)
+
self
.
lmax
+
1
)
//
2
,
dtype
=
(
inp
[
0
]
*
1j
).
dtype
)
...
...
@@ -169,7 +169,7 @@ class SphericalTransformation(Transformation):
res
[
self
.
lmax
+
1
:]
=
np
.
sqrt
(
0.5
)
*
(
inp
[
self
.
lmax
+
1
::
2
]
+
1j
*
inp
[
self
.
lmax
+
2
::
2
])
res
=
self
.
sjob
.
alm2map
(
res
)
return
res
*
(
np
.
sqrt
(
4
*
np
.
pi
)
/
res
.
size
)
return
res
/
np
.
sqrt
(
np
.
pi
*
4
)
def
apply
(
self
,
x
,
mode
):
axes
=
x
.
domain
.
axes
[
self
.
space
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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