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:
+14
-1
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user