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
f0696a82
Commit
f0696a82
authored
Feb 21, 2018
by
Martin Reinecke
Browse files
remove unused code
parent
1e71071a
Pipeline
#25232
passed with stages
in 6 minutes and 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty4/sugar.py
View file @
f0696a82
...
...
@@ -32,7 +32,6 @@ __all__ = ['PS_field',
'power_synthesize_nonrandom'
,
'create_power_field'
,
'create_power_operator'
,
'create_composed_ht_operator'
,
'create_harmonic_smoothing_operator'
]
...
...
@@ -238,20 +237,6 @@ def create_power_operator(domain, power_spectrum, space=None, dtype=None):
domain
=
domain
,
spaces
=
space
)
def
create_composed_ht_operator
(
domain
,
codomain
=
None
):
if
codomain
is
None
:
codomain
=
[
None
]
*
len
(
domain
)
res
=
None
for
i
,
space
in
enumerate
(
domain
):
if
isinstance
(
space
,
StructuredDomain
)
and
space
.
harmonic
:
tdom
=
domain
if
res
is
None
else
res
.
target
op
=
HarmonicTransformOperator
(
tdom
,
codomain
[
i
],
i
)
res
=
op
if
res
is
None
else
op
*
res
if
res
is
None
:
raise
ValueError
(
"empty operator"
)
return
res
def
create_harmonic_smoothing_operator
(
domain
,
space
,
sigma
):
kfunc
=
domain
[
space
].
get_fft_smoothing_kernel_function
(
sigma
)
return
DiagonalOperator
(
kfunc
(
domain
[
space
].
get_k_length_array
()),
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