-
Notifications
You must be signed in to change notification settings - Fork 14
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
Should .files pretend virtual overview files don't exist? #286
Comments
Does |
With EXtra-data/extra_data/reader.py Lines 1419 to 1432 in 5c2046f
|
One cautious option might be to rename the current property to |
True, but depending on what code wants |
That is true, but my worry is silently breaking code exactly because the list is still valid, but not what was expected. Preventing that may well be worth it visibly breaking code that may have worked anyways, but which can be fixed as easily. |
But the easiest fix for code where that's not an issue would be to use |
I actually bumped into it today and I used we could maybe populate the list with original files when using overview files (the path information to original files is stored there) and lazily generate Are you aware of any practical use of |
The
.files
attribute (on DataCollection, SourceData, KeyData) is not documented, but also not_private
by convention. This puts it in a grey area as API.It still technically works with virtual overview files - it will point to one virtual overview file (per run) rather than a list of actual source files. But for some purposes, people might want to see a list of the relevant source files.
It's relatively easy to get a list of all the source files for a run - either from the virtual overview file itself, or by scanning the run folder. We could make
.files
a property that does this on demand. But it gets trickier to filter it following source & train selections if EXtra-data is not actually using the files. Still possible if we have to, but trickier.A workaround is that people can pass
_use_voview=False
when opening a run to bypass the virtual overview file and work with the regular source files like before.The text was updated successfully, but these errors were encountered: