Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig1.png +3 -0
- paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig2.png +3 -0
- paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig3.png +3 -0
- paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/restructure_figure_order_20261006.py +81 -0
paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig1.png
ADDED
|
Git LFS Details
|
paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig2.png
ADDED
|
Git LFS Details
|
paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/figplan_fig3.png
ADDED
|
Git LFS Details
|
paper-releases/pbisc-diffusion/updates/20261006T150859Z-deck-readme-order-step/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/restructure_figure_order_20261006.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Order the deck by the six main figures of the Nature-style manuscript plan (2026-10-06; rerun after every plan
|
| 3 |
+
change).
|
| 4 |
+
|
| 5 |
+
Reads data/figure_plan.json (written by hand) and data/figure_plan_slide_text.json (tools/figure_plan.py) and
|
| 6 |
+
rebuilds the order of data/slides_spec.json from the slides it already holds:
|
| 7 |
+
title, agenda (6 figures + Supplementary + Appendix + Discussion), the manuscript plan,
|
| 8 |
+
for each figure: a divider, its plan slide, its panel slides in panel order (section label "Fig. 1a" ...), the
|
| 9 |
+
slides kept in the section until it is planned ("Fig. 4 candidate") and its details,
|
| 10 |
+
Supplementary (plan slide + slides), Appendix, Discussion.
|
| 11 |
+
Existing slides keep every field except order and section label; dividers and plan slides are rebuilt each run.
|
| 12 |
+
The text of the plan slides is filled by tools/sync_sec09_text.py.
|
| 13 |
+
"""
|
| 14 |
+
import json
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
DECK = Path(__file__).resolve().parents[1]
|
| 18 |
+
SPEC = DECK / "data" / "slides_spec.json"
|
| 19 |
+
PLAN = DECK / "data" / "figure_plan.json"
|
| 20 |
+
TEXT = "data/figure_plan_slide_text.json"
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def main() -> None:
|
| 24 |
+
spec = json.loads(SPEC.read_text())
|
| 25 |
+
plan = json.loads(PLAN.read_text())
|
| 26 |
+
gen = json.loads((DECK / TEXT).read_text())["slides"]
|
| 27 |
+
made = {g["title"]: i for i, g in enumerate(gen)}
|
| 28 |
+
old = {s["title"]: s for s in spec["slides"]
|
| 29 |
+
if s.get("kind") == "content" and s.get("text_source", {}).get("file") != TEXT}
|
| 30 |
+
title = next(s for s in spec["slides"] if s.get("kind") == "title")
|
| 31 |
+
agenda = next(s for s in spec["slides"] if s.get("kind") == "agenda")
|
| 32 |
+
|
| 33 |
+
def plan_slide(t, label):
|
| 34 |
+
i = made[t]
|
| 35 |
+
g = gen[i]
|
| 36 |
+
src = "tools/figure_plan.py; data/figure_plan.json"
|
| 37 |
+
if t == "Overview draft (Nature style)":
|
| 38 |
+
src = "tools/figure_plan.py; manuscript figures/fig01_architecture_nature.svg"
|
| 39 |
+
elif t == "Pretraining corpus":
|
| 40 |
+
src = "tools/figure_plan.py; manuscript figures/fig01_corpus_nature.png, source_data/corpus/"
|
| 41 |
+
return {"kind": "content", "section": "plan", "section_label": label,
|
| 42 |
+
"text_source": {"file": TEXT, "index": i}, "title": g["title"], "layout": g["layout"],
|
| 43 |
+
"figures": [str(Path(f).relative_to(DECK)) for f in g["figures"]], "keywords": [], "footnote": "",
|
| 44 |
+
"sources": src}
|
| 45 |
+
|
| 46 |
+
def take(t, label, section):
|
| 47 |
+
s = old.pop(t)
|
| 48 |
+
s["section"], s["section_label"] = section, label
|
| 49 |
+
return s
|
| 50 |
+
|
| 51 |
+
title["subtitle"] = "Paper figure plan (Nature style) · updated 2026-10-06"
|
| 52 |
+
agenda["items"] = ([f"Fig. {f['n']} {f['title']}" for f in plan["figures"]]
|
| 53 |
+
+ ["Supplementary", "Appendix"] + (["Discussion"] if plan.get("discussion") else []))
|
| 54 |
+
out = [title, agenda, plan_slide("Manuscript plan: six main figures", "Plan")]
|
| 55 |
+
for f in plan["figures"]:
|
| 56 |
+
n = f["n"]
|
| 57 |
+
out.append({"kind": "divider", "title": f"Figure {n}. {f['title']}"})
|
| 58 |
+
out.append(plan_slide(f"Figure {n} plan: {f['title']}", f"Fig. {n} plan"))
|
| 59 |
+
for p in f["panels"]:
|
| 60 |
+
for t in p["evidence"]:
|
| 61 |
+
out.append(plan_slide(t, f"Fig. {n}{p['p']}") if t in made else take(t, f"Fig. {n}{p['p']}", str(n)))
|
| 62 |
+
out += [take(t, f"Fig. {n} candidate", str(n)) for t in f.get("candidates", [])]
|
| 63 |
+
out += [take(t, f"Fig. {n} details", str(n)) for t in f["details"]]
|
| 64 |
+
out.append({"kind": "divider", "title": "Supplementary"})
|
| 65 |
+
out.append(plan_slide("Supplementary plan", "Supplementary"))
|
| 66 |
+
out += [take(t, "Supplementary", "S") for t in plan["supplementary"]["slides"]]
|
| 67 |
+
out.append({"kind": "divider", "title": "Appendix"})
|
| 68 |
+
out += [take(t, "Appendix", "A") for t in plan["appendix"]]
|
| 69 |
+
if plan.get("discussion"):
|
| 70 |
+
out.append({"kind": "divider", "title": "Discussion"})
|
| 71 |
+
out += [take(t, "Discussion", "D") for t in plan["discussion"]]
|
| 72 |
+
if old:
|
| 73 |
+
raise SystemExit(f"slides not placed: {sorted(old)}")
|
| 74 |
+
spec["slides"] = out
|
| 75 |
+
SPEC.write_text(json.dumps(spec, indent=2, ensure_ascii=False) + "\n")
|
| 76 |
+
for i, s in enumerate(out, 1):
|
| 77 |
+
print(i, s.get("kind"), s.get("section_label", ""), "|", s.get("title"))
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
if __name__ == "__main__":
|
| 81 |
+
main()
|