from pathlib import Path import sys,json ROOT=Path(__file__).resolve().parents[1];sys.path.insert(0,str(ROOT)) from model.global_flood_lstm import * c=load_config(ROOT);h,f,s,y=synthetic_sample(0);assert h.shape==(365,14) and f.shape==(7,6) and s.shape==(8,) and y.shape==(7,);p=ROOT/c["data"]["manifest"];p.parent.mkdir(parents=True,exist_ok=True);p.write_text(json.dumps({"format_version":c["data"]["format_version"],"history_shape":[365,14],"forecast_shape":[7,6],"static_shape":[8],"target_shape":[7],"sources":["HRES","ERA5-Land","CPC","IMERG","HydroATLAS","GRDC"],"static_features_note":"engineering ledger because the paper does not enumerate HydroATLAS attributes","synthetic":True},indent=2));print(p)