"""POST HOC, added after the fresh review of 7 November 2026; not pre-registered. Where the older VLA disk fits of O'Gorman et al. (2015), from 2000-2004, fall on the companion's orbit, and how large their ellipticity errors are. Fig. 13 of Matthews et al. (2026) doesn't include them. Usage: python3 -I posthoc_older_shapes.py The axes are typed from Table 1 of O'Gorman, Harper, Brown et al. (2015), A&A 580, A101 (arXiv:1506.07536v1): the rows at 1.3 cm (22 GHz) and 0.7 cm (44 GHz), major and minor axes of the best-fit uniform disk with their errors, in mas. Where Table 1 gives two dates for a session, the phase is taken at their mean. Phases use MacLeod et al. (2025)'s ephemeris, JD = 2459984 + 2109.2 E, as analysis.py does. The phase error combines their 0.35-year error on the time of transit with E times their 9.2-day error on the period, ignoring any correlation between the two. Ellipticity is 1 - minor/major, and its error comes from the two axis errors, taken as independent. The scatter of the paper's repeat observations (our check C1) is read from results-summary.json. Standard library only. """ import datetime as dt import json import math import sys JD_CONJ, P_MAC = 2459984.0, 2109.2 SIG_TC_DAYS, SIG_P_DAYS = 0.35 * 365.25, 9.2 # session, dates in Table 1, band, major axis and error, minor axis and error (mas) ROWS = [ ("2000 Dec 23", ["2000-12-23"], "44 GHz", 98, 2, 91, 1), ("2001 Jan 02", ["2001-01-02"], "22 GHz", 124, 2, 115, 1), ("2002 Feb 17-18", ["2002-02-17", "2002-02-18"], "22 GHz", 120, 4, 109, 3), ("2002 Apr 12-13", ["2002-04-12", "2002-04-13"], "22 GHz", 134, 9, 102, 6), ("2003 Aug 10-12", ["2003-08-10", "2003-08-12"], "44 GHz", 103, 4, 92, 5), ("2003 Aug 10-12", ["2003-08-10", "2003-08-12"], "22 GHz", 122, 5, 114, 6), ("2004 Oct 21-30", ["2004-10-21", "2004-10-30"], "44 GHz", 99, 3, 92, 3), ("2004 Oct 21-30", ["2004-10-21", "2004-10-30"], "22 GHz", 127, 2, 114, 2), ] def jd(iso): return (dt.date.fromisoformat(iso) - dt.date(1858, 11, 17)).days + 2400000.5 def main(): if len(sys.argv) != 3: sys.exit(__doc__) summary = json.load(open(sys.argv[1], encoding="utf-8")) sig_c1 = summary["A_ellipticity_and_phase"]["C1_repeat_observations"]["sigma_e_empirical"] out = ["POST HOC (after the fresh review of 2026-11-07; not pre-registered).", "O'Gorman et al. (2015) Table 1, 22- and 44-GHz uniform-disk fits, on MacLeod et al. (2025)'s ephemeris.", "", f"{'session':15s} {'band':7s} {'JD':>10s} {'phase':>6s} {'+-':>5s} {'to 0/0.5':>8s} {'sin^2':>6s} " f"{'e':>6s} {'+-':>6s} {'err/C1':>6s}"] phases, nodes, es, errs = [], [], [], [] for session, dates, band, a, sa, b, sb in ROWS: j = sum(jd(x) for x in dates) / len(dates) n = (j - JD_CONJ) / P_MAC phase = n - math.floor(n) sig_phase = math.hypot(SIG_TC_DAYS, n * SIG_P_DAYS) / P_MAC node = min(abs(phase - x) for x in (0.0, 0.5, 1.0)) sin2 = math.sin(2 * math.pi * phase) ** 2 r = b / a e = 1 - r sig_e = r * math.hypot(sa / a, sb / b) phases.append(phase) nodes.append(node) es.append(e) errs.append(sig_e) out.append(f"{session:15s} {band:7s} {j:10.1f} {phase:6.3f} {sig_phase:5.3f} {node:8.3f} {sin2:6.3f} " f"{e:6.3f} {sig_e:6.3f} {sig_e / sig_c1:6.1f}") out += ["", f"phases {min(phases):.3f}-{max(phases):.3f}; nearest to transit (0) or eclipse (0.5): {min(nodes):.3f} of an orbit", f"ellipticities {min(es):.3f}-{max(es):.3f}; their errors {min(errs):.3f}-{max(errs):.3f}, " f"{min(errs) / sig_c1:.1f}-{max(errs) / sig_c1:.1f} times the repeat scatter C1 = {sig_c1:.4f}", "No session falls within a tenth of an orbit of transit or eclipse, where the pattern in Fig. 13 has the star", "nearly round, so these fits can't test that part of it."] with open(sys.argv[2], "w", encoding="utf-8", newline="\n") as f: f.write("\n".join(out) + "\n") print("\n".join(out)) if __name__ == "__main__": main()