Skip to content
Snippets Groups Projects
Commit 7254d964 authored by Simon Wittl's avatar Simon Wittl
Browse files

add load json

parent 6f7747ac
No related branches found
No related tags found
No related merge requests found
import json
from pathlib import Path
def load_thd_projection(json_path: Path):
if not json_path.suffix.endswith("json"):
raise ValueError("Wrong data type. Input must be `.json`file.")
meta_data = json.load(json_path.open())
return meta_data
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment