Commits
2182 2182 | auto const denominator = weightMat(0, k) + weightMat((npol-1), k); |
2183 2183 | auto const numerator = weightMat(0, k) * weightMat((npol-1), k); |
2184 2184 | weight.column(k).set(toStokesWeight(numerator, denominator)); |
2185 2185 | } |
2186 2186 | } |
2187 2187 | } else { |
2188 2188 | ssize_t const npol = weightSpec.shape()(0); |
2189 2189 | if (npol == 1) { |
2190 2190 | for (int k = 0; k < vb.nRow(); ++k) { |
2191 2191 | for (int chan = 0; chan < vb.nChannel(); ++chan) { |
2192 - | weight(chan, k)=weightSpec(0, chan, k); |
2192 + | weight(chan, k) = weightSpec(0, chan, k); |
2193 2193 | } |
2194 2194 | } |
2195 2195 | } else { |
2196 2196 | for (int k = 0; k < vb.nRow(); ++k) { |
2197 2197 | for (int chan = 0; chan < vb.nChannel(); ++chan) { |
2198 2198 | // CAS-9957 correct weight propagation from linear/circular correlations to Stokes I |
2199 2199 | auto const denominator = weightSpec(0, chan, k) + weightSpec((npol-1), chan, k); |
2200 2200 | auto const numerator = weightSpec(0, chan, k) * weightSpec((npol-1), chan, k); |
2201 2201 | weight(chan, k) = toStokesWeight(numerator, denominator); |
2202 2202 | } |