TSRDA / PASTIS /main_method /code /notebook_helpers.py
Dhruv1000's picture
Move PASTIS work into PASTIS/ (3518/3518)
0ad6e78 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))