-
Notifications
You must be signed in to change notification settings - Fork 15
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
Only the latest data files are accessible #147
Comments
I don't think there's a problem with newer versions of scikit-hep-testdata not providing access to older files, but it is a problem that the cache lives outside of package versioning: you can Since we usually only add files, this hasn't come up before, but it does make sense to replace RNTuple files until version 1.0 is declared. |
Okay, I guess this is really a non-issue since it is extremely rare to replace or remove files. I'd be happy to implement I'd also be happy just closing this issue and dealing with it manually for RNTuple v1.0.0. |
I don't view this library as something that needs to have all the niceties because it's not user-facing. Since we (developers) know that the cache is in
|
In scikit-hep/uproot5#1115 we noticed that tests seemed to pass even when the newest version of
scikit-hep-testdata
hadn't been deployed to PyPI.I took a look at the code and found that the data files are always downloaded using these urls:
scikit-hep-testdata/src/skhep_testdata/local_files.py
Lines 22 to 23 in 0fd45be
This means that if a file gets updated, then it becomes impossible to use the older version by installing an older version of the package, and instead the only option is to manually move the older version of the file into the cache directory. And if a file gets deleted, then it becomes inaccessible.
So with #144 I unintentionally made previous RNTuple files inaccessible. In this case it's fine since no one should be using the older RNTuple spec, but there might be cases where files need to be updated, but with the option of using older versions by installing previous versions of this package.
So I think it would be better if the above lines could be replaced with something like
and maybe have a fallback in case someone is using an editable version or something like that.
Also, it would be nice if there was a
clear_cache
function.The text was updated successfully, but these errors were encountered: