From 6e46a7f7cdf044c22875cf2c9ebd22d4812630e4 Mon Sep 17 00:00:00 2001 From: Weaver Goldman Date: Wed, 31 Jul 2024 18:09:03 -0400 Subject: [PATCH] Remove backprojection dependency on config for slice dimensions. --- python/ouroboros/pipeline/backproject_pipeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ouroboros/pipeline/backproject_pipeline.py b/python/ouroboros/pipeline/backproject_pipeline.py index f062abd..b1d2fcb 100644 --- a/python/ouroboros/pipeline/backproject_pipeline.py +++ b/python/ouroboros/pipeline/backproject_pipeline.py @@ -319,6 +319,7 @@ def process_bounding_box( num_channels = ( None if len(straightened_volume.shape) == 3 else straightened_volume.shape[-1] ) + slice_width, slice_height = straightened_volume.shape[1], straightened_volume.shape[2] durations["memmap"].append(time.perf_counter() - start) # Get the slices from the straightened volume @@ -334,7 +335,7 @@ def process_bounding_box( grids = np.array( [ generate_coordinate_grid_for_rect( - slice_rects[i], config.slice_width, config.slice_height + slice_rects[i], slice_width, slice_height ) for i in slice_indices ]