diff --git a/src/thd_json/load_json.py b/src/thd_json/load_json.py new file mode 100644 index 0000000000000000000000000000000000000000..3bdf52bb4cc93749f26e6d8a9aa60d15dca01063 --- /dev/null +++ b/src/thd_json/load_json.py @@ -0,0 +1,9 @@ +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