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

fixed load / linter

parent 775ade2c
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,4 @@ def load_thd_meta_data(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
return meta_data
import numpy as np
from PIL import Image
import json
from pathlib import Path
from .load_json import load_thd_meta_data
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())
meta_data = load_thd_meta_data(json_path)
image = np.asarray(Image.open(json_path.parent / meta_data["image"]["image_path"]))
return meta_data, image
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