Scientific-Code-and-Analysis-QA / validate_dataset.py
RegalFire's picture
Publish verified RegalFire scientific product v2
346ecdb verified
Raw History Blame Contribute Delete
474 Bytes
from pathlib import Path
import argparse,sys
sys.path.insert(0,str(Path(__file__).resolve().parent/'validation_engine'))
from validate_products import validate
p=argparse.ArgumentParser();p.add_argument('--source-root',type=Path,required=True);p.add_argument('--release',type=Path,default=Path(__file__).resolve().parent);a=p.parse_args()
r=validate(a.release,a.source_root,'Scientific-Code-and-Analysis-QA');print(r);raise SystemExit(0 if r['status']=='PASS' else 1)