Commits

Neal Schweighart authored 162c9a58b9a
lowering the atol on gain comparision? There are failures only for arm

casatasks/tests/tasks/test_task_appendantab.py

Modified
54 54 tb.open(ref+"/GAIN_CURVE")
55 55 for i in range(tb.nrows()):
56 56 cur = tb.getcell('GAIN', i)
57 57 ref_gains.extend(tb.getcell('GAIN', i))
58 58 tb.close()
59 59
60 60 if len(ref_gains) != len(gains):
61 61 return False
62 62
63 63 for i in range(len(gains)):
64 + #print("COMP: ", ref_gains[i]- gains[i])
65 + #print("TRUTH: ", np.isclose(ref_gains[i], gains[i], atol=1e-6))
64 66 if not np.all(np.isclose(ref_gains[i], gains[i])):
67 + print("REF AND REAL DIFFER: ", ref_gains[i], gains[i])
65 68 return False
66 69
67 70 return True
68 71
69 72 def compareTsys(table, ref):
70 73 # Compare the tsys values
71 74 tb.open(table+"/SYSCAL")
72 75 sys = tb.getcol("TSYS")
73 76 tb.close()
74 77

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut