diff --git a/src/depiction_cluster_sandbox/workflow/proc/concatenate_images.py b/src/depiction_cluster_sandbox/workflow/proc/concatenate_images.py index ec4d9f1..af4f804 100644 --- a/src/depiction_cluster_sandbox/workflow/proc/concatenate_images.py +++ b/src/depiction_cluster_sandbox/workflow/proc/concatenate_images.py @@ -1,7 +1,9 @@ from pathlib import Path + import cyclopts -from depiction.image.horizontal_concat import horizontal_concat + from depiction.image.multi_channel_image import MultiChannelImage +from depiction.image.multi_channel_image_concatenation import MultiChannelImageConcatenation app = cyclopts.App() @@ -9,8 +11,8 @@ @app.default def concatenate_images(output_hdf5: Path, paths: list[Path]) -> None: images = [MultiChannelImage.read_hdf5(path) for path in paths] - concatenated = horizontal_concat(images, add_index=True) - concatenated.write_hdf5(output_hdf5) + concat = MultiChannelImageConcatenation.concat_images(images=images) + concat.write_hdf5(path=output_hdf5) if __name__ == "__main__":