Commit 4d3fddef authored by Lukas Platz's avatar Lukas Platz

better name MultiCorrelatedField used

parent 6e22052f
Pipeline #53347 passed with stages
in 6 minutes and 56 seconds
......@@ -59,8 +59,8 @@ for N1, N2 in [(i, j) for i in Ns for j in Ns]:
# Define sky operator
# za=4, zq=5 leads to an amplitude median of one
log_diffuse = ift.MultiDimCorrelatedField(sky_target, [amp_p, amp_e],
va=5., vq=1.)
log_diffuse = ift.MultiCorrelatedField(sky_target, [amp_p, amp_e], va=5.,
vq=1.)
N_stds = 10**3 * max(10, int(Ns.max() / np.sqrt(N1 * N2)))
stds = np.empty(N_stds)
......
......@@ -115,8 +115,7 @@ if __name__ == '__main__':
elif mode == 0:
amplitudes = [None, amp_e]
log_diffuse = ift.MultiDimCorrelatedField(sky_target, amplitudes,
va=5., vq=1.)
log_diffuse = ift.MultiCorrelatedField(sky_target, amplitudes, va=5., vq=1.)
sky = log_diffuse.exp()
M = ift.DiagonalOperator(exposure)
......@@ -150,7 +149,7 @@ if __name__ == '__main__':
H, convergence = minimizer(H)
# Plotting
filename = f"test-MultiDimCorrelatedField-{mode}" + "-{}.png"
filename = f"test-MultiCorrelatedField-{mode}" + "-{}.png"
signal = sky(mock_position)
reconst = sky(H.position)
......
......@@ -84,7 +84,7 @@ from .library.dynamic_operator import (dynamic_operator,
from .library.light_cone_operator import LightConeOperator
from .library.wiener_filter_curvature import WienerFilterCurvature
from .library.correlated_fields import CorrelatedField, MultiDimCorrelatedField
from .library.correlated_fields import CorrelatedField, MultiCorrelatedField
from .library.adjust_variances import (make_adjust_variances_hamiltonian,
do_adjust_variances)
from .library.gridder import GridderMaker
......
......@@ -81,7 +81,7 @@ def CorrelatedField(target, amplitude_operator, name='xi', codomain=None):
return ht(vol*A*ducktape(h_space, None, name))
def MultiDimCorrelatedField(target, amplitudes, va, vq, name='xi'):
def MultiCorrelatedField(target, amplitudes, va, vq, name='xi'):
"""Constructs an operator which turns white Gaussian excitation fields
into a (partially) correlated field defined on a DomainTuple with separate
correlation structures per subdomain.
......
Markdown is supported
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