TSRDA / MTLCC /code /notebook_helpers.py
Dhruv1000's picture
Add MTLCC: code, tools, results, report, checkpoints (Option 1 complete)
6e33b3b verified
Raw History Blame Contribute Delete
173 Bytes
from pathlib import Path
import json
def write_json(path,data):
path=Path(path);path.parent.mkdir(parents=True,exist_ok=True);path.write_text(json.dumps(data,indent=2))