A mrxs format whole slide file contains a folder with various .dat files and a .mrxs file. During running run_infer.py, the program may handle the folder file as well, it will cause an error as OpenSlide can only read the .mrxs file instead of its folder.
This PR fixes this problem by skipping the folder to let the wsi.py only read the supported .mrxs file itself while having no conflict with other formats of WSIs.
A mrxs format whole slide file contains a folder with various .dat files and a .mrxs file. During running run_infer.py, the program may handle the folder file as well, it will cause an error as OpenSlide can only read the .mrxs file instead of its folder. This PR fixes this problem by skipping the folder to let the wsi.py only read the supported .mrxs file itself while having no conflict with other formats of WSIs.