Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross polarisation calibration solution #4

Open
timcornwell opened this issue Oct 5, 2017 · 1 comment
Open

Cross polarisation calibration solution #4

timcornwell opened this issue Oct 5, 2017 · 1 comment
Assignees

Comments

@timcornwell
Copy link
Contributor

The cross polarisation solution does not converge (judged by residual error), Currently this does work.

    def test_solve_gaintable_matrix_both_linear(self):
        self.core_solve('stokesIQUV', 'linear', phase_error=0.1, amplitude_error=0.01, leakage=0.01, residual_tol=1e-3,
                        crosspol=True, phase_only=False, f = [100.0, 50.0, 0.0, 0.0])
    
    def test_solve_gaintable_matrix_both_circular(self):
        self.core_solve('stokesIQUV', 'circular', phase_error=0.1, amplitude_error=0.01, leakage=0.01,
                        residual_tol=1e-3, crosspol=True, phase_only=False, f=[100.0, 0.0, 0.0, 50.0])

Setting the cross pol terms to nonzero leads to non-convergence

@timcornwell timcornwell self-assigned this Oct 5, 2017
@timcornwell
Copy link
Contributor Author

For example:

    def test_solve_gaintable_matrix_both_circular(self):
        self.core_solve('stokesIQUV', 'circular', phase_error=0.1, amplitude_error=0.01, leakage=0.01,
                        residual_tol=1e-3, crosspol=True, phase_only=False, f=[100.0, 10.0, -20.0, 50.0],
                        niter=1000)


yields:

Ran 1 test in 130.815s

FAILED (failures=1)

Failure
Traceback (most recent call last):
  File "/Users/timcornwell/anaconda/envs/arlenv/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/Users/timcornwell/anaconda/envs/arlenv/lib/python3.6/unittest/case.py", line 601, in run
    testMethod()
  File "/Users/timcornwell/Code/algorithm-reference-library/tests/test_calibration_solvers.py", line 120, in test_solve_gaintable_matrix_both_circular
    niter=1000)
  File "/Users/timcornwell/Code/algorithm-reference-library/tests/test_calibration_solvers.py", line 89, in core_solve
    assert residual < residual_tol, "%s %s Max residual = %s" % (spf, dpf, residual)
AssertionError: stokesIQUV circular Max residual = 0.0788709005565)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant