Skip to content
Snippets Groups Projects
Commit 3b9fa3a5 authored by Simon Ding's avatar Simon Ding
Browse files

Small adjustments to match new observation interface

parent 5822d8a5
No related branches found
No related tags found
1 merge request!25Calibration
Pipeline #106520 failed
......@@ -81,16 +81,16 @@ class _FancyBroadcast(ift.LinearOperator):
class MfWeightingInterpolation(ift.LinearOperator):
def __init__(self, eff_uvw, domain):
domain = ift.DomainTuple.make(domain)
my_asserteq(domain.shape[0], eff_uvw.shape[1]) # freqaxis
my_asserteq(domain.shape[0], eff_uvw.shape[2]) # freqaxis
self._domain = domain
nrow, nfreq = eff_uvw.shape
nrow, nfreq = eff_uvw.shape[1:]
tgt = [ift.UnstructuredDomain(aa) for aa in [1, nrow, nfreq]]
self._target = ift.DomainTuple.make(tgt)
self._capability = self.TIMES | self.ADJOINT_TIMES
# FIXME Try to unify all those operators which loop over freq dimension
self._ops = []
for ii in range(nfreq):
op = ift.LinearInterpolator(domain[1], eff_uvw[:, ii][None])
op = ift.LinearInterpolator(domain[1], eff_uvw[:, :, ii])
self._ops.append(op)
my_asserteq(self.target.shape[0], 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment