Open Mr-Milk opened 7 months ago
Thanks for this bug report. Slideflow is not officially supported or tested on Windows (see docs), but I think it would be fairly straightforward to resolve this issue. We try to be OS-agnostic where possible, but we don't have a Windows testing pipeline set up.
Switching to pathlib
in the backend could be one solution for resolving Windows path issues. We'll do some digging and see what would be the best long-term solution for this.
Description
When I create a
Dataset
on Windows platform, it cannot retrieved existed tfrecords.To Reproduce
Create a dataset like the following, with tfrecords in the folder, the slideflow will return a empty list.
Expected behavior
Slideflow should recognize and pick up all tfrecords
Environment:
pip
, source): pipPotential cause
I think this is related to how path is handled in slideflow
The following code will produce
D:\\data\\data
instead ofdata
But if I create a Windows path using a Linux-style path, it will work.
I have a question, why not use the standard library
pathlib
to handle path instead of using theos