31B regimes parsed (early persist bump L7-16, motor only terminal — E2B signature absent, matches E4B); exp4_regimes.py takes explicit out path / defaults next to input jbar (fix pushed to node before 26B stage)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Nils
2026-07-16 09:54:52 +02:00
co-authored by Claude Fable 5
parent 34497b8835
commit 272a7b1d1f
6 changed files with 185 additions and 4 deletions
+14 -1
View File
@@ -134,8 +134,21 @@ def main():
for l in range(2, len(sensor), 4):
print(f"{w1}/{w2:<9} L{l:>2} | " +
" ".join(f"{curves[wi, l]:+.2f}" for wi in range(5)))
if len(sys.argv) > 2:
out = Path(sys.argv[2])
elif len(sys.argv) > 1:
# default: save next to the input jbar (that dir is what node
# sidecars sync; CWD-relative "results/" has crashed 3 scans)
ckp = Path(sys.argv[1])
out = ckp.parent / ckp.name.replace("jbar", "regimes")
if out == ckp:
out = RES / "regimes.pt"
else:
out = RES / "regimes.pt"
out.parent.mkdir(parents=True, exist_ok=True)
torch.save({"sensor": sensor, "motor": motor, "persist": persist,
"content": content, "ignition": ign}, RES / "regimes.pt")
"content": content, "ignition": ign}, out)
print("saved", out)
if __name__ == "__main__":