Skip to content

Commit 2aa6d1e

Browse files
committed
FIX: Reduce complexity of wsipatchdataset init
1 parent e52504f commit 2aa6d1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tiatoolbox/models/dataset/classification.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ def __init__( # skipcq: PY-R1000
263263
input_within_bound=False,
264264
)
265265

266-
mask_reader = self._setup_mask_reader(mask_path, reader, auto_get_mask)
266+
mask_reader = self._setup_mask_reader(
267+
mask_path, reader, auto_get_mask=auto_get_mask
268+
)
267269
if mask_reader is not None:
268270
self._filter_patches(mask_reader, wsi_shape, min_mask_ratio)
269271

0 commit comments

Comments
 (0)