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
40ed2574
Commit
40ed2574
authored
Mar 16, 2017
by
Theo Steininger
Browse files
Added dtype keyword to create_power_operator
parent
d658ea45
Pipeline
#10748
failed with stages
in 20 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/sugar.py
View file @
40ed2574
...
...
@@ -8,12 +8,14 @@ from nifty import PowerSpace,\
__all__
=
[
'create_power_operator'
]
def
create_power_operator
(
domain
,
power_spectrum
,
distribution_strategy
=
'not'
):
def
create_power_operator
(
domain
,
power_spectrum
,
dtype
=
None
,
distribution_strategy
=
'not'
):
if
not
domain
.
harmonic
:
fft
=
FFTOperator
(
domain
)
domain
=
fft
.
target
[
0
]
power_domain
=
PowerSpace
(
domain
,
dtype
=
dtype
,
distribution_strategy
=
distribution_strategy
)
fp
=
Field
(
power_domain
,
...
...
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