-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading multiple slides in pathml #324
Comments
Can you please share the full error message? |
Hello I am sharing full error message and exact path : from pathlib import Path print(wsi_paths) Error message : ArgumentError Traceback (most recent call last) in (.0) ~/Desktop/AI_pathology/new_path/pathml/pathml/core/slide_data.py in init(self, *args, **kwargs) ~/Desktop/AI_pathology/new_path/pathml/pathml/core/slide_data.py in init(self, filepath, name, masks, tiles, labels, backend, slide_type, stain, platform, tma, rgb, volumetric, time_series, counts, dtype) ~/Desktop/AI_pathology/new_path/pathml/pathml/core/slide_backends.py in init(self, filename) ~/.local/lib/python3.8/site-packages/openslide/init.py in open_slide(filename) ~/.local/lib/python3.8/site-packages/openslide/init.py in init(self, filename) ArgumentError: argument 1: <class 'TypeError'>: Incorrect type Thanks in advance |
Great, posting the entire error message is very useful! Looks like the problem is being caused because the paths in So, I think there are two ways you could fix this:
We can also add a check in PathML to prevent this from happening in the future. Thanks!! |
Hi Thanks!! |
Hello
With the help of examples tutorials, all the pre-processing works fine for single slide data. But while loading multiple slides , it gives me error :
Here is script that I followed:
from pathlib import Path
from pathml.core import HESlide, SlideDataset
data_dir = Path("/DATA/Desktop/AI_pathology/test_AB/")
wsi_paths = list(data_dir.glob("*.svs"))
wsi_paths
wsi_list = [HESlide(p) for p in wsi_paths]
All the above steps are exactly as given in section under "Datasets of Images" at https://pathml.readthedocs.io/en/latest/loading_slides.html
Error :
ArgumentError: argument 1: <class 'TypeError'>: Incorrect type
If I am missing something, please correct me.
Thanks in advance
The text was updated successfully, but these errors were encountered: