Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jul 1, 2024
1 parent c85aa7c commit d7f3138
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/depiction/parallel_ops/write_spectra_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7f3138

Please sign in to comment.