SBU-BMI / wsinfer

🔥 🚀 Blazingly fast pipeline for patch-based classification in whole slide images
https://wsinfer.readthedocs.io
Apache License 2.0
56 stars 10 forks source link

only use specified backend (or tifffile) to read mpp #227

Closed kaczmarj closed 2 months ago

kaczmarj commented 2 months ago

Previously, even if tiffslide was the chosen backend, openslide would still be used first to get mpp. This could cause panics if a slide could not be read by openslide. This panic could confuse users because they asked to use tiffslide. This commit changes the mpp reading function to use the chosen backend or tifffile if that backend fails.

related to #225