summaryrefslogtreecommitdiff
path: root/experiments/analyze_bci_td_development.py
diff options
context:
space:
mode:
Diffstat (limited to 'experiments/analyze_bci_td_development.py')
-rw-r--r--experiments/analyze_bci_td_development.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/experiments/analyze_bci_td_development.py b/experiments/analyze_bci_td_development.py
index 78dbceb..5d97c9d 100644
--- a/experiments/analyze_bci_td_development.py
+++ b/experiments/analyze_bci_td_development.py
@@ -206,7 +206,12 @@ def main():
"R1 is development evidence and cannot change the paper score"),
}
if os.path.exists(args.out):
- raise FileExistsError(f"refusing to overwrite {args.out}")
+ with open(args.out) as handle:
+ existing = json.load(handle)
+ require(existing == output,
+ "existing R1 gate differs from deterministic re-audit")
+ print(json.dumps(output, indent=2))
+ return
with open(args.out, "w") as handle:
json.dump(output, handle, indent=2, sort_keys=True)
handle.write("\n")