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

bug fix

parent 59c77989
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ import numpy as np ...@@ -3,7 +3,7 @@ import numpy as np
def detector_coord_to_dict(detector_coord: np.ndarray): def detector_coord_to_dict(detector_coord: np.ndarray):
assert len(detector_coord.shape) == 1 assert len(detector_coord.shape) == 1
assert detector_coord.shape[2] == 3 assert detector_coord.shape[0] == 2
detector_coord = detector_coord.tolist() detector_coord = detector_coord.tolist()
return {"u": detector_coord[0], "v": detector_coord[1]} return {"u": detector_coord[0], "v": detector_coord[1]}
......
...@@ -64,7 +64,7 @@ def get_projection_dict( ...@@ -64,7 +64,7 @@ def get_projection_dict(
) )
projection['detector'] = get_detector_dict(image_dimensions_px, pixel_pitch_mm) projection['detector'] = get_detector_dict(image_dimensions_px, pixel_pitch_mm)
projection['image'] = {'image_path', str(image_path)} projection['image'] = {'image_path': str(image_path)}
return projection return projection
......
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