Commit f0696a82 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

remove unused code

parent 1e71071a
Pipeline #25232 passed with stages
in 6 minutes and 17 seconds
......@@ -32,7 +32,6 @@ __all__ = ['PS_field',
......@@ -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
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,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment