36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
"""Send reset_equilibrium to physics lattice and watch the field decay.
|
|
|
|
Per Claude Desktop directive 2026-06-08: the lattice was sitting at
|
|
asym ~307 (metastable) after the wave probe. Need to verify it returns
|
|
toward baseline ~116 so subsequent experiments compare against the
|
|
true operating point.
|
|
"""
|
|
import zmq, json, time
|
|
|
|
ctx = zmq.Context()
|
|
cmd = ctx.socket(zmq.PUB); cmd.connect("tcp://127.0.0.1:5557")
|
|
tel = ctx.socket(zmq.SUB); tel.connect("tcp://127.0.0.1:5556")
|
|
tel.setsockopt_string(zmq.SUBSCRIBE, "")
|
|
time.sleep(0.5)
|
|
|
|
def snap():
|
|
# drain queue, return latest
|
|
while True:
|
|
try: tel.recv_string(zmq.NOBLOCK)
|
|
except zmq.Again: break
|
|
return json.loads(tel.recv_string())
|
|
|
|
pre = snap()
|
|
a, c = pre["asymmetry"], pre["coherence"]
|
|
print(f"PRE-RESET cy={pre['cycle']} asym={a:.2f} coh={c:.4f} "
|
|
f"khra={pre['khra_amp']} gixx={pre['gixx_amp']} product={a*c:.2f}")
|
|
|
|
cmd.send_string(json.dumps({"cmd": "reset_equilibrium"}))
|
|
print("sent reset_equilibrium, sampling every 10s for 120s...")
|
|
|
|
for i in range(12):
|
|
time.sleep(10)
|
|
f = snap()
|
|
a, c = f["asymmetry"], f["coherence"]
|
|
print(f"T+{(i+1)*10:3d}s cy={f['cycle']} asym={a:.2f} coh={c:.4f} product={a*c:.2f}")
|