matter-embryogenesis / baseline_v1 /src /transport_stress.py
PureOne's picture
Release Matter Embryogenesis v3.0.0: theory, code, data and audit
52fc221 verified
Raw History Blame
784 Bytes
"""Declared follow-up stress test: consume more than initial local inventory.
Default runs did not establish a strong transport effect. These runs test that risk.
"""
import json
from pathlib import Path
from local_growth import Config,simulate
R=Path(__file__).resolve().parents[1]
out=[]
for spacing in [5,0]:
for seed in range(4):
cfg=Config(n=32,dim=2,steps=3000,dwell=8.,maintenance_cost=.25,
channel_spacing=spacing,seed=40200+seed)
res,arr=simulate({'op':'paired_path','n':32},cfg)
out.append(res)
vals=out[-4:]
print(spacing,[(round(v['completed_fraction'],3),round(v['material_fidelity'],3),round(v['growth_time'],2)) for v in vals],flush=True)
(R/'results'/'transport_stress.json').write_text(json.dumps(out,indent=2))