From d7f3138ddb78d423e1d928ff5fe83a3cbb2debf2 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Mon, 1 Jul 2024 17:04:34 +0200 Subject: [PATCH] code style --- src/depiction/parallel_ops/write_spectra_parallel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/depiction/parallel_ops/write_spectra_parallel.py b/src/depiction/parallel_ops/write_spectra_parallel.py index c927dae..7e3ec1a 100644 --- a/src/depiction/parallel_ops/write_spectra_parallel.py +++ b/src/depiction/parallel_ops/write_spectra_parallel.py @@ -197,13 +197,13 @@ def map_chunked_to_file( operation: Callable[[ImzmlReader, list[int], ImzmlWriter], None], spectra_indices: NDArray[int] | None = None, bind_args: dict[str, Any] | None = None, - ): + ) -> None: def wrap_operation( reader: ImzmlReader, spectra_ids: list[int], writers: list[ImzmlWriter], **kwargs: dict[str, Any] - ): - return operation(reader, spectra_ids, writers[0], **kwargs) + ) -> None: + operation(reader, spectra_ids, writers[0], **kwargs) - return self.map_chunked_to_files( + self.map_chunked_to_files( read_file=read_file, write_files=[write_file], operation=wrap_operation,