Commit 1b8baa3c authored by Philipp Frank's avatar Philipp Frank
Browse files

update test

parent 03ab0901
Pipeline #91867 passed with stages
in 14 minutes and 33 seconds
......@@ -47,8 +47,8 @@ d3 = {
'ant1': np.array([0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 2]),
'ant2': np.array([1, 2, 3, 2, 3, 1, 2, 3, 2, 3, 3])
}
ds = [vlbi.read_data('data/m87', dd, ff, aa) for dd, ff, aa in product(vlbi.DAYS, vlbi.FREQS, avg_ints)]
ds.extend([vlbi.combined_data('data/m87', vlbi.FREQS, aa) for aa in avg_ints])
ds = [vlbi.read_data('data/ehtcrescent', dd, ff, aa) for dd, ff, aa in product(vlbi.DAYS, vlbi.FREQS, avg_ints)]
ds.extend([vlbi.combined_data('data/ehtcrescent', vlbi.FREQS, aa) for aa in avg_ints])
ds.append(d3)
seeds = [189, 4938]
......@@ -252,8 +252,8 @@ def test_skyscaling_invariance(d):
cph = vlbi.Visibilities2ClosurePhases(d)[0]
ca = vlbi.Visibilities2ClosureAmplitudes(d)[0]
vis = ift.from_random(cph.domain, 'normal', dtype=np.complex128)
ift.extra.assert_allclose(cph(vis), cph(0.78*vis), 0, 1e-11)
ift.extra.assert_allclose(ca(vis), ca(0.878*vis), 0, 1e-11)
ift.extra.assert_allclose(cph(vis), cph(0.78*vis), 0, 1e-10)
ift.extra.assert_allclose(ca(vis), ca(0.878*vis), 0, 1e-10)
@pmp('ddtype', dtypes)
......
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