Skip to content

Commit

Permalink
fix default callbacks and spacings argument
Browse files Browse the repository at this point in the history
  • Loading branch information
martvanrijthoven committed Nov 2, 2023
1 parent c5eab91 commit bccf052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/patch_iterator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def test_patch_iterator():
with create_patch_iterator(
image_path="/tmp/TCGA-21-5784-01Z-00-DX1.tif",
patch_configuration=PatchConfiguration(spacing=32),
patch_configuration=PatchConfiguration(spacings=(32,)),
) as patch_iterator:
for patch in patch_iterator:
pass
4 changes: 2 additions & 2 deletions wholeslidedata/interoperability/asap/imagewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ def write(self, path, spacing, dimensions, tile_shape):


class WholeSlideMaskWriter(WholeSlideMonochromeMaskWriter):
def __init__(self, callbacks, suffix=".tif"):
def __init__(self, callbacks=(), suffix=".tif"):
warnings.warn("WholeSlideMaskWriter will be deprecated, use WholeSlideMonochromeMaskWriter instead", DeprecationWarning)
super().__init__(callbacks=callbacks, suffix=suffix)


class WholeSlideImageWriter(WholeSlideImageWriterBase):
def __init__(self, callbacks, suffix=".tif"):
def __init__(self, callbacks=(), suffix=".tif"):
super().__init__(callbacks=callbacks)
self._suffix = suffix

Expand Down

0 comments on commit bccf052

Please sign in to comment.