Datasets:
Formats:
csv
Languages:
English
Size:
< 1K
Tags:
mathematics
homogenization
spectral-theory
variational-methods
matrix-analysis
scientific-computing
Download research/code/run_all.py from PureOne/EVE-QELTHA: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/datasets/PureOne/EVE-QELTHA/resolve/main/research/code/run_all.py
- Command line
-
hf download hf://datasets/PureOne/EVE-QELTHA/research/code/run_all.py
-
curl -L -o run_all.py https://huggingface.co/datasets/PureOne/EVE-QELTHA/resolve/main/research/code/run_all.py
1.94 kB
| #!/usr/bin/env python3 | |
| """Run the full final-release verification suite and retain reproducibility data.""" | |
| from pathlib import Path | |
| import hashlib | |
| import importlib.metadata | |
| import json | |
| import subprocess | |
| import sys | |
| import time | |
| ROOT=Path(__file__).resolve().parents[1] | |
| SCRIPTS=['original_verification.py','verify_coherence.py','verify_capacity.py', | |
| 'verify_twist.py','verify_nexus.py','verify_nexus_uniform.py', | |
| 'verify_logperiodic.py','verify_universality.py', | |
| 'verify_microstructure.py','verify_critical.py'] | |
| def main(): | |
| out=ROOT/'results';out.mkdir(exist_ok=True) | |
| rows=[] | |
| for name in SCRIPTS: | |
| path=ROOT/'code'/name;start=time.monotonic() | |
| proc=subprocess.run([sys.executable,str(path)],cwd=ROOT,text=True,capture_output=True) | |
| (out/(path.stem+'.log')).write_text(proc.stdout+proc.stderr,encoding='utf-8') | |
| row=dict(script=name,exit_code=proc.returncode,seconds=round(time.monotonic()-start,3), | |
| sha256=hashlib.sha256(path.read_bytes()).hexdigest()) | |
| rows.append(row);print(name+': '+('PASS' if proc.returncode==0 else 'FAIL'),flush=True) | |
| if proc.returncode: | |
| print((proc.stdout+proc.stderr)[-5000:]);break | |
| passed=sum(r['exit_code']==0 for r in rows) | |
| result=dict(all_passed=len(rows)==len(SCRIPTS) and passed==len(SCRIPTS), | |
| suites_passed=passed,suites_expected=len(SCRIPTS), | |
| program_pass_rate_percent=100*passed/len(SCRIPTS),python=sys.version, | |
| packages={p:importlib.metadata.version(p) for p in ['numpy','scipy','mpmath']}, | |
| runs=rows,note='Program pass percentage concerns these checks only; no novelty probability, proof-assistant certification, or physical validation is implied.') | |
| (out/'verification_summary.json').write_text(json.dumps(result,indent=2)+'\n') | |
| if not result['all_passed']:raise SystemExit(1) | |
| if __name__=='__main__':main() | |