You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# setup correct orientation of slide (this depends on microscope used to generate the data)
@@ -564,7 +574,7 @@ class ParallelStitcher(Stitcher):
564
574
do_intensity_rescale (bool or "full_image", optional): Flag to indicate whether to rescale image intensities (default is True). Alternatively, set to "full_image" to rescale the entire image.
565
575
rescale_range (tuple or dict, optional): If all channels should be rescaled to the same range pass a tuple with the percentiles for rescaling (default is (1, 99)). Alternatively, a dictionary can be passed with the channel names as keys and the percentiles as values if each channel should be rescaled to a different range.
566
576
channel_order (list, optional): Order of channels in the generated output mosaic. If none (default value) the order of the channels is left unchanged.
567
-
reader_type (class, optional): Type of reader to use for reading image tiles (default is FilePatternReaderRescale).
577
+
reader_type (class, optional): Type of reader to use for reading image tiles (default is "FilePatternReaderRescale").
568
578
orientation (dict, optional): Dictionary specifying which dimensions of the slide to flip (default is {'flip_x': False, 'flip_y': True}).
569
579
plot_QC (bool, optional): Flag to indicate whether to plot quality control (QC) figures (default is True).
570
580
overwrite (bool, optional): Flag to indicate whether to overwrite the output directory if it already exists (default is False).
@@ -588,7 +598,7 @@ def __init__(
588
598
WGAchannel: str=None,
589
599
channel_order: list[str] =None,
590
600
overwrite: bool=False,
591
-
reader_type=FilePatternReaderRescale,
601
+
reader_type="FilePatternReaderRescale",
592
602
orientation=None,
593
603
cache: str=None,
594
604
threads: int=20,
@@ -613,8 +623,9 @@ def __init__(
613
623
overwrite,
614
624
cache,
615
625
)
626
+
616
627
# dirty fix to avoide multithreading error with BioformatsReader until this can be fixed
617
-
ifself.reader_type==BioformatsReaderRescale:
628
+
ifself.reader_type==self.BioformatsReaderRescale:
618
629
threads=1
619
630
print(
620
631
"BioformatsReaderRescale does not support multithreading for calculating the error threshold currently. Proceeding with 1 thread."
0 commit comments