Skip to content

Commit 8cbf726

Browse files
committed
Correct Docker Backprojection
- Write output file path to pipeline_input so it can be read and loaded.
1 parent a6c6077 commit 8cbf726

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/ouroboros/pipeline/backproject_pipeline.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def boxes_dim_range(boxes: list[BoundingBox], dim="z"):
131131
# Write huge temp files (need to address)
132132
full_bounding_box = BoundingBox.bound_boxes(volume_cache.bounding_boxes)
133133
write_shape = np.flip(full_bounding_box.get_shape()).tolist()
134-
file_path = Path(config.output_file_folder,
135-
config.output_file_name + f"_zyx_{'_'.join(map(str, full_bounding_box.get_min(np.uint32)))}")
134+
pipeline_input.output_file_path = f"{config.output_file_name}_zyx_{'_'.join(map(str, full_bounding_box.get_min(np.uint32)))}"
135+
file_path = Path(config.output_file_folder, pipeline_input.output_file_path)
136136
file_path.mkdir(exist_ok=True, parents=True)
137137

138138
with ThreadPool(12) as pool:
@@ -213,6 +213,7 @@ def boxes_dim_range(boxes: list[BoundingBox], dim="z"):
213213
)
214214

215215
if config.make_single_file:
216+
pipeline_input.output_file_path += ".tif"
216217
# Save the backprojected volume to a single tif file
217218
try:
218219

0 commit comments

Comments
 (0)