From 546eba3197c10fd29277c1ba8b6da96982eaa656 Mon Sep 17 00:00:00 2001 From: Susannah Trevino Date: Fri, 11 Oct 2024 13:49:08 -0500 Subject: [PATCH 1/2] Adjust slice ordering --- oct_converter/readers/e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oct_converter/readers/e2e.py b/oct_converter/readers/e2e.py index d0ccee1..7d6746a 100644 --- a/oct_converter/readers/e2e.py +++ b/oct_converter/readers/e2e.py @@ -206,7 +206,7 @@ def _make_lut(): volume_string = "{}_{}_{}".format( chunk.patient_db_id, chunk.study_id, chunk.series_id ) - slice_id = int(chunk.slice_id / 2) - 1 + slice_id = int(chunk.slice_id / 2) # - 1 contour_name = f"contour{contour_data.id}" try: raw_volume = np.frombuffer( @@ -264,7 +264,7 @@ def _make_lut(): if volume_string in volume_array_dict.keys(): volume_array_dict[volume_string][ - int(chunk.slice_id / 2) - 1 + int(chunk.slice_id / 2) # - 1 ] = image else: # try to capture these additional images From aef894d0b144234b67ed82e372da9f13fa06d039 Mon Sep 17 00:00:00 2001 From: Susannah Trevino Date: Fri, 18 Oct 2024 15:49:59 -0500 Subject: [PATCH 2/2] RM commented out chunks --- oct_converter/readers/e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oct_converter/readers/e2e.py b/oct_converter/readers/e2e.py index 7d6746a..89b2aa7 100644 --- a/oct_converter/readers/e2e.py +++ b/oct_converter/readers/e2e.py @@ -206,7 +206,7 @@ def _make_lut(): volume_string = "{}_{}_{}".format( chunk.patient_db_id, chunk.study_id, chunk.series_id ) - slice_id = int(chunk.slice_id / 2) # - 1 + slice_id = int(chunk.slice_id / 2) contour_name = f"contour{contour_data.id}" try: raw_volume = np.frombuffer( @@ -264,7 +264,7 @@ def _make_lut(): if volume_string in volume_array_dict.keys(): volume_array_dict[volume_string][ - int(chunk.slice_id / 2) # - 1 + int(chunk.slice_id / 2) ] = image else: # try to capture these additional images