mwalib 2.0.1

A library to simplify reading Murchison Widefield Array (MWA) raw visibilities, voltages and metadata.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
# This file is automatically generated by pyo3_stub_gen
# ruff: noqa: E501, F401, F403, F405

import builtins
import datetime
import enum
import numpy
import numpy.typing
import typing
__all__ = [
    "Antenna",
    "Baseline",
    "CableDelaysApplied",
    "CalibrationFit",
    "CoarseChannel",
    "CorrelatorContext",
    "DataFileType",
    "GeometricDelaysApplied",
    "GpuBoxBatch",
    "GpuBoxFile",
    "GpuboxErrorBatchMissing",
    "GpuboxErrorCorrVerMismatch",
    "GpuboxErrorEmptyBTreeMap",
    "GpuboxErrorFits",
    "GpuboxErrorInvalidCoarseChanIndex",
    "GpuboxErrorInvalidMwaVersion",
    "GpuboxErrorInvalidTimeStepIndex",
    "GpuboxErrorLegacyNaxis1Mismatch",
    "GpuboxErrorLegacyNaxis2Mismatch",
    "GpuboxErrorMissingObsid",
    "GpuboxErrorMixture",
    "GpuboxErrorMwaxCorrVerMismatch",
    "GpuboxErrorMwaxCorrVerMissing",
    "GpuboxErrorMwaxNaxis1Mismatch",
    "GpuboxErrorMwaxNaxis2Mismatch",
    "GpuboxErrorNoDataForTimeStepCoarseChannel",
    "GpuboxErrorNoDataHDUsInGpuboxFile",
    "GpuboxErrorNoGpuboxes",
    "GpuboxErrorObsidMismatch",
    "GpuboxErrorUnequalHduSizes",
    "GpuboxErrorUnevenCountInBatches",
    "GpuboxErrorUnrecognised",
    "LegacyConversionBaseline",
    "MWAMode",
    "MWAVersion",
    "MetafitsContext",
    "MwalibError",
    "Pol",
    "ReceiverType",
    "Rfinput",
    "SignalChainCorrection",
    "TimeStep",
    "VisPol",
    "VoltageBeam",
    "VoltageContext",
    "VoltageErro",
    "VoltageErrorEmptyBTreeMap",
    "VoltageErrorGpsTimeMissing",
    "VoltageErrorInvalidBufferSize",
    "VoltageErrorInvalidCoarseChanIndex",
    "VoltageErrorInvalidGpsSecondCount",
    "VoltageErrorInvalidGpsSecondStart",
    "VoltageErrorInvalidMwaVersion",
    "VoltageErrorInvalidTimeStepIndex",
    "VoltageErrorInvalidVoltageFileSize",
    "VoltageErrorMetafitsObsidMismatch",
    "VoltageErrorMissingObsid",
    "VoltageErrorMixture",
    "VoltageErrorNoDataForTimeStepCoarseChannel",
    "VoltageErrorNoVoltageFiles",
    "VoltageErrorObsidMismatch",
    "VoltageErrorUnequalFileSizes",
    "VoltageErrorUnevenChannelsForGpsTime",
    "VoltageErrorUnrecognised",
    "VoltageFile",
    "VoltageFileBatch",
]

@typing.final
class Antenna:
    r"""
    Structure for storing MWA antennas (tiles without polarisation) information from the metafits file
    """
    @property
    def ant(self) -> builtins.int:
        r"""
        This is the antenna number.
        Nominally this is the field we sort by to get the desired output order of antenna.
        X and Y have the same antenna number. This is the sorted ordinal order of the antenna.None
        e.g. 0...N-1
        """
    @ant.setter
    def ant(self, value: builtins.int) -> None:
        r"""
        This is the antenna number.
        Nominally this is the field we sort by to get the desired output order of antenna.
        X and Y have the same antenna number. This is the sorted ordinal order of the antenna.None
        e.g. 0...N-1
        """
    @property
    def tile_id(self) -> builtins.int:
        r"""
        Numeric part of tile_name for the antenna. Each pol has the same value
        e.g. tile_name "tile011" hsa tile_id of 11
        """
    @tile_id.setter
    def tile_id(self, value: builtins.int) -> None:
        r"""
        Numeric part of tile_name for the antenna. Each pol has the same value
        e.g. tile_name "tile011" hsa tile_id of 11
        """
    @property
    def tile_name(self) -> builtins.str:
        r"""
        Human readable name of the antenna
        X and Y have the same name
        """
    @tile_name.setter
    def tile_name(self, value: builtins.str) -> None:
        r"""
        Human readable name of the antenna
        X and Y have the same name
        """
    @property
    def rfinput_x(self) -> Rfinput:
        r"""
        Reference to the X pol rf_input
        """
    @rfinput_x.setter
    def rfinput_x(self, value: Rfinput) -> None:
        r"""
        Reference to the X pol rf_input
        """
    @property
    def rfinput_y(self) -> Rfinput:
        r"""
        Reference to the Y pol rf_input
        """
    @rfinput_y.setter
    def rfinput_y(self, value: Rfinput) -> None:
        r"""
        Reference to the Y pol rf_input
        """
    @property
    def electrical_length_m(self) -> builtins.float:
        r"""
        Note: the next 4 values are from the rfinput of which we have X and Y, however these values are the same for each pol so can be safely placed in the antenna struct
        for efficiency
        
        Electrical length in metres for this antenna and polarisation to the receiver.
        """
    @electrical_length_m.setter
    def electrical_length_m(self, value: builtins.float) -> None:
        r"""
        Note: the next 4 values are from the rfinput of which we have X and Y, however these values are the same for each pol so can be safely placed in the antenna struct
        for efficiency
        
        Electrical length in metres for this antenna and polarisation to the receiver.
        """
    @property
    def north_m(self) -> builtins.float:
        r"""
        Antenna position North from the array centre (metres)
        """
    @north_m.setter
    def north_m(self, value: builtins.float) -> None:
        r"""
        Antenna position North from the array centre (metres)
        """
    @property
    def east_m(self) -> builtins.float:
        r"""
        Antenna position East from the array centre (metres)
        """
    @east_m.setter
    def east_m(self, value: builtins.float) -> None:
        r"""
        Antenna position East from the array centre (metres)
        """
    @property
    def height_m(self) -> builtins.float:
        r"""
        Antenna height from the array centre (metres)
        """
    @height_m.setter
    def height_m(self, value: builtins.float) -> None:
        r"""
        Antenna height from the array centre (metres)
        """

@typing.final
class Baseline:
    r"""
    This is a struct for our baselines, so callers know the antenna ordering
    """
    @property
    def ant1_index(self) -> builtins.int:
        r"""
        Index in the mwalibContext.antenna array for antenna1 for this baseline
        """
    @ant1_index.setter
    def ant1_index(self, value: builtins.int) -> None:
        r"""
        Index in the mwalibContext.antenna array for antenna1 for this baseline
        """
    @property
    def ant2_index(self) -> builtins.int:
        r"""
        Index in the mwalibContext.antenna array for antenna2 for this baseline
        """
    @ant2_index.setter
    def ant2_index(self, value: builtins.int) -> None:
        r"""
        Index in the mwalibContext.antenna array for antenna2 for this baseline
        """

@typing.final
class CalibrationFit:
    r"""
    Calibration Fits
    This table is present in some metafits files, and if present, contains data from the calibration_solutions
    database table with a calibration fit from the most recent fitted calibration observation with the same
    frequency channel setttings as this observation.
    """
    @property
    def rf_input(self) -> Rfinput:
        r"""
        rf_input (ant, pol)
        """
    @rf_input.setter
    def rf_input(self, value: Rfinput) -> None:
        r"""
        rf_input (ant, pol)
        """
    @property
    def delay_metres(self) -> builtins.float:
        r"""
        The calibration offset, in metres, for that input,
        derived from the most recently processed calibrator
        observation with the same coarse channels.
        May be missing or all zeros in some metafits files.
        Used to generate the slope (versus frequency) for the phase correction.
        """
    @delay_metres.setter
    def delay_metres(self, value: builtins.float) -> None:
        r"""
        The calibration offset, in metres, for that input,
        derived from the most recently processed calibrator
        observation with the same coarse channels.
        May be missing or all zeros in some metafits files.
        Used to generate the slope (versus frequency) for the phase correction.
        """
    @property
    def intercept_metres(self) -> builtins.float:
        r"""
        Used, with the phase slope above to generate the phase correction for each fine channel, for this tile.
        """
    @intercept_metres.setter
    def intercept_metres(self, value: builtins.float) -> None:
        r"""
        Used, with the phase slope above to generate the phase correction for each fine channel, for this tile.
        """
    @property
    def gains(self) -> builtins.list[builtins.float]:
        r"""
        The calibration gain multiplier (not in dB) for each of the N channels (normally 24) in this observation,
        for this input. Derived from the most recently processed calibrator observation with the same coarse
        channels. May be missing or all ones in some metafits files.
        """
    @gains.setter
    def gains(self, value: builtins.list[builtins.float]) -> None:
        r"""
        The calibration gain multiplier (not in dB) for each of the N channels (normally 24) in this observation,
        for this input. Derived from the most recently processed calibrator observation with the same coarse
        channels. May be missing or all ones in some metafits files.
        """
    @property
    def num_gains(self) -> builtins.int: ...
    @num_gains.setter
    def num_gains(self, value: builtins.int) -> None: ...
    @property
    def gain_polynomial_fit0(self) -> builtins.list[builtins.float]:
        r"""
        polynomial fit parameter for a more accurate gain correction solution for each of the N channels (normally 24) in this observation
        """
    @gain_polynomial_fit0.setter
    def gain_polynomial_fit0(self, value: builtins.list[builtins.float]) -> None:
        r"""
        polynomial fit parameter for a more accurate gain correction solution for each of the N channels (normally 24) in this observation
        """
    @property
    def num_gain_polynomial_fit0(self) -> builtins.int:
        r"""
        number of gain_polynomial_fit0 elements
        """
    @num_gain_polynomial_fit0.setter
    def num_gain_polynomial_fit0(self, value: builtins.int) -> None:
        r"""
        number of gain_polynomial_fit0 elements
        """
    @property
    def gain_polynomial_fit1(self) -> builtins.list[builtins.float]:
        r"""
        polynomial fit parameter for a more accurate gain correction solution for each of the N channels (normally 24) in this observation
        """
    @gain_polynomial_fit1.setter
    def gain_polynomial_fit1(self, value: builtins.list[builtins.float]) -> None:
        r"""
        polynomial fit parameter for a more accurate gain correction solution for each of the N channels (normally 24) in this observation
        """
    @property
    def num_gain_polynomial_fit1(self) -> builtins.int:
        r"""
        number of gain_polynomial_fit1 elements
        """
    @num_gain_polynomial_fit1.setter
    def num_gain_polynomial_fit1(self, value: builtins.int) -> None:
        r"""
        number of gain_polynomial_fit1 elements
        """
    @property
    def phase_fit_quality(self) -> builtins.float:
        r"""
        dimensionless quality parameter (0-1.0) for the phase fit
        """
    @phase_fit_quality.setter
    def phase_fit_quality(self, value: builtins.float) -> None:
        r"""
        dimensionless quality parameter (0-1.0) for the phase fit
        """
    @property
    def gain_fit_quality(self) -> builtins.float:
        r"""
        dimensionless quality parameter (0-1.0) for the gain fit
        """
    @gain_fit_quality.setter
    def gain_fit_quality(self, value: builtins.float) -> None:
        r"""
        dimensionless quality parameter (0-1.0) for the gain fit
        """

@typing.final
class CoarseChannel:
    r"""
    This is a struct for coarse channels
    """
    @property
    def corr_chan_number(self) -> builtins.int:
        r"""
        Correlator channel is 0 indexed (0..N-1)
        """
    @corr_chan_number.setter
    def corr_chan_number(self, value: builtins.int) -> None:
        r"""
        Correlator channel is 0 indexed (0..N-1)
        """
    @property
    def rec_chan_number(self) -> builtins.int:
        r"""
        Receiver channel is 0-255 in the RRI recivers
        """
    @rec_chan_number.setter
    def rec_chan_number(self, value: builtins.int) -> None:
        r"""
        Receiver channel is 0-255 in the RRI recivers
        """
    @property
    def gpubox_number(self) -> builtins.int:
        r"""
        gpubox channel number
        This is better described as the identifier which would be in the filename of visibility files
        Legacy e.g. obsid_datetime_gpuboxXX_00
        v2     e.g. obsid_datetime_gpuboxXXX_00
        """
    @gpubox_number.setter
    def gpubox_number(self, value: builtins.int) -> None:
        r"""
        gpubox channel number
        This is better described as the identifier which would be in the filename of visibility files
        Legacy e.g. obsid_datetime_gpuboxXX_00
        v2     e.g. obsid_datetime_gpuboxXXX_00
        """
    @property
    def chan_width_hz(self) -> builtins.int:
        r"""
        Width of a coarse channel in Hz
        """
    @chan_width_hz.setter
    def chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Width of a coarse channel in Hz
        """
    @property
    def chan_start_hz(self) -> builtins.int:
        r"""
        Starting frequency of coarse channel in Hz
        """
    @chan_start_hz.setter
    def chan_start_hz(self, value: builtins.int) -> None:
        r"""
        Starting frequency of coarse channel in Hz
        """
    @property
    def chan_centre_hz(self) -> builtins.int:
        r"""
        Centre frequency of coarse channel in Hz
        """
    @chan_centre_hz.setter
    def chan_centre_hz(self, value: builtins.int) -> None:
        r"""
        Centre frequency of coarse channel in Hz
        """
    @property
    def chan_end_hz(self) -> builtins.int:
        r"""
        Ending frequency of coarse channel in Hz
        """
    @chan_end_hz.setter
    def chan_end_hz(self, value: builtins.int) -> None:
        r"""
        Ending frequency of coarse channel in Hz
        """

@typing.final
class CorrelatorContext:
    r"""
    This represents the basic metadata and methods for an MWA correlator observation.
    """
    @property
    def metafits_context(self) -> MetafitsContext:
        r"""
        Observation Metadata obtained from the metafits file
        """
    @metafits_context.setter
    def metafits_context(self, value: MetafitsContext) -> None:
        r"""
        Observation Metadata obtained from the metafits file
        """
    @property
    def mwa_version(self) -> MWAVersion:
        r"""
        MWA version, derived from the files passed in
        """
    @mwa_version.setter
    def mwa_version(self, value: MWAVersion) -> None:
        r"""
        MWA version, derived from the files passed in
        """
    @property
    def timesteps(self) -> builtins.list[TimeStep]:
        r"""
        This is an array of all known timesteps (union of metafits and provided timesteps from data files). The only exception is when the metafits timesteps are
        offset from the provided timesteps, in which case see description in `timestep::populate_metafits_provided_superset_of_timesteps`.
        """
    @timesteps.setter
    def timesteps(self, value: builtins.list[TimeStep]) -> None:
        r"""
        This is an array of all known timesteps (union of metafits and provided timesteps from data files). The only exception is when the metafits timesteps are
        offset from the provided timesteps, in which case see description in `timestep::populate_metafits_provided_superset_of_timesteps`.
        """
    @property
    def num_timesteps(self) -> builtins.int:
        r"""
        Number of timesteps in the timesteps vector
        """
    @num_timesteps.setter
    def num_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of timesteps in the timesteps vector
        """
    @property
    def coarse_chans(self) -> builtins.list[CoarseChannel]:
        r"""
        Vector of coarse channel structs which is the same as the metafits provided coarse channels
        """
    @coarse_chans.setter
    def coarse_chans(self, value: builtins.list[CoarseChannel]) -> None:
        r"""
        Vector of coarse channel structs which is the same as the metafits provided coarse channels
        """
    @property
    def num_coarse_chans(self) -> builtins.int:
        r"""
        Number of coarse channels in the coarse channel vector
        """
    @num_coarse_chans.setter
    def num_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of coarse channels in the coarse channel vector
        """
    @property
    def common_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common timestep indices
        """
    @common_timestep_indices.setter
    def common_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common timestep indices
        """
    @property
    def num_common_timesteps(self) -> builtins.int:
        r"""
        Number of common timesteps
        """
    @num_common_timesteps.setter
    def num_common_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of common timesteps
        """
    @property
    def common_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common coarse channel indices
        """
    @common_coarse_chan_indices.setter
    def common_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common coarse channel indices
        """
    @property
    def num_common_coarse_chans(self) -> builtins.int:
        r"""
        Number of common coarse channels
        """
    @num_common_coarse_chans.setter
    def num_common_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of common coarse channels
        """
    @property
    def common_start_unix_time_ms(self) -> builtins.int:
        r"""
        The start of the observation (the time that is common to all
        provided gpubox files).
        """
    @common_start_unix_time_ms.setter
    def common_start_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        The start of the observation (the time that is common to all
        provided gpubox files).
        """
    @property
    def common_end_unix_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` is the common end time of the observation
        i.e. start time of last common timestep plus integration time.
        """
    @common_end_unix_time_ms.setter
    def common_end_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` is the common end time of the observation
        i.e. start time of last common timestep plus integration time.
        """
    @property
    def common_start_gps_time_ms(self) -> builtins.int:
        r"""
        `start_unix_time_ms` but in GPS milliseconds
        """
    @common_start_gps_time_ms.setter
    def common_start_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `start_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_end_gps_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` but in GPS milliseconds
        """
    @common_end_gps_time_ms.setter
    def common_end_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_duration_ms(self) -> builtins.int:
        r"""
        Total duration of common timesteps
        """
    @common_duration_ms.setter
    def common_duration_ms(self, value: builtins.int) -> None:
        r"""
        Total duration of common timesteps
        """
    @property
    def common_bandwidth_hz(self) -> builtins.int:
        r"""
        Total bandwidth of the common coarse channels
        """
    @common_bandwidth_hz.setter
    def common_bandwidth_hz(self, value: builtins.int) -> None:
        r"""
        Total bandwidth of the common coarse channels
        """
    @property
    def common_good_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common timestep indices only including timesteps after the quack time
        """
    @common_good_timestep_indices.setter
    def common_good_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common timestep indices only including timesteps after the quack time
        """
    @property
    def num_common_good_timesteps(self) -> builtins.int:
        r"""
        Number of common timesteps only including timesteps after the quack time
        """
    @num_common_good_timesteps.setter
    def num_common_good_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of common timesteps only including timesteps after the quack time
        """
    @property
    def common_good_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common coarse channel indices only including timesteps after the quack time
        """
    @common_good_coarse_chan_indices.setter
    def common_good_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common coarse channel indices only including timesteps after the quack time
        """
    @property
    def num_common_good_coarse_chans(self) -> builtins.int:
        r"""
        Number of common coarse channels only including timesteps after the quack time
        """
    @num_common_good_coarse_chans.setter
    def num_common_good_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of common coarse channels only including timesteps after the quack time
        """
    @property
    def common_good_start_unix_time_ms(self) -> builtins.int:
        r"""
        The start of the observation (the time that is common to all
        provided gpubox files) only including timesteps after the quack time
        """
    @common_good_start_unix_time_ms.setter
    def common_good_start_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        The start of the observation (the time that is common to all
        provided gpubox files) only including timesteps after the quack time
        """
    @property
    def common_good_end_unix_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` is the common end time of the observation only including timesteps after the quack time
        i.e. start time of last common timestep plus integration time.
        """
    @common_good_end_unix_time_ms.setter
    def common_good_end_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` is the common end time of the observation only including timesteps after the quack time
        i.e. start time of last common timestep plus integration time.
        """
    @property
    def common_good_start_gps_time_ms(self) -> builtins.int:
        r"""
        `common_good_start_unix_time_ms` but in GPS milliseconds
        """
    @common_good_start_gps_time_ms.setter
    def common_good_start_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `common_good_start_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_good_end_gps_time_ms(self) -> builtins.int:
        r"""
        `common_good_end_unix_time_ms` but in GPS milliseconds
        """
    @common_good_end_gps_time_ms.setter
    def common_good_end_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `common_good_end_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_good_duration_ms(self) -> builtins.int:
        r"""
        Total duration of common_good timesteps
        """
    @common_good_duration_ms.setter
    def common_good_duration_ms(self, value: builtins.int) -> None:
        r"""
        Total duration of common_good timesteps
        """
    @property
    def common_good_bandwidth_hz(self) -> builtins.int:
        r"""
        Total bandwidth of the common coarse channels only including timesteps after the quack time
        """
    @common_good_bandwidth_hz.setter
    def common_good_bandwidth_hz(self, value: builtins.int) -> None:
        r"""
        Total bandwidth of the common coarse channels only including timesteps after the quack time
        """
    @property
    def provided_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        The indices of any timesteps which we have *some* data for
        """
    @provided_timestep_indices.setter
    def provided_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        The indices of any timesteps which we have *some* data for
        """
    @property
    def num_provided_timesteps(self) -> builtins.int:
        r"""
        Number of provided timestep indices we have at least *some* data for
        """
    @num_provided_timesteps.setter
    def num_provided_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of provided timestep indices we have at least *some* data for
        """
    @property
    def provided_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        The indices of any coarse channels which we have *some* data for
        """
    @provided_coarse_chan_indices.setter
    def provided_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        The indices of any coarse channels which we have *some* data for
        """
    @property
    def num_provided_coarse_chans(self) -> builtins.int:
        r"""
        Number of provided coarse channel indices we have at least *some* data for
        """
    @num_provided_coarse_chans.setter
    def num_provided_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of provided coarse channel indices we have at least *some* data for
        """
    @property
    def num_timestep_coarse_chan_bytes(self) -> builtins.int:
        r"""
        The number of bytes taken up by a scan/timestep in each gpubox file.
        """
    @num_timestep_coarse_chan_bytes.setter
    def num_timestep_coarse_chan_bytes(self, value: builtins.int) -> None:
        r"""
        The number of bytes taken up by a scan/timestep in each gpubox file.
        """
    @property
    def num_timestep_coarse_chan_floats(self) -> builtins.int:
        r"""
        The number of floats in each gpubox visibility HDU.
        """
    @num_timestep_coarse_chan_floats.setter
    def num_timestep_coarse_chan_floats(self, value: builtins.int) -> None:
        r"""
        The number of floats in each gpubox visibility HDU.
        """
    @property
    def num_timestep_coarse_chan_weight_floats(self) -> builtins.int:
        r"""
        The number of floats in each gpubox weights HDU.
        """
    @num_timestep_coarse_chan_weight_floats.setter
    def num_timestep_coarse_chan_weight_floats(self, value: builtins.int) -> None:
        r"""
        The number of floats in each gpubox weights HDU.
        """
    @property
    def num_gpubox_files(self) -> builtins.int:
        r"""
        This is the number of gpubox files *per batch*.
        """
    @num_gpubox_files.setter
    def num_gpubox_files(self, value: builtins.int) -> None:
        r"""
        This is the number of gpubox files *per batch*.
        """
    @property
    def gpubox_batches(self) -> builtins.list[GpuBoxBatch]:
        r"""
        `gpubox_batches` *must* be sorted appropriately. See
        `gpubox::determine_gpubox_batches`. The order of the filenames
        corresponds directly to other gpubox-related objects
        (e.g. `gpubox_hdu_limits`). Structured:
        `gpubox_batches[batch][filename]`.
        """
    @gpubox_batches.setter
    def gpubox_batches(self, value: builtins.list[GpuBoxBatch]) -> None:
        r"""
        `gpubox_batches` *must* be sorted appropriately. See
        `gpubox::determine_gpubox_batches`. The order of the filenames
        corresponds directly to other gpubox-related objects
        (e.g. `gpubox_hdu_limits`). Structured:
        `gpubox_batches[batch][filename]`.
        """
    @property
    def gpubox_time_map(self) -> builtins.dict[builtins.int, builtins.dict[builtins.int, tuple[builtins.int, builtins.int]]]:
        r"""
        We assume as little as possible about the data layout in the gpubox
        files; here, a `BTreeMap` contains each unique UNIX time from every
        gpubox, which is associated with another `BTreeMap`, associating each
        gpubox number with a gpubox batch number and HDU index. The gpubox
        number, batch number and HDU index are everything needed to find the
        correct HDU out of all gpubox files.
        """
    @gpubox_time_map.setter
    def gpubox_time_map(self, value: builtins.dict[builtins.int, builtins.dict[builtins.int, tuple[builtins.int, builtins.int]]]) -> None:
        r"""
        We assume as little as possible about the data layout in the gpubox
        files; here, a `BTreeMap` contains each unique UNIX time from every
        gpubox, which is associated with another `BTreeMap`, associating each
        gpubox number with a gpubox batch number and HDU index. The gpubox
        number, batch number and HDU index are everything needed to find the
        correct HDU out of all gpubox files.
        """
    @property
    def legacy_conversion_table(self) -> builtins.list[LegacyConversionBaseline]:
        r"""
        A conversion table to optimise reading of legacy MWA HDUs
        """
    @legacy_conversion_table.setter
    def legacy_conversion_table(self, value: builtins.list[LegacyConversionBaseline]) -> None:
        r"""
        A conversion table to optimise reading of legacy MWA HDUs
        """
    @property
    def bscale(self) -> builtins.float:
        r"""
        BSCALE- FITS BSCALE or SCALEFAC value set on the visibility HDUs (used in Legacy Correlator only)
        """
    @bscale.setter
    def bscale(self, value: builtins.float) -> None:
        r"""
        BSCALE- FITS BSCALE or SCALEFAC value set on the visibility HDUs (used in Legacy Correlator only)
        """
    def __new__(cls, metafits_filename: builtins.str, gpubox_filenames: typing.Sequence[builtins.str]) -> CorrelatorContext:
        r"""
        From a path to a metafits file and paths to gpubox files, create a `CorrelatorContext`.
        
        Args:
            metafits_filename (str): filename of metafits file as a path or string.
            gpubox_filenames (list[str]): list of filenames of gpubox files.
        
        Returns:
            correlator_context (CorelatorContext): a populated CorrelatorContext object if Ok.
        """
    def get_fine_chan_freqs_hz_array(self, corr_coarse_chan_indices: typing.Sequence[builtins.int]) -> builtins.list[builtins.float]:
        r"""
        For a given list of correlator coarse channel indices, return a list of the center frequencies for all the fine channels in the given coarse channels
        
        Args:
            corr_coarse_chan_indices (list[int]): a list containing correlator coarse channel indices for which you want fine channels for. Does not need to be contiguous.
        
        Returns:
            fine_chan_freqs_hz_array (list[float]): a vector of floats containing the centre sky frequencies of all the fine channels for the given coarse channels.
        """
    def read_by_baseline(self, corr_timestep_index: builtins.int, corr_coarse_chan_index: builtins.int) -> numpy.typing.NDArray[numpy.float32]:
        r"""
        Read a single timestep for a single coarse channel. The output visibilities are in order: baseline,frequency,pol,r,i
        
        Args:
            corr_timestep_index (int): index within the CorrelatorContext timestep array for the desired timestep. This corresponds to the element within CorrelatorContext.timesteps.
            corr_coarse_chan_index (int): index within the CorrelatorContext coarse_chan array for the desired coarse channel. This corresponds to the element within CorrelatorContext.coarse_chans.
        
        Returns:
            data (numpy.typing.NDArray[numpy.float32]): 3 dimensional ndarray of 32 bit floats containing the data in [baseline],[frequency],[pol,r,i] order, if Ok.
        """
    def read_by_frequency(self, corr_timestep_index: builtins.int, corr_coarse_chan_index: builtins.int) -> numpy.typing.NDArray[numpy.float32]:
        r"""
        Read a single timestep for a single coarse channel. The output visibilities are in order: frequency,baseline,pol,r,i
        
        Args:
            corr_timestep_index (int): index within the CorrelatorContext timestep array for the desired timestep. This corresponds to the element within CorrelatorContext.timesteps.
            corr_coarse_chan_index (int): index within the CorrelatorContext coarse_chan array for the desired coarse channel. This corresponds to the element within CorrelatorContext.coarse_chans.
        
        Returns:
            data (numpy.typing.NDArray[numpy.float32]): 3 dimensional ndarray of 32 bit floats containing the data in [frequency],[baseline],[pol,r,i] order, if Ok.
        """
    def read_weights_by_baseline(self, corr_timestep_index: builtins.int, corr_coarse_chan_index: builtins.int) -> numpy.typing.NDArray[numpy.float32]:
        r"""
        Read weights for a single timestep for a single coarse channel. The output weights are in order: baseline,pol
        
        Args:
            corr_timestep_index (int): index within the CorrelatorContext timestep array for the desired timestep. This corresponds to the element within CorrelatorContext.timesteps.
            corr_coarse_chan_index (int): index within the CorrelatorContext coarse_chan array for the desired coarse channel. This corresponds to the element within CorrelatorContext.coarse_chans.
        
        Returns:
            data (numpy.typing.NDArray[numpy.float32]): A 2 dimensional ndarray of 32 bit floats containing the data in [baseline],[pol] order, if Ok.
        """
    def __repr__(self) -> builtins.str: ...
    def __enter__(self, slf: CorrelatorContext) -> CorrelatorContext: ...
    def __exit__(self, _exc_type: typing.Any, _exc_value: typing.Any, _traceback: typing.Any) -> None: ...

@typing.final
class GpuBoxBatch:
    r"""
    This represents one group of gpubox files with the same "batch" identitifer.
    e.g. obsid_datetime_chan_batch
    """
    @property
    def batch_number(self) -> builtins.int:
        r"""
        Batch number: 00,01,02..n.
        """
    @batch_number.setter
    def batch_number(self, value: builtins.int) -> None:
        r"""
        Batch number: 00,01,02..n.
        """
    @property
    def gpubox_files(self) -> builtins.list[GpuBoxFile]:
        r"""
        Vector storing the details of each gpubox file in this batch
        """
    @gpubox_files.setter
    def gpubox_files(self, value: builtins.list[GpuBoxFile]) -> None:
        r"""
        Vector storing the details of each gpubox file in this batch
        """

@typing.final
class GpuBoxFile:
    r"""
    This represents one gpubox file
    """
    @property
    def filename(self) -> builtins.str:
        r"""
        Filename of gpubox file
        """
    @filename.setter
    def filename(self, value: builtins.str) -> None:
        r"""
        Filename of gpubox file
        """
    @property
    def channel_identifier(self) -> builtins.int:
        r"""
        channel number (Legacy==gpubox host number 01..24; V2==receiver channel number 001..255)
        """
    @channel_identifier.setter
    def channel_identifier(self, value: builtins.int) -> None:
        r"""
        channel number (Legacy==gpubox host number 01..24; V2==receiver channel number 001..255)
        """

class GpuboxErrorBatchMissing(builtins.Exception):
    ...

class GpuboxErrorCorrVerMismatch(builtins.Exception):
    ...

class GpuboxErrorEmptyBTreeMap(builtins.Exception):
    ...

class GpuboxErrorFits(builtins.Exception):
    ...

class GpuboxErrorInvalidCoarseChanIndex(builtins.Exception):
    ...

class GpuboxErrorInvalidMwaVersion(builtins.Exception):
    ...

class GpuboxErrorInvalidTimeStepIndex(builtins.Exception):
    ...

class GpuboxErrorLegacyNaxis1Mismatch(builtins.Exception):
    ...

class GpuboxErrorLegacyNaxis2Mismatch(builtins.Exception):
    ...

class GpuboxErrorMissingObsid(builtins.Exception):
    ...

class GpuboxErrorMixture(builtins.Exception):
    ...

class GpuboxErrorMwaxCorrVerMismatch(builtins.Exception):
    ...

class GpuboxErrorMwaxCorrVerMissing(builtins.Exception):
    ...

class GpuboxErrorMwaxNaxis1Mismatch(builtins.Exception):
    ...

class GpuboxErrorMwaxNaxis2Mismatch(builtins.Exception):
    ...

class GpuboxErrorNoDataForTimeStepCoarseChannel(builtins.Exception):
    ...

class GpuboxErrorNoDataHDUsInGpuboxFile(builtins.Exception):
    ...

class GpuboxErrorNoGpuboxes(builtins.Exception):
    ...

class GpuboxErrorObsidMismatch(builtins.Exception):
    ...

class GpuboxErrorUnequalHduSizes(builtins.Exception):
    ...

class GpuboxErrorUnevenCountInBatches(builtins.Exception):
    ...

class GpuboxErrorUnrecognised(builtins.Exception):
    ...

@typing.final
class LegacyConversionBaseline:
    r"""
    Structure for storing where in the input visibilities to get the specified baseline when converting
    """
    @property
    def baseline(self) -> builtins.int: ...
    @baseline.setter
    def baseline(self, value: builtins.int) -> None: ...
    @property
    def ant1(self) -> builtins.int: ...
    @ant1.setter
    def ant1(self, value: builtins.int) -> None: ...
    @property
    def ant2(self) -> builtins.int: ...
    @ant2.setter
    def ant2(self, value: builtins.int) -> None: ...
    @property
    def xx_index(self) -> builtins.int: ...
    @xx_index.setter
    def xx_index(self, value: builtins.int) -> None: ...
    @property
    def xx_conjugate(self) -> builtins.bool: ...
    @xx_conjugate.setter
    def xx_conjugate(self, value: builtins.bool) -> None: ...
    @property
    def xy_index(self) -> builtins.int: ...
    @xy_index.setter
    def xy_index(self, value: builtins.int) -> None: ...
    @property
    def xy_conjugate(self) -> builtins.bool: ...
    @xy_conjugate.setter
    def xy_conjugate(self, value: builtins.bool) -> None: ...
    @property
    def yx_index(self) -> builtins.int: ...
    @yx_index.setter
    def yx_index(self, value: builtins.int) -> None: ...
    @property
    def yx_conjugate(self) -> builtins.bool: ...
    @yx_conjugate.setter
    def yx_conjugate(self, value: builtins.bool) -> None: ...
    @property
    def yy_index(self) -> builtins.int: ...
    @yy_index.setter
    def yy_index(self, value: builtins.int) -> None: ...
    @property
    def yy_conjugate(self) -> builtins.bool: ...
    @yy_conjugate.setter
    def yy_conjugate(self, value: builtins.bool) -> None: ...

@typing.final
class MetafitsContext:
    r"""
    Metafits context. This represents the basic metadata for an MWA observation.
    """
    @property
    def mwa_version(self) -> typing.Optional[MWAVersion]:
        r"""
        mwa version
        """
    @mwa_version.setter
    def mwa_version(self, value: typing.Optional[MWAVersion]) -> None:
        r"""
        mwa version
        """
    @property
    def obs_id(self) -> builtins.int:
        r"""
        Observation id
        """
    @obs_id.setter
    def obs_id(self, value: builtins.int) -> None:
        r"""
        Observation id
        """
    @property
    def sched_start_gps_time_ms(self) -> builtins.int:
        r"""
        Scheduled start (gps time) of observation
        """
    @sched_start_gps_time_ms.setter
    def sched_start_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        Scheduled start (gps time) of observation
        """
    @property
    def sched_end_gps_time_ms(self) -> builtins.int:
        r"""
        Scheduled end (gps time) of observation
        """
    @sched_end_gps_time_ms.setter
    def sched_end_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        Scheduled end (gps time) of observation
        """
    @property
    def sched_start_unix_time_ms(self) -> builtins.int:
        r"""
        Scheduled start (UNIX time) of observation
        """
    @sched_start_unix_time_ms.setter
    def sched_start_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        Scheduled start (UNIX time) of observation
        """
    @property
    def sched_end_unix_time_ms(self) -> builtins.int:
        r"""
        Scheduled end (UNIX time) of observation
        """
    @sched_end_unix_time_ms.setter
    def sched_end_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        Scheduled end (UNIX time) of observation
        """
    @property
    def sched_start_utc(self) -> datetime.datetime:
        r"""
        Scheduled start (UTC) of observation
        """
    @sched_start_utc.setter
    def sched_start_utc(self, value: datetime.datetime) -> None:
        r"""
        Scheduled start (UTC) of observation
        """
    @property
    def sched_end_utc(self) -> datetime.datetime:
        r"""
        Scheduled end (UTC) of observation
        """
    @sched_end_utc.setter
    def sched_end_utc(self, value: datetime.datetime) -> None:
        r"""
        Scheduled end (UTC) of observation
        """
    @property
    def sched_start_mjd(self) -> builtins.float:
        r"""
        Scheduled start (MJD) of observation
        """
    @sched_start_mjd.setter
    def sched_start_mjd(self, value: builtins.float) -> None:
        r"""
        Scheduled start (MJD) of observation
        """
    @property
    def sched_end_mjd(self) -> builtins.float:
        r"""
        Scheduled end (MJD) of observation
        """
    @sched_end_mjd.setter
    def sched_end_mjd(self, value: builtins.float) -> None:
        r"""
        Scheduled end (MJD) of observation
        """
    @property
    def sched_duration_ms(self) -> builtins.int:
        r"""
        Scheduled duration of observation
        """
    @sched_duration_ms.setter
    def sched_duration_ms(self, value: builtins.int) -> None:
        r"""
        Scheduled duration of observation
        """
    @property
    def dut1(self) -> typing.Optional[builtins.float]:
        r"""
        DUT1 (i.e. UTC-UT1). The UTC of the obsid is used to determine this
        value. Calculated by astropy. Made optional for compatibility.
        """
    @dut1.setter
    def dut1(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        DUT1 (i.e. UTC-UT1). The UTC of the obsid is used to determine this
        value. Calculated by astropy. Made optional for compatibility.
        """
    @property
    def ra_tile_pointing_degrees(self) -> builtins.float:
        r"""
        RA tile pointing
        """
    @ra_tile_pointing_degrees.setter
    def ra_tile_pointing_degrees(self, value: builtins.float) -> None:
        r"""
        RA tile pointing
        """
    @property
    def dec_tile_pointing_degrees(self) -> builtins.float:
        r"""
        DEC tile pointing
        """
    @dec_tile_pointing_degrees.setter
    def dec_tile_pointing_degrees(self, value: builtins.float) -> None:
        r"""
        DEC tile pointing
        """
    @property
    def ra_phase_center_degrees(self) -> typing.Optional[builtins.float]:
        r"""
        RA phase centre
        """
    @ra_phase_center_degrees.setter
    def ra_phase_center_degrees(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        RA phase centre
        """
    @property
    def dec_phase_center_degrees(self) -> typing.Optional[builtins.float]:
        r"""
        DEC phase centre
        """
    @dec_phase_center_degrees.setter
    def dec_phase_center_degrees(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        DEC phase centre
        """
    @property
    def az_deg(self) -> builtins.float:
        r"""
        AZIMUTH of the pointing centre in degrees
        """
    @az_deg.setter
    def az_deg(self, value: builtins.float) -> None:
        r"""
        AZIMUTH of the pointing centre in degrees
        """
    @property
    def alt_deg(self) -> builtins.float:
        r"""
        ALTITUDE (a.k.a. elevation) of the pointing centre in degrees
        """
    @alt_deg.setter
    def alt_deg(self, value: builtins.float) -> None:
        r"""
        ALTITUDE (a.k.a. elevation) of the pointing centre in degrees
        """
    @property
    def za_deg(self) -> builtins.float:
        r"""
        Zenith angle of the pointing centre in degrees
        """
    @za_deg.setter
    def za_deg(self, value: builtins.float) -> None:
        r"""
        Zenith angle of the pointing centre in degrees
        """
    @property
    def az_rad(self) -> builtins.float:
        r"""
        AZIMUTH of the pointing centre in radians
        """
    @az_rad.setter
    def az_rad(self, value: builtins.float) -> None:
        r"""
        AZIMUTH of the pointing centre in radians
        """
    @property
    def alt_rad(self) -> builtins.float:
        r"""
        ALTITUDE (a.k.a. elevation) of the pointing centre in radians
        """
    @alt_rad.setter
    def alt_rad(self, value: builtins.float) -> None:
        r"""
        ALTITUDE (a.k.a. elevation) of the pointing centre in radians
        """
    @property
    def za_rad(self) -> builtins.float:
        r"""
        Zenith angle of the pointing centre in radians
        """
    @za_rad.setter
    def za_rad(self, value: builtins.float) -> None:
        r"""
        Zenith angle of the pointing centre in radians
        """
    @property
    def sun_alt_deg(self) -> typing.Optional[builtins.float]:
        r"""
        Altitude of Sun
        """
    @sun_alt_deg.setter
    def sun_alt_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        Altitude of Sun
        """
    @property
    def sun_distance_deg(self) -> typing.Optional[builtins.float]:
        r"""
        Distance from pointing center to Sun
        """
    @sun_distance_deg.setter
    def sun_distance_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        Distance from pointing center to Sun
        """
    @property
    def moon_distance_deg(self) -> typing.Optional[builtins.float]:
        r"""
        Distance from pointing center to the Moon
        """
    @moon_distance_deg.setter
    def moon_distance_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        Distance from pointing center to the Moon
        """
    @property
    def jupiter_distance_deg(self) -> typing.Optional[builtins.float]:
        r"""
        Distance from pointing center to Jupiter
        """
    @jupiter_distance_deg.setter
    def jupiter_distance_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        Distance from pointing center to Jupiter
        """
    @property
    def lst_deg(self) -> builtins.float:
        r"""
        Local Sidereal Time in degrees (at the midpoint of the observation)
        """
    @lst_deg.setter
    def lst_deg(self, value: builtins.float) -> None:
        r"""
        Local Sidereal Time in degrees (at the midpoint of the observation)
        """
    @property
    def lst_rad(self) -> builtins.float:
        r"""
        Local Sidereal Time in radians (at the midpoint of the observation)
        """
    @lst_rad.setter
    def lst_rad(self, value: builtins.float) -> None:
        r"""
        Local Sidereal Time in radians (at the midpoint of the observation)
        """
    @property
    def hour_angle_string(self) -> builtins.str:
        r"""
        Hour Angle of pointing center (as a string)
        """
    @hour_angle_string.setter
    def hour_angle_string(self, value: builtins.str) -> None:
        r"""
        Hour Angle of pointing center (as a string)
        """
    @property
    def grid_name(self) -> builtins.str:
        r"""
        GRIDNAME
        """
    @grid_name.setter
    def grid_name(self, value: builtins.str) -> None:
        r"""
        GRIDNAME
        """
    @property
    def grid_number(self) -> builtins.int:
        r"""
        GRIDNUM
        """
    @grid_number.setter
    def grid_number(self, value: builtins.int) -> None:
        r"""
        GRIDNUM
        """
    @property
    def creator(self) -> builtins.str:
        r"""
        CREATOR
        """
    @creator.setter
    def creator(self, value: builtins.str) -> None:
        r"""
        CREATOR
        """
    @property
    def project_id(self) -> builtins.str:
        r"""
        PROJECT
        """
    @project_id.setter
    def project_id(self, value: builtins.str) -> None:
        r"""
        PROJECT
        """
    @property
    def obs_name(self) -> builtins.str:
        r"""
        Observation name
        """
    @obs_name.setter
    def obs_name(self, value: builtins.str) -> None:
        r"""
        Observation name
        """
    @property
    def mode(self) -> MWAMode:
        r"""
        MWA observation mode
        """
    @mode.setter
    def mode(self, value: MWAMode) -> None:
        r"""
        MWA observation mode
        """
    @property
    def geometric_delays_applied(self) -> GeometricDelaysApplied:
        r"""
        Which Geometric delays have been applied to the data?
        """
    @geometric_delays_applied.setter
    def geometric_delays_applied(self, value: GeometricDelaysApplied) -> None:
        r"""
        Which Geometric delays have been applied to the data?
        """
    @property
    def cable_delays_applied(self) -> CableDelaysApplied:
        r"""
        Have cable delays been applied to the data?
        """
    @cable_delays_applied.setter
    def cable_delays_applied(self, value: CableDelaysApplied) -> None:
        r"""
        Have cable delays been applied to the data?
        """
    @property
    def calibration_delays_and_gains_applied(self) -> builtins.bool:
        r"""
        Have calibration delays and gains been applied to the data?
        """
    @calibration_delays_and_gains_applied.setter
    def calibration_delays_and_gains_applied(self, value: builtins.bool) -> None:
        r"""
        Have calibration delays and gains been applied to the data?
        """
    @property
    def signal_chain_corrections_applied(self) -> builtins.bool:
        r"""
        Have signal chain corrections been applied to the data?
        """
    @signal_chain_corrections_applied.setter
    def signal_chain_corrections_applied(self, value: builtins.bool) -> None:
        r"""
        Have signal chain corrections been applied to the data?
        """
    @property
    def corr_fine_chan_width_hz(self) -> builtins.int:
        r"""
        Correlator fine_chan_resolution
        """
    @corr_fine_chan_width_hz.setter
    def corr_fine_chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Correlator fine_chan_resolution
        """
    @property
    def corr_int_time_ms(self) -> builtins.int:
        r"""
        Correlator mode dump time
        """
    @corr_int_time_ms.setter
    def corr_int_time_ms(self, value: builtins.int) -> None:
        r"""
        Correlator mode dump time
        """
    @property
    def corr_raw_scale_factor(self) -> builtins.float:
        r"""
        Correlator visibility scaling factor used to get the visibilities in Jansky-like units
        """
    @corr_raw_scale_factor.setter
    def corr_raw_scale_factor(self, value: builtins.float) -> None:
        r"""
        Correlator visibility scaling factor used to get the visibilities in Jansky-like units
        """
    @property
    def num_corr_fine_chans_per_coarse(self) -> builtins.int:
        r"""
        Number of fine channels in each coarse channel for a correlator observation
        """
    @num_corr_fine_chans_per_coarse.setter
    def num_corr_fine_chans_per_coarse(self, value: builtins.int) -> None:
        r"""
        Number of fine channels in each coarse channel for a correlator observation
        """
    @property
    def volt_fine_chan_width_hz(self) -> builtins.int:
        r"""
        Voltage fine_chan_resolution
        """
    @volt_fine_chan_width_hz.setter
    def volt_fine_chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Voltage fine_chan_resolution
        """
    @property
    def num_volt_fine_chans_per_coarse(self) -> builtins.int:
        r"""
        Number of fine channels in each coarse channel for a voltage observation
        """
    @num_volt_fine_chans_per_coarse.setter
    def num_volt_fine_chans_per_coarse(self, value: builtins.int) -> None:
        r"""
        Number of fine channels in each coarse channel for a voltage observation
        """
    @property
    def receivers(self) -> builtins.list[builtins.int]:
        r"""
        Array of receiver numbers
        """
    @receivers.setter
    def receivers(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Array of receiver numbers
        """
    @property
    def num_receivers(self) -> builtins.int:
        r"""
        Number of recievers
        """
    @num_receivers.setter
    def num_receivers(self, value: builtins.int) -> None:
        r"""
        Number of recievers
        """
    @property
    def delays(self) -> builtins.list[builtins.int]:
        r"""
        Array of beamformer delays
        """
    @delays.setter
    def delays(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Array of beamformer delays
        """
    @property
    def num_delays(self) -> builtins.int:
        r"""
        Number of beamformer delays
        """
    @num_delays.setter
    def num_delays(self, value: builtins.int) -> None:
        r"""
        Number of beamformer delays
        """
    @property
    def calibrator(self) -> builtins.bool:
        r"""
        Intended for calibration
        """
    @calibrator.setter
    def calibrator(self, value: builtins.bool) -> None:
        r"""
        Intended for calibration
        """
    @property
    def calibrator_source(self) -> builtins.str:
        r"""
        Calibrator source
        """
    @calibrator_source.setter
    def calibrator_source(self, value: builtins.str) -> None:
        r"""
        Calibrator source
        """
    @property
    def global_analogue_attenuation_db(self) -> builtins.float:
        r"""
        ATTEN_DB  // global analogue attenuation, in dB
        """
    @global_analogue_attenuation_db.setter
    def global_analogue_attenuation_db(self, value: builtins.float) -> None:
        r"""
        ATTEN_DB  // global analogue attenuation, in dB
        """
    @property
    def quack_time_duration_ms(self) -> builtins.int:
        r"""
        Seconds of bad data after observation starts
        """
    @quack_time_duration_ms.setter
    def quack_time_duration_ms(self, value: builtins.int) -> None:
        r"""
        Seconds of bad data after observation starts
        """
    @property
    def good_time_unix_ms(self) -> builtins.int:
        r"""
        OBSID+QUACKTIM as Unix timestamp (first good timestep)
        """
    @good_time_unix_ms.setter
    def good_time_unix_ms(self, value: builtins.int) -> None:
        r"""
        OBSID+QUACKTIM as Unix timestamp (first good timestep)
        """
    @property
    def good_time_gps_ms(self) -> builtins.int:
        r"""
        Good time expressed in GPS seconds
        """
    @good_time_gps_ms.setter
    def good_time_gps_ms(self, value: builtins.int) -> None:
        r"""
        Good time expressed in GPS seconds
        """
    @property
    def num_ants(self) -> builtins.int:
        r"""
        Total number of antennas (tiles) in the array
        """
    @num_ants.setter
    def num_ants(self, value: builtins.int) -> None:
        r"""
        Total number of antennas (tiles) in the array
        """
    @property
    def antennas(self) -> builtins.list[Antenna]:
        r"""
        We also have just the antennas
        """
    @antennas.setter
    def antennas(self, value: builtins.list[Antenna]) -> None:
        r"""
        We also have just the antennas
        """
    @property
    def num_rf_inputs(self) -> builtins.int:
        r"""
        Total number of rf_inputs (tiles * 2 pols X&Y)
        """
    @num_rf_inputs.setter
    def num_rf_inputs(self, value: builtins.int) -> None:
        r"""
        Total number of rf_inputs (tiles * 2 pols X&Y)
        """
    @property
    def rf_inputs(self) -> builtins.list[Rfinput]:
        r"""
        The Metafits defines an rf chain for antennas(tiles) * pol(X,Y)
        """
    @rf_inputs.setter
    def rf_inputs(self, value: builtins.list[Rfinput]) -> None:
        r"""
        The Metafits defines an rf chain for antennas(tiles) * pol(X,Y)
        """
    @property
    def num_ant_pols(self) -> builtins.int:
        r"""
        Number of antenna pols. e.g. X and Y
        """
    @num_ant_pols.setter
    def num_ant_pols(self, value: builtins.int) -> None:
        r"""
        Number of antenna pols. e.g. X and Y
        """
    @property
    def num_metafits_timesteps(self) -> builtins.int:
        r"""
        Number of timesteps defined in the metafits file
        """
    @num_metafits_timesteps.setter
    def num_metafits_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of timesteps defined in the metafits file
        """
    @property
    def metafits_timesteps(self) -> builtins.list[TimeStep]:
        r"""
        Vector of timesteps based on the metafits file
        """
    @metafits_timesteps.setter
    def metafits_timesteps(self, value: builtins.list[TimeStep]) -> None:
        r"""
        Vector of timesteps based on the metafits file
        """
    @property
    def num_metafits_coarse_chans(self) -> builtins.int:
        r"""
        Number of coarse channels based on the metafits file
        """
    @num_metafits_coarse_chans.setter
    def num_metafits_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of coarse channels based on the metafits file
        """
    @property
    def metafits_coarse_chans(self) -> builtins.list[CoarseChannel]:
        r"""
        Vector of coarse channels based on the metafits file
        """
    @metafits_coarse_chans.setter
    def metafits_coarse_chans(self, value: builtins.list[CoarseChannel]) -> None:
        r"""
        Vector of coarse channels based on the metafits file
        """
    @property
    def num_metafits_fine_chan_freqs(self) -> builtins.int:
        r"""
        Number of fine channels for the whole observation
        """
    @num_metafits_fine_chan_freqs.setter
    def num_metafits_fine_chan_freqs(self, value: builtins.int) -> None:
        r"""
        Number of fine channels for the whole observation
        """
    @property
    def metafits_fine_chan_freqs_hz(self) -> builtins.list[builtins.float]:
        r"""
        Vector of fine channel frequencies for the whole observation
        """
    @metafits_fine_chan_freqs_hz.setter
    def metafits_fine_chan_freqs_hz(self, value: builtins.list[builtins.float]) -> None:
        r"""
        Vector of fine channel frequencies for the whole observation
        """
    @property
    def obs_bandwidth_hz(self) -> builtins.int:
        r"""
        Total bandwidth of observation assuming we have all coarse channels
        """
    @obs_bandwidth_hz.setter
    def obs_bandwidth_hz(self, value: builtins.int) -> None:
        r"""
        Total bandwidth of observation assuming we have all coarse channels
        """
    @property
    def coarse_chan_width_hz(self) -> builtins.int:
        r"""
        Bandwidth of each coarse channel
        """
    @coarse_chan_width_hz.setter
    def coarse_chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Bandwidth of each coarse channel
        """
    @property
    def centre_freq_hz(self) -> builtins.int:
        r"""
        The value of the FREQCENT key in the metafits file, but in Hz.
        """
    @centre_freq_hz.setter
    def centre_freq_hz(self, value: builtins.int) -> None:
        r"""
        The value of the FREQCENT key in the metafits file, but in Hz.
        """
    @property
    def num_baselines(self) -> builtins.int:
        r"""
        Number of baselines stored. This is autos plus cross correlations
        """
    @num_baselines.setter
    def num_baselines(self, value: builtins.int) -> None:
        r"""
        Number of baselines stored. This is autos plus cross correlations
        """
    @property
    def baselines(self) -> builtins.list[Baseline]:
        r"""
        Baslines
        """
    @baselines.setter
    def baselines(self, value: builtins.list[Baseline]) -> None:
        r"""
        Baslines
        """
    @property
    def num_visibility_pols(self) -> builtins.int:
        r"""
        Number of polarisation combinations in the visibilities e.g. XX,XY,YX,YY == 4
        """
    @num_visibility_pols.setter
    def num_visibility_pols(self, value: builtins.int) -> None:
        r"""
        Number of polarisation combinations in the visibilities e.g. XX,XY,YX,YY == 4
        """
    @property
    def metafits_filename(self) -> builtins.str:
        r"""
        Filename of the metafits we were given
        """
    @metafits_filename.setter
    def metafits_filename(self, value: builtins.str) -> None:
        r"""
        Filename of the metafits we were given
        """
    @property
    def oversampled(self) -> builtins.bool:
        r"""
        Was this observation using oversampled coarse channels?
        """
    @oversampled.setter
    def oversampled(self, value: builtins.bool) -> None:
        r"""
        Was this observation using oversampled coarse channels?
        """
    @property
    def deripple_applied(self) -> builtins.bool:
        r"""
        Was deripple applied to this observation?
        """
    @deripple_applied.setter
    def deripple_applied(self, value: builtins.bool) -> None:
        r"""
        Was deripple applied to this observation?
        """
    @property
    def deripple_param(self) -> builtins.str:
        r"""
        What was the configured deripple_param?
        If deripple_applied is False then this deripple param was not applied
        """
    @deripple_param.setter
    def deripple_param(self, value: builtins.str) -> None:
        r"""
        What was the configured deripple_param?
        If deripple_applied is False then this deripple param was not applied
        """
    @property
    def best_cal_fit_id(self) -> typing.Optional[builtins.int]:
        r"""
        Best calibration fit ID
        """
    @best_cal_fit_id.setter
    def best_cal_fit_id(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        Best calibration fit ID
        """
    @property
    def best_cal_obs_id(self) -> typing.Optional[builtins.int]:
        r"""
        Best calibration observation ID
        """
    @best_cal_obs_id.setter
    def best_cal_obs_id(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        Best calibration observation ID
        """
    @property
    def best_cal_code_ver(self) -> typing.Optional[builtins.str]:
        r"""
        Best calibration fit code version
        """
    @best_cal_code_ver.setter
    def best_cal_code_ver(self, value: typing.Optional[builtins.str]) -> None:
        r"""
        Best calibration fit code version
        """
    @property
    def best_cal_fit_timestamp(self) -> typing.Optional[builtins.str]:
        r"""
        Best calibration fit timestamp
        """
    @best_cal_fit_timestamp.setter
    def best_cal_fit_timestamp(self, value: typing.Optional[builtins.str]) -> None:
        r"""
        Best calibration fit timestamp
        """
    @property
    def best_cal_creator(self) -> typing.Optional[builtins.str]:
        r"""
        Best calibration fit creator
        """
    @best_cal_creator.setter
    def best_cal_creator(self, value: typing.Optional[builtins.str]) -> None:
        r"""
        Best calibration fit creator
        """
    @property
    def best_cal_fit_iters(self) -> typing.Optional[builtins.int]:
        r"""
        Best calibration fit iterations
        """
    @best_cal_fit_iters.setter
    def best_cal_fit_iters(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        Best calibration fit iterations
        """
    @property
    def best_cal_fit_iter_limit(self) -> typing.Optional[builtins.int]:
        r"""
        Best calibration fit iteration limit
        """
    @best_cal_fit_iter_limit.setter
    def best_cal_fit_iter_limit(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        Best calibration fit iteration limit
        """
    @property
    def signal_chain_corrections(self) -> typing.Optional[builtins.list[SignalChainCorrection]]:
        r"""
        Signal Chain corrections
        """
    @signal_chain_corrections.setter
    def signal_chain_corrections(self, value: typing.Optional[builtins.list[SignalChainCorrection]]) -> None:
        r"""
        Signal Chain corrections
        """
    @property
    def num_signal_chain_corrections(self) -> builtins.int:
        r"""
        Number of Signal Chain corrections
        """
    @num_signal_chain_corrections.setter
    def num_signal_chain_corrections(self, value: builtins.int) -> None:
        r"""
        Number of Signal Chain corrections
        """
    @property
    def calibration_fits(self) -> typing.Optional[builtins.list[CalibrationFit]]:
        r"""
        Calibration fits
        """
    @calibration_fits.setter
    def calibration_fits(self, value: typing.Optional[builtins.list[CalibrationFit]]) -> None:
        r"""
        Calibration fits
        """
    @property
    def num_calibration_fits(self) -> builtins.int:
        r"""
        Number of calibration fits
        """
    @num_calibration_fits.setter
    def num_calibration_fits(self, value: builtins.int) -> None:
        r"""
        Number of calibration fits
        """
    @property
    def metafits_voltage_beams(self) -> typing.Optional[builtins.list[VoltageBeam]]:
        r"""
        Beamformer beams
        """
    @metafits_voltage_beams.setter
    def metafits_voltage_beams(self, value: typing.Optional[builtins.list[VoltageBeam]]) -> None:
        r"""
        Beamformer beams
        """
    @property
    def num_metafits_voltage_beams(self) -> builtins.int:
        r"""
        Number of beamformer beams defined in this observation
        """
    @num_metafits_voltage_beams.setter
    def num_metafits_voltage_beams(self, value: builtins.int) -> None:
        r"""
        Number of beamformer beams defined in this observation
        """
    @property
    def num_metafits_coherent_beams(self) -> builtins.int:
        r"""
        Number of coherent beamformer beams defined in this observation
        """
    @num_metafits_coherent_beams.setter
    def num_metafits_coherent_beams(self, value: builtins.int) -> None:
        r"""
        Number of coherent beamformer beams defined in this observation
        """
    @property
    def num_metafits_incoherent_beams(self) -> builtins.int:
        r"""
        Number of incoherent beamformer beams defined in this observation
        """
    @num_metafits_incoherent_beams.setter
    def num_metafits_incoherent_beams(self, value: builtins.int) -> None:
        r"""
        Number of incoherent beamformer beams defined in this observation
        """
    def __new__(cls, metafits_filename: builtins.str, mwa_version: typing.Optional[MWAVersion] = None) -> MetafitsContext:
        r"""
        From a path to a metafits file, create a `MetafitsContext`.
        
        Args:
            metafits_filename (str): filename of metafits file.
            mwa_version (Optional[MWAVersion]): the MWA version the metafits should be interpreted as. Pass None to have mwalib guess based on the MODE in the metafits.
        
        Returns:
            metafits_contex (MetafitsContex): a populated MetafitsContext object if Ok.
        """
    def __repr__(self) -> builtins.str: ...
    def __enter__(self, slf: MetafitsContext) -> MetafitsContext: ...
    def __exit__(self, _exc_type: typing.Any, _exc_value: typing.Any, _traceback: typing.Any) -> None: ...

class MwalibError(builtins.Exception):
    ...

@typing.final
class Rfinput:
    r"""
    Structure for storing MWA rf_chains (tile with polarisation) information from the metafits file
    """
    @property
    def input(self) -> builtins.int:
        r"""
        This is the metafits order (0-n inputs)
        """
    @input.setter
    def input(self, value: builtins.int) -> None:
        r"""
        This is the metafits order (0-n inputs)
        """
    @property
    def ant(self) -> builtins.int:
        r"""
        This is the antenna number.
        Nominally this is the field we sort by to get the desired output order of antenna.
        X and Y have the same antenna number. This is the sorted ordinal order of the antenna.None
        e.g. 0...N-1
        """
    @ant.setter
    def ant(self, value: builtins.int) -> None:
        r"""
        This is the antenna number.
        Nominally this is the field we sort by to get the desired output order of antenna.
        X and Y have the same antenna number. This is the sorted ordinal order of the antenna.None
        e.g. 0...N-1
        """
    @property
    def tile_id(self) -> builtins.int:
        r"""
        Numeric part of tile_name for the antenna. Each pol has the same value
        e.g. tile_name "tile011" hsa tile_id of 11
        """
    @tile_id.setter
    def tile_id(self, value: builtins.int) -> None:
        r"""
        Numeric part of tile_name for the antenna. Each pol has the same value
        e.g. tile_name "tile011" hsa tile_id of 11
        """
    @property
    def tile_name(self) -> builtins.str:
        r"""
        Human readable name of the antenna
        X and Y have the same name
        """
    @tile_name.setter
    def tile_name(self, value: builtins.str) -> None:
        r"""
        Human readable name of the antenna
        X and Y have the same name
        """
    @property
    def pol(self) -> Pol:
        r"""
        Polarisation - X or Y
        """
    @pol.setter
    def pol(self, value: Pol) -> None:
        r"""
        Polarisation - X or Y
        """
    @property
    def electrical_length_m(self) -> builtins.float:
        r"""
        Electrical length in metres for this antenna and polarisation to the receiver
        """
    @electrical_length_m.setter
    def electrical_length_m(self, value: builtins.float) -> None:
        r"""
        Electrical length in metres for this antenna and polarisation to the receiver
        """
    @property
    def north_m(self) -> builtins.float:
        r"""
        Antenna position North from the array centre (metres)
        """
    @north_m.setter
    def north_m(self, value: builtins.float) -> None:
        r"""
        Antenna position North from the array centre (metres)
        """
    @property
    def east_m(self) -> builtins.float:
        r"""
        Antenna position East from the array centre (metres)
        """
    @east_m.setter
    def east_m(self, value: builtins.float) -> None:
        r"""
        Antenna position East from the array centre (metres)
        """
    @property
    def height_m(self) -> builtins.float:
        r"""
        Antenna height from the array centre (metres)
        """
    @height_m.setter
    def height_m(self, value: builtins.float) -> None:
        r"""
        Antenna height from the array centre (metres)
        """
    @property
    def vcs_order(self) -> builtins.int:
        r"""
        AKA PFB to correlator input order (only relevant for pre V2 correlator)
        """
    @vcs_order.setter
    def vcs_order(self, value: builtins.int) -> None:
        r"""
        AKA PFB to correlator input order (only relevant for pre V2 correlator)
        """
    @property
    def subfile_order(self) -> builtins.int:
        r"""
        Subfile order is the order in which this rf_input is desired in our final output of data
        """
    @subfile_order.setter
    def subfile_order(self, value: builtins.int) -> None:
        r"""
        Subfile order is the order in which this rf_input is desired in our final output of data
        """
    @property
    def flagged(self) -> builtins.bool:
        r"""
        Is this rf_input flagged out (due to tile error, etc from metafits)
        """
    @flagged.setter
    def flagged(self, value: builtins.bool) -> None:
        r"""
        Is this rf_input flagged out (due to tile error, etc from metafits)
        """
    @property
    def digital_gains(self) -> builtins.list[builtins.float]:
        r"""
        Digital gains
        metafits digital gains will be divided by 64
        Digital gains are in mwalib metafits coarse channel order (ascending sky frequency order)
        """
    @digital_gains.setter
    def digital_gains(self, value: builtins.list[builtins.float]) -> None:
        r"""
        Digital gains
        metafits digital gains will be divided by 64
        Digital gains are in mwalib metafits coarse channel order (ascending sky frequency order)
        """
    @property
    def dipole_gains(self) -> builtins.list[builtins.float]:
        r"""
        Dipole gains.
        
        These are either 1 or 0 (on or off), depending on the dipole delay; a
        dipole delay of 32 corresponds to "dead dipole", so the dipole gain of 0
        reflects that. All other dipoles are assumed to be "live". The values
        are made floats for easy use in beam code.
        """
    @dipole_gains.setter
    def dipole_gains(self, value: builtins.list[builtins.float]) -> None:
        r"""
        Dipole gains.
        
        These are either 1 or 0 (on or off), depending on the dipole delay; a
        dipole delay of 32 corresponds to "dead dipole", so the dipole gain of 0
        reflects that. All other dipoles are assumed to be "live". The values
        are made floats for easy use in beam code.
        """
    @property
    def dipole_delays(self) -> builtins.list[builtins.int]:
        r"""
        Dipole delays
        """
    @dipole_delays.setter
    def dipole_delays(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Dipole delays
        """
    @property
    def rec_number(self) -> builtins.int:
        r"""
        Receiver number
        """
    @rec_number.setter
    def rec_number(self, value: builtins.int) -> None:
        r"""
        Receiver number
        """
    @property
    def rec_slot_number(self) -> builtins.int:
        r"""
        Receiver slot number
        """
    @rec_slot_number.setter
    def rec_slot_number(self, value: builtins.int) -> None:
        r"""
        Receiver slot number
        """
    @property
    def rec_type(self) -> ReceiverType:
        r"""
        Receiver type
        """
    @rec_type.setter
    def rec_type(self, value: ReceiverType) -> None:
        r"""
        Receiver type
        """
    @property
    def flavour(self) -> builtins.str:
        r"""
        Cable Flavour
        """
    @flavour.setter
    def flavour(self, value: builtins.str) -> None:
        r"""
        Cable Flavour
        """
    @property
    def has_whitening_filter(self) -> builtins.bool:
        r"""
        Has whitening filter (depends on flavour)
        """
    @has_whitening_filter.setter
    def has_whitening_filter(self, value: builtins.bool) -> None:
        r"""
        Has whitening filter (depends on flavour)
        """
    @property
    def calib_delay(self) -> typing.Optional[builtins.float]:
        r"""
        Calibration delay in meters (if provided)
        If calibration solution information is not present in the metafits it will be `None`.
        When calibration solution information is present, some values of `calib_delay` may be NaN.
        Make sure you understand [how NaNs work in Rust](https://doc.rust-lang.org/std/primitive.f32.html) if you will be using this field!
        """
    @calib_delay.setter
    def calib_delay(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        Calibration delay in meters (if provided)
        If calibration solution information is not present in the metafits it will be `None`.
        When calibration solution information is present, some values of `calib_delay` may be NaN.
        Make sure you understand [how NaNs work in Rust](https://doc.rust-lang.org/std/primitive.f32.html) if you will be using this field!
        """
    @property
    def calib_gains(self) -> typing.Optional[builtins.list[builtins.float]]:
        r"""
        Calibration gains (vector- 1 per coarse channel) if provided.  Channels are in `MetafitsContext.course_chans` order.
        If calibration solution information is not present in the metafits it will be `None`.
        When calibration solution information is present, some values of `calib_delay` may be NaN.
        Make sure you understand [how NaNs work in Rust](https://doc.rust-lang.org/std/primitive.f32.html) if you will be using this field!
        """
    @calib_gains.setter
    def calib_gains(self, value: typing.Optional[builtins.list[builtins.float]]) -> None:
        r"""
        Calibration gains (vector- 1 per coarse channel) if provided.  Channels are in `MetafitsContext.course_chans` order.
        If calibration solution information is not present in the metafits it will be `None`.
        When calibration solution information is present, some values of `calib_delay` may be NaN.
        Make sure you understand [how NaNs work in Rust](https://doc.rust-lang.org/std/primitive.f32.html) if you will be using this field!
        """
    @property
    def signal_chain_corrections_index(self) -> typing.Optional[builtins.int]:
        r"""
        Signal chain correction index
        This is the index into the MetafitsContext.signal_chain_corrections vector, or None if not applicable/not found for the
        receiver type and whitening filter combination
        """
    @signal_chain_corrections_index.setter
    def signal_chain_corrections_index(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        Signal chain correction index
        This is the index into the MetafitsContext.signal_chain_corrections vector, or None if not applicable/not found for the
        receiver type and whitening filter combination
        """

@typing.final
class SignalChainCorrection:
    r"""
    Signal chain correction table
    """
    @property
    def receiver_type(self) -> ReceiverType:
        r"""
        Receiver Type
        """
    @receiver_type.setter
    def receiver_type(self, value: ReceiverType) -> None:
        r"""
        Receiver Type
        """
    @property
    def whitening_filter(self) -> builtins.bool:
        r"""
        Whitening Filter
        """
    @whitening_filter.setter
    def whitening_filter(self, value: builtins.bool) -> None:
        r"""
        Whitening Filter
        """
    @property
    def corrections(self) -> builtins.list[builtins.float]:
        r"""
        Corrections
        """
    @corrections.setter
    def corrections(self, value: builtins.list[builtins.float]) -> None:
        r"""
        Corrections
        """
    @property
    def num_corrections(self) -> builtins.int:
        r"""
        Number of corrections
        """
    @num_corrections.setter
    def num_corrections(self, value: builtins.int) -> None:
        r"""
        Number of corrections
        """

@typing.final
class TimeStep:
    r"""
    This is a struct for our timesteps
    NOTE: correlator timesteps use unix time, voltage timesteps use gpstime, but we convert the two depending on what we are given
    """
    @property
    def unix_time_ms(self) -> builtins.int:
        r"""
        UNIX time (in milliseconds to avoid floating point inaccuracy)
        """
    @unix_time_ms.setter
    def unix_time_ms(self, value: builtins.int) -> None:
        r"""
        UNIX time (in milliseconds to avoid floating point inaccuracy)
        """
    @property
    def gps_time_ms(self) -> builtins.int:
        r"""
        gps time (in milliseconds)
        """
    @gps_time_ms.setter
    def gps_time_ms(self, value: builtins.int) -> None:
        r"""
        gps time (in milliseconds)
        """

@typing.final
class VoltageBeam:
    @property
    def number(self) -> builtins.int:
        r"""
        Arbitrary integer identifying this beam
        """
    @number.setter
    def number(self, value: builtins.int) -> None:
        r"""
        Arbitrary integer identifying this beam
        """
    @property
    def coherent(self) -> builtins.bool:
        r"""
        True if the beam is coherent (has a defined position on the sky), False if incoherent (indicating that all tiles should be summed without phase correction)
        """
    @coherent.setter
    def coherent(self, value: builtins.bool) -> None:
        r"""
        True if the beam is coherent (has a defined position on the sky), False if incoherent (indicating that all tiles should be summed without phase correction)
        """
    @property
    def az_deg(self) -> typing.Optional[builtins.float]:
        r"""
        azimuth, elevation - for coherent beams, these describe a fixed position relative to the telescope centre (eg, a geosynchronous satellite or ground-based RFI source)
        """
    @az_deg.setter
    def az_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        azimuth, elevation - for coherent beams, these describe a fixed position relative to the telescope centre (eg, a geosynchronous satellite or ground-based RFI source)
        """
    @property
    def alt_deg(self) -> typing.Optional[builtins.float]: ...
    @alt_deg.setter
    def alt_deg(self, value: typing.Optional[builtins.float]) -> None: ...
    @property
    def ra_deg(self) -> typing.Optional[builtins.float]:
        r"""
        ra, dec - for coherent beams, a fixed source on the sky to track as the Earth rotates.
        """
    @ra_deg.setter
    def ra_deg(self, value: typing.Optional[builtins.float]) -> None:
        r"""
        ra, dec - for coherent beams, a fixed source on the sky to track as the Earth rotates.
        """
    @property
    def dec_deg(self) -> typing.Optional[builtins.float]: ...
    @dec_deg.setter
    def dec_deg(self, value: typing.Optional[builtins.float]) -> None: ...
    @property
    def tle(self) -> typing.Optional[builtins.str]:
        r"""
        tle - for coherent beams, a ‘Two Line Elements’ ephemeris description string for an Earth orbiting satellite.
        """
    @tle.setter
    def tle(self, value: typing.Optional[builtins.str]) -> None:
        r"""
        tle - for coherent beams, a ‘Two Line Elements’ ephemeris description string for an Earth orbiting satellite.
        """
    @property
    def num_time_samples_to_average(self) -> builtins.int:
        r"""
        nsample_avg - number of time samples to average in the output date.
        """
    @num_time_samples_to_average.setter
    def num_time_samples_to_average(self, value: builtins.int) -> None:
        r"""
        nsample_avg - number of time samples to average in the output date.
        """
    @property
    def frequency_resolution_hz(self) -> builtins.int:
        r"""
        fres_hz - Output frequency resolution, in Hz.
        """
    @frequency_resolution_hz.setter
    def frequency_resolution_hz(self, value: builtins.int) -> None:
        r"""
        fres_hz - Output frequency resolution, in Hz.
        """
    @property
    def coarse_channels(self) -> builtins.list[CoarseChannel]:
        r"""
        channel_set - list of up to 24 coarse channels to include in the output data. If not present, include all 24 coarse channels.
        """
    @coarse_channels.setter
    def coarse_channels(self, value: builtins.list[CoarseChannel]) -> None:
        r"""
        channel_set - list of up to 24 coarse channels to include in the output data. If not present, include all 24 coarse channels.
        """
    @property
    def num_coarse_chans(self) -> builtins.int:
        r"""
        Number of coarse channels included in this beam
        """
    @num_coarse_chans.setter
    def num_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of coarse channels included in this beam
        """
    @property
    def antennas(self) -> builtins.list[Antenna]:
        r"""
        tileset - Array of antennas which are the tiles used for this beam. Must be the same as, or a subset of, the main observation tileset.
        """
    @antennas.setter
    def antennas(self, value: builtins.list[Antenna]) -> None:
        r"""
        tileset - Array of antennas which are the tiles used for this beam. Must be the same as, or a subset of, the main observation tileset.
        """
    @property
    def num_ants(self) -> builtins.int:
        r"""
        num_antennas - number of antennas / tiles used for this beam
        """
    @num_ants.setter
    def num_ants(self, value: builtins.int) -> None:
        r"""
        num_antennas - number of antennas / tiles used for this beam
        """
    @property
    def polarisation(self) -> typing.Optional[builtins.str]:
        r"""
        polarisation - string describing the polarisation format in the output data.
        """
    @polarisation.setter
    def polarisation(self, value: typing.Optional[builtins.str]) -> None:
        r"""
        polarisation - string describing the polarisation format in the output data.
        """
    @property
    def data_file_type(self) -> DataFileType:
        r"""
        data_file_type - integer index into the ‘data_file_types’ database table describing the output format for this beam.
        """
    @data_file_type.setter
    def data_file_type(self, value: DataFileType) -> None:
        r"""
        data_file_type - integer index into the ‘data_file_types’ database table describing the output format for this beam.
        """
    @property
    def creator(self) -> builtins.str:
        r"""
        creator - arbitrary string describing the person or script that scheduled this voltage beam.
        """
    @creator.setter
    def creator(self, value: builtins.str) -> None:
        r"""
        creator - arbitrary string describing the person or script that scheduled this voltage beam.
        """
    @property
    def modtime(self) -> datetime.datetime:
        r"""
        modtime - ISO format timestamp for this voltage beam record.
        """
    @modtime.setter
    def modtime(self, value: datetime.datetime) -> None:
        r"""
        modtime - ISO format timestamp for this voltage beam record.
        """
    @property
    def beam_index(self) -> typing.Optional[builtins.int]:
        r"""
        beam_index - Starts at zero for the first coherent beam in this observation, and increments by one for each coherent beam. Used to index into the BeamAltAz
        """
    @beam_index.setter
    def beam_index(self, value: typing.Optional[builtins.int]) -> None:
        r"""
        beam_index - Starts at zero for the first coherent beam in this observation, and increments by one for each coherent beam. Used to index into the BeamAltAz
        """

@typing.final
class VoltageContext:
    r"""
    This represents the basic metadata and methods for an MWA voltage capture system (VCS) observation.
    """
    @property
    def metafits_context(self) -> MetafitsContext:
        r"""
        Observation Metadata obtained from the metafits file
        """
    @metafits_context.setter
    def metafits_context(self, value: MetafitsContext) -> None:
        r"""
        Observation Metadata obtained from the metafits file
        """
    @property
    def mwa_version(self) -> MWAVersion:
        r"""
        MWA version, derived from the files passed in
        """
    @mwa_version.setter
    def mwa_version(self, value: MWAVersion) -> None:
        r"""
        MWA version, derived from the files passed in
        """
    @property
    def timesteps(self) -> builtins.list[TimeStep]:
        r"""
        This is an array of all known timesteps (union of metafits and provided timesteps from data files). The only exception is when the metafits timesteps are
        offset from the provided timesteps, in which case see description in `timestep::populate_metafits_provided_superset_of_timesteps`.
        """
    @timesteps.setter
    def timesteps(self, value: builtins.list[TimeStep]) -> None:
        r"""
        This is an array of all known timesteps (union of metafits and provided timesteps from data files). The only exception is when the metafits timesteps are
        offset from the provided timesteps, in which case see description in `timestep::populate_metafits_provided_superset_of_timesteps`.
        """
    @property
    def num_timesteps(self) -> builtins.int:
        r"""
        Number of timesteps in the timesteps vector
        """
    @num_timesteps.setter
    def num_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of timesteps in the timesteps vector
        """
    @property
    def timestep_duration_ms(self) -> builtins.int:
        r"""
        length in millseconds of each timestep
        """
    @timestep_duration_ms.setter
    def timestep_duration_ms(self, value: builtins.int) -> None:
        r"""
        length in millseconds of each timestep
        """
    @property
    def coarse_chans(self) -> builtins.list[CoarseChannel]:
        r"""
        Vector of coarse channel structs which is the same as the metafits provided coarse channels
        """
    @coarse_chans.setter
    def coarse_chans(self, value: builtins.list[CoarseChannel]) -> None:
        r"""
        Vector of coarse channel structs which is the same as the metafits provided coarse channels
        """
    @property
    def num_coarse_chans(self) -> builtins.int:
        r"""
        Number of coarse channels in coarse chans struct
        """
    @num_coarse_chans.setter
    def num_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of coarse channels in coarse chans struct
        """
    @property
    def common_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common timestep indices
        """
    @common_timestep_indices.setter
    def common_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common timestep indices
        """
    @property
    def num_common_timesteps(self) -> builtins.int:
        r"""
        Number of common timesteps
        """
    @num_common_timesteps.setter
    def num_common_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of common timesteps
        """
    @property
    def common_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common coarse channel indices
        """
    @common_coarse_chan_indices.setter
    def common_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common coarse channel indices
        """
    @property
    def num_common_coarse_chans(self) -> builtins.int:
        r"""
        Number of common coarse channels
        """
    @num_common_coarse_chans.setter
    def num_common_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of common coarse channels
        """
    @property
    def common_start_unix_time_ms(self) -> builtins.int:
        r"""
        The start of the observation (the time that is common to all
        provided data files).
        """
    @common_start_unix_time_ms.setter
    def common_start_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        The start of the observation (the time that is common to all
        provided data files).
        """
    @property
    def common_end_unix_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` is the common end time of the observation
        i.e. start time of last common timestep plus integration time.
        """
    @common_end_unix_time_ms.setter
    def common_end_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` is the common end time of the observation
        i.e. start time of last common timestep plus integration time.
        """
    @property
    def common_start_gps_time_ms(self) -> builtins.int:
        r"""
        `start_unix_time_ms` but in GPS milliseconds
        """
    @common_start_gps_time_ms.setter
    def common_start_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `start_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_end_gps_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` but in GPS milliseconds
        """
    @common_end_gps_time_ms.setter
    def common_end_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_duration_ms(self) -> builtins.int:
        r"""
        Total duration of common timesteps
        """
    @common_duration_ms.setter
    def common_duration_ms(self, value: builtins.int) -> None:
        r"""
        Total duration of common timesteps
        """
    @property
    def common_bandwidth_hz(self) -> builtins.int:
        r"""
        Total bandwidth of the common coarse channels
        """
    @common_bandwidth_hz.setter
    def common_bandwidth_hz(self, value: builtins.int) -> None:
        r"""
        Total bandwidth of the common coarse channels
        """
    @property
    def common_good_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common timestep indices only including timesteps after the quack time
        """
    @common_good_timestep_indices.setter
    def common_good_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common timestep indices only including timesteps after the quack time
        """
    @property
    def num_common_good_timesteps(self) -> builtins.int:
        r"""
        Number of common timesteps only including timesteps after the quack time
        """
    @num_common_good_timesteps.setter
    def num_common_good_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of common timesteps only including timesteps after the quack time
        """
    @property
    def common_good_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        Vector of (in)common coarse channel indices only including timesteps after the quack time
        """
    @common_good_coarse_chan_indices.setter
    def common_good_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        Vector of (in)common coarse channel indices only including timesteps after the quack time
        """
    @property
    def num_common_good_coarse_chans(self) -> builtins.int:
        r"""
        Number of common coarse channels only including timesteps after the quack time
        """
    @num_common_good_coarse_chans.setter
    def num_common_good_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of common coarse channels only including timesteps after the quack time
        """
    @property
    def common_good_start_unix_time_ms(self) -> builtins.int:
        r"""
        The start of the observation (the time that is common to all
        provided data files) only including timesteps after the quack time
        """
    @common_good_start_unix_time_ms.setter
    def common_good_start_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        The start of the observation (the time that is common to all
        provided data files) only including timesteps after the quack time
        """
    @property
    def common_good_end_unix_time_ms(self) -> builtins.int:
        r"""
        `end_unix_time_ms` is the common end time of the observation only including timesteps after the quack time
        i.e. start time of last common timestep plus integration time.
        """
    @common_good_end_unix_time_ms.setter
    def common_good_end_unix_time_ms(self, value: builtins.int) -> None:
        r"""
        `end_unix_time_ms` is the common end time of the observation only including timesteps after the quack time
        i.e. start time of last common timestep plus integration time.
        """
    @property
    def common_good_start_gps_time_ms(self) -> builtins.int:
        r"""
        `common_good_start_unix_time_ms` but in GPS milliseconds
        """
    @common_good_start_gps_time_ms.setter
    def common_good_start_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `common_good_start_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_good_end_gps_time_ms(self) -> builtins.int:
        r"""
        `common_good_end_unix_time_ms` but in GPS milliseconds
        """
    @common_good_end_gps_time_ms.setter
    def common_good_end_gps_time_ms(self, value: builtins.int) -> None:
        r"""
        `common_good_end_unix_time_ms` but in GPS milliseconds
        """
    @property
    def common_good_duration_ms(self) -> builtins.int:
        r"""
        Total duration of common_good timesteps
        """
    @common_good_duration_ms.setter
    def common_good_duration_ms(self, value: builtins.int) -> None:
        r"""
        Total duration of common_good timesteps
        """
    @property
    def common_good_bandwidth_hz(self) -> builtins.int:
        r"""
        Total bandwidth of the common coarse channels only including timesteps after the quack time
        """
    @common_good_bandwidth_hz.setter
    def common_good_bandwidth_hz(self, value: builtins.int) -> None:
        r"""
        Total bandwidth of the common coarse channels only including timesteps after the quack time
        """
    @property
    def provided_timestep_indices(self) -> builtins.list[builtins.int]:
        r"""
        The indices of any timesteps which we have *some* data for
        """
    @provided_timestep_indices.setter
    def provided_timestep_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        The indices of any timesteps which we have *some* data for
        """
    @property
    def num_provided_timesteps(self) -> builtins.int:
        r"""
        Number of provided timestep indices we have at least *some* data for
        """
    @num_provided_timesteps.setter
    def num_provided_timesteps(self, value: builtins.int) -> None:
        r"""
        Number of provided timestep indices we have at least *some* data for
        """
    @property
    def provided_coarse_chan_indices(self) -> builtins.list[builtins.int]:
        r"""
        The indices of any coarse channels which we have *some* data for
        """
    @provided_coarse_chan_indices.setter
    def provided_coarse_chan_indices(self, value: builtins.list[builtins.int]) -> None:
        r"""
        The indices of any coarse channels which we have *some* data for
        """
    @property
    def num_provided_coarse_chans(self) -> builtins.int:
        r"""
        Number of provided coarse channel indices we have at least *some* data for
        """
    @num_provided_coarse_chans.setter
    def num_provided_coarse_chans(self, value: builtins.int) -> None:
        r"""
        Number of provided coarse channel indices we have at least *some* data for
        """
    @property
    def coarse_chan_width_hz(self) -> builtins.int:
        r"""
        Bandwidth of each coarse channel
        """
    @coarse_chan_width_hz.setter
    def coarse_chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Bandwidth of each coarse channel
        """
    @property
    def fine_chan_width_hz(self) -> builtins.int:
        r"""
        Volatge fine_chan_resolution (if applicable- MWA legacy is 10 kHz, MWAX is unchannelised i.e. the full coarse channel width)
        """
    @fine_chan_width_hz.setter
    def fine_chan_width_hz(self, value: builtins.int) -> None:
        r"""
        Volatge fine_chan_resolution (if applicable- MWA legacy is 10 kHz, MWAX is unchannelised i.e. the full coarse channel width)
        """
    @property
    def num_fine_chans_per_coarse(self) -> builtins.int:
        r"""
        Number of fine channels in each coarse channel
        """
    @num_fine_chans_per_coarse.setter
    def num_fine_chans_per_coarse(self, value: builtins.int) -> None:
        r"""
        Number of fine channels in each coarse channel
        """
    @property
    def sample_size_bytes(self) -> builtins.int:
        r"""
        Number of bytes in each sample (a sample is a complex, thus includes r and i)
        """
    @sample_size_bytes.setter
    def sample_size_bytes(self, value: builtins.int) -> None:
        r"""
        Number of bytes in each sample (a sample is a complex, thus includes r and i)
        """
    @property
    def num_voltage_blocks_per_timestep(self) -> builtins.int:
        r"""
        Number of voltage blocks per timestep
        """
    @num_voltage_blocks_per_timestep.setter
    def num_voltage_blocks_per_timestep(self, value: builtins.int) -> None:
        r"""
        Number of voltage blocks per timestep
        """
    @property
    def num_voltage_blocks_per_second(self) -> builtins.int:
        r"""
        Number of voltage blocks of samples in each second of data
        """
    @num_voltage_blocks_per_second.setter
    def num_voltage_blocks_per_second(self, value: builtins.int) -> None:
        r"""
        Number of voltage blocks of samples in each second of data
        """
    @property
    def num_samples_per_voltage_block(self) -> builtins.int:
        r"""
        Number of samples in each voltage_blocks for each second of data per rf_input * fine_chans * real|imag
        """
    @num_samples_per_voltage_block.setter
    def num_samples_per_voltage_block(self, value: builtins.int) -> None:
        r"""
        Number of samples in each voltage_blocks for each second of data per rf_input * fine_chans * real|imag
        """
    @property
    def voltage_block_size_bytes(self) -> builtins.int:
        r"""
        The size of each voltage block
        """
    @voltage_block_size_bytes.setter
    def voltage_block_size_bytes(self, value: builtins.int) -> None:
        r"""
        The size of each voltage block
        """
    @property
    def delay_block_size_bytes(self) -> builtins.int:
        r"""
        Number of bytes used to store delays - for MWAX this is the same as a voltage block size, for legacy it is 0
        """
    @delay_block_size_bytes.setter
    def delay_block_size_bytes(self, value: builtins.int) -> None:
        r"""
        Number of bytes used to store delays - for MWAX this is the same as a voltage block size, for legacy it is 0
        """
    @property
    def data_file_header_size_bytes(self) -> builtins.int:
        r"""
        The amount of bytes to skip before getting into real data within the voltage files
        """
    @data_file_header_size_bytes.setter
    def data_file_header_size_bytes(self, value: builtins.int) -> None:
        r"""
        The amount of bytes to skip before getting into real data within the voltage files
        """
    @property
    def expected_voltage_data_file_size_bytes(self) -> builtins.int:
        r"""
        Expected voltage file size
        """
    @expected_voltage_data_file_size_bytes.setter
    def expected_voltage_data_file_size_bytes(self, value: builtins.int) -> None:
        r"""
        Expected voltage file size
        """
    @property
    def voltage_batches(self) -> builtins.list[VoltageFileBatch]:
        r"""
        `voltage_batches` *must* be sorted appropriately. See
        `voltage::determine_voltage_batches`. The order of the filenames
        corresponds directly to other voltage-related objects
        (e.g. `voltage_hdu_limits`). Structured:
        `voltage_batches[batch][filename]`.
        """
    @voltage_batches.setter
    def voltage_batches(self, value: builtins.list[VoltageFileBatch]) -> None:
        r"""
        `voltage_batches` *must* be sorted appropriately. See
        `voltage::determine_voltage_batches`. The order of the filenames
        corresponds directly to other voltage-related objects
        (e.g. `voltage_hdu_limits`). Structured:
        `voltage_batches[batch][filename]`.
        """
    @property
    def voltage_time_map(self) -> builtins.dict[builtins.int, builtins.dict[builtins.int, builtins.str]]:
        r"""
        We assume as little as possible about the data layout in the voltage
        files; here, a `BTreeMap` contains each unique GPS time from every
        voltage file, which is associated with another `BTreeMap`, associating each
        voltage number with a voltage batch number and HDU index. The voltage
        number, batch number and HDU index are everything needed to find the
        correct HDU out of all voltage files.
        """
    @voltage_time_map.setter
    def voltage_time_map(self, value: builtins.dict[builtins.int, builtins.dict[builtins.int, builtins.str]]) -> None:
        r"""
        We assume as little as possible about the data layout in the voltage
        files; here, a `BTreeMap` contains each unique GPS time from every
        voltage file, which is associated with another `BTreeMap`, associating each
        voltage number with a voltage batch number and HDU index. The voltage
        number, batch number and HDU index are everything needed to find the
        correct HDU out of all voltage files.
        """
    def __new__(cls, metafits_filename: builtins.str, voltage_filenames: typing.Sequence[builtins.str]) -> VoltageContext:
        r"""
        From a path to a metafits file and paths to voltage files, create a `VoltageContext`.
        
        Args:
            metafits_filename (str): filename of metafits file as a path or string.
            voltage_filenames (list[str]): list of filenames of voltage files.
        
        Returns:
            voltage_context (VoltageContext): a populated VoltageContext object if Ok.
        """
    def get_fine_chan_freqs_hz_array(self, volt_coarse_chan_indices: typing.Sequence[builtins.int]) -> builtins.list[builtins.float]:
        r"""
        For a given list of voltage coarse channel indices, return a list of the center frequencies for all the fine channels in the given coarse channels.
        
        Args:
            volt_coarse_chan_indices (list[int]): a list containing correlator coarse channel indices for which you want fine channels for. Does not need to be contiguous.
        
        Returns:
            fine_chan_freqs_hz_array (list[float]): a vector of floats containing the centre sky frequencies of all the fine channels for the given coarse channels.
        """
    def read_file(self, volt_timestep_index: builtins.int, volt_coarse_chan_index: builtins.int) -> numpy.typing.NDArray[numpy.int8]:
        r"""
        Read a single timestep / coarse channel worth of data
        
        Args:
            volt_timestep_index (int): index within the timestep array for the desired timestep. This corresponds to the element within VoltageContext.timesteps. For mwa legacy each index represents 1 second increments, for mwax it is 8 second increments.
            volt_coarse_chan_index (int): index within the coarse_chan array for the desired coarse channel. This corresponds to the element within VoltageContext.coarse_chans.
        
        Returns:
            data (numpy.typing.NDArray[numpy.int8]): A 6 dimensional ndarray of signed bytes containing the data, if Ok.
        
        NOTE: The shape of the ndarray is different between LegacyVCS and MWAX VCS
        Legacy: [second],[time sample],[chan],[ant],[pol],[complexity]
                where complexity is a byte (first 4 bits for real, second 4 bits for imaginary) in 2's compliment    
        MWAX  : [second],[voltage_block],[antenna],[pol],[sample],[r,i]
        """
    def read_second(self, gps_second_start: builtins.int, gps_second_count: builtins.int, volt_coarse_chan_index: builtins.int) -> numpy.typing.NDArray[numpy.int8]:
        r"""
        Read a single or multiple seconds of data for a coarse channel
        
        Args:
            gps_second_start (int): GPS second within the observation to start returning data.
            gps_second_count (int): number of seconds of data to return.
            volt_coarse_chan_index (int): index within the coarse_chan array for the desired coarse channel. This corresponds to the element within VoltageContext.coarse_chans.
        
        Returns:
            data (numpy.typing.NDArray[numpy.int8]): A 6 dimensional ndarray of signed bytes containing the data, if Ok.
        
        NOTE: The shape is different between LegacyVCS and MWAX VCS
        Legacy: [second],[time sample],[chan],[ant],[pol],[complexity]
                where complexity is a byte (first 4 bits for real, second 4 bits for imaginary) in 2's compliment    
        MWAX  : [second],[voltage_block],[antenna],[pol],[sample],[r,i]
        """
    def __repr__(self) -> builtins.str: ...
    def __enter__(self, slf: VoltageContext) -> VoltageContext: ...
    def __exit__(self, _exc_type: typing.Any, _exc_value: typing.Any, _traceback: typing.Any) -> None: ...

class VoltageErro(builtins.Exception):
    ...

class VoltageErrorEmptyBTreeMap(builtins.Exception):
    ...

class VoltageErrorGpsTimeMissing(builtins.Exception):
    ...

class VoltageErrorInvalidBufferSize(builtins.Exception):
    ...

class VoltageErrorInvalidCoarseChanIndex(builtins.Exception):
    ...

class VoltageErrorInvalidGpsSecondCount(builtins.Exception):
    ...

class VoltageErrorInvalidGpsSecondStart(builtins.Exception):
    ...

class VoltageErrorInvalidMwaVersion(builtins.Exception):
    ...

class VoltageErrorInvalidTimeStepIndex(builtins.Exception):
    ...

class VoltageErrorInvalidVoltageFileSize(builtins.Exception):
    ...

class VoltageErrorMetafitsObsidMismatch(builtins.Exception):
    ...

class VoltageErrorMissingObsid(builtins.Exception):
    ...

class VoltageErrorMixture(builtins.Exception):
    ...

class VoltageErrorNoDataForTimeStepCoarseChannel(builtins.Exception):
    ...

class VoltageErrorNoVoltageFiles(builtins.Exception):
    ...

class VoltageErrorObsidMismatch(builtins.Exception):
    ...

class VoltageErrorUnequalFileSizes(builtins.Exception):
    ...

class VoltageErrorUnevenChannelsForGpsTime(builtins.Exception):
    ...

class VoltageErrorUnrecognised(builtins.Exception):
    ...

@typing.final
class VoltageFile:
    r"""
    This represents one voltage file
    """
    @property
    def filename(self) -> builtins.str:
        r"""
        Filename of voltage file
        """
    @filename.setter
    def filename(self, value: builtins.str) -> None:
        r"""
        Filename of voltage file
        """
    @property
    def channel_identifier(self) -> builtins.int:
        r"""
        channel number (receiver channel number 001..255)
        """
    @channel_identifier.setter
    def channel_identifier(self, value: builtins.int) -> None:
        r"""
        channel number (receiver channel number 001..255)
        """

@typing.final
class VoltageFileBatch:
    r"""
    This represents one group of voltage files with the same "batch" identitifer (gps time).
    e.g.
    MWA Legacy: obsid_gpstime_datetime_chan
    MWAX      : obsid_gpstime_datetime_chan
    """
    @property
    def gps_time_seconds(self) -> builtins.int: ...
    @gps_time_seconds.setter
    def gps_time_seconds(self, value: builtins.int) -> None: ...
    @property
    def voltage_files(self) -> builtins.list[VoltageFile]:
        r"""
        Vector storing the details of each voltage file in this batch
        """
    @voltage_files.setter
    def voltage_files(self, value: builtins.list[VoltageFile]) -> None:
        r"""
        Vector storing the details of each voltage file in this batch
        """

@typing.final
class CableDelaysApplied(enum.Enum):
    r"""
    The type of cable delays applied to the data
    """
    NoCableDelaysApplied = ...
    CableAndRecClock = ...
    CableAndRecClockAndBeamformerDipoleDelays = ...

@typing.final
class DataFileType(enum.Enum):
    r"""
    DataFileType enum.
    """
    UnknownType = ...
    RawVsib = ...
    AvgVsib = ...
    InstCfgTxt = ...
    HdrTxt = ...
    InstCfgHdr = ...
    Lacspc = ...
    Lccspc = ...
    HwLfilesFits = ...
    AntCfg = ...
    Flag = ...
    RawVolt = ...
    RawVoltRecombined = ...
    Uvfits = ...
    Ppd = ...
    Ics = ...
    Tar = ...
    Subfile = ...
    MwaxFits = ...
    Vdif = ...
    Filterbank = ...

@typing.final
class GeometricDelaysApplied(enum.Enum):
    r"""
    The type of geometric delays applied to the data
    """
    No = ...
    Zenith = ...
    TilePointing = ...
    AzElTracking = ...

@typing.final
class MWAMode(enum.Enum):
    r"""
    The MODE the system was in for this observation
    """
    No_Capture = ...
    Burst_Vsib = ...
    Sw_Cor_Vsib = ...
    Hw_Cor_Pkts = ...
    Rts_32t = ...
    Hw_Lfiles = ...
    Hw_Lfiles_Nomentok = ...
    Sw_Cor_Vsib_Nomentok = ...
    Burst_Vsib_Synced = ...
    Burst_Vsib_Raw = ...
    Lfiles_Client = ...
    No_Capture_Burst = ...
    Enter_Burst = ...
    Enter_Channel = ...
    Voltage_Raw = ...
    Corr_Mode_Change = ...
    Voltage_Start = ...
    Voltage_Stop = ...
    Voltage_Buffer = ...
    Mwax_Correlator = ...
    Mwax_Vcs = ...
    Mwax_Buffer = ...
    Mwax_Beamformer = ...
    Mwax_Corr_Bf = ...

@typing.final
class MWAVersion(enum.Enum):
    r"""
    Enum for all of the known variants of file format based on Correlator version
    """
    CorrOldLegacy = ...
    r"""
    MWA correlator (v1.0), having data files without any batch numbers.
    """
    CorrLegacy = ...
    r"""
    MWA correlator (v1.0), having data files with "gpubox" and batch numbers in their names.
    """
    CorrMWAXv2 = ...
    r"""
    MWAX correlator (v2.0)
    """
    VCSLegacyRecombined = ...
    r"""
    Legacy VCS Recombined
    """
    VCSMWAXv2 = ...
    r"""
    MWAX VCS
    """
    BeamformerMWAXv2 = ...
    r"""
    MWAX Beamformer
    """
    CorrBeamformerMWAXv2 = ...
    r"""
    MWAX Corr+Beamformer
    """

@typing.final
class Pol(enum.Enum):
    r"""
    Instrument polarisation.
    """
    X = ...
    Y = ...

@typing.final
class ReceiverType(enum.Enum):
    r"""
    ReceiverType enum.
    """
    Unknown = ...
    RRI = ...
    NI = ...
    Pseudo = ...
    SHAO = ...
    EDA2 = ...

@typing.final
class VisPol(enum.Enum):
    r"""
    Visibility polarisations
    """
    XX = ...
    XY = ...
    YX = ...
    YY = ...