ratt-ru / CubiCal

A fast radio interferometric calibration suite.
GNU General Public License v2.0
18 stars 13 forks source link

phase-only solver regression in 1.5.0 #379

Closed o-smirnov closed 4 years ago

o-smirnov commented 4 years ago

Reported here: https://github.com/caracal-pipeline/caracal/issues/1109

I already have a solution, so filing this just to keep the paperwork complete.

o-smirnov commented 4 years ago

So mainly the regression was due to a bug with the phase-only solver that I introduced in 1.5.0. It affects both 2-corr and 4-corr data (unlike what I suggested earlier), but does not arise when a Jones chain is used (so @bennahugo did not see it because he was doing G+dE all along).

(@JSKenyon, this is the same bug you found with _gh_update. It seems we fixed it everywhere except the phase-only solver...)

The bug is now fixed on this branch, and I will initiate a PR and release shortly, just doing a bit more testing.

In the process, I turned up other curious stuff with @paoloserra's dataset, which I will document below.

o-smirnov commented 4 years ago

Other interesting points and interactions of bugs and features:

So, take-home messages:

On a side note, in the dual-corr case, the chi-squares reported by 1.5.x are exactly twice those of 1.4.x. @PeterKamphuis already noted this. I found the factor of 2 in the code, and I'm pretty convinced the 1.5.x scaling is the correct one.

o-smirnov commented 4 years ago

P.S. By horrible results, I mean 80% flagged data. The remaining 20% looks fine...