Skip to content

Commit 1928214

Browse files
authored
Fix writer constructor tiff options arguments (#156)
* Extra arguments in writer constructor fix * Adding kwargs converters constructors
1 parent 34a7180 commit 1928214

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tiledb/bioimg/converters/ome_tiff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ def chunk_iterator() -> Iterator[Tuple[Tuple[slice, ...], NDArray[Any]]]:
405405

406406

407407
class OMETiffWriter:
408-
def __init__(self, output_path: str, logger: logging.Logger, ome: bool = True):
408+
def __init__(
409+
self, output_path: str, logger: logging.Logger, ome: bool = True, **kwargs: Any
410+
) -> None:
409411
self._logger = logger
410412
self._output_path = output_path
411413
self._ome = ome

tiledb/bioimg/converters/ome_zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def optimal_reader(
216216

217217

218218
class OMEZarrWriter:
219-
def __init__(self, output_path: str, logger: logging.Logger):
219+
def __init__(self, output_path: str, logger: logging.Logger, **kwargs: Any) -> None:
220220
"""
221221
OME-Zarr image writer from TileDB
222222

tiledb/bioimg/converters/png.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def optimal_reader(
199199

200200
class PNGWriter:
201201

202-
def __init__(self, output_path: str, logger: logging.Logger):
202+
def __init__(self, output_path: str, logger: logging.Logger, **kwargs: Any) -> None:
203203
self._logger = logger
204204
self._output_path = output_path
205205
self._group_metadata: Dict[str, Any] = {}

0 commit comments

Comments
 (0)