Skip to content
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

update tarballs in support to load_sample #103

Closed
wants to merge 1 commit into from

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented Jun 3, 2021

fix #101
Most of the fix is to repackage tarballs, so here are the new ones:

dataset link
Sedov3D http://use.yt/upload/db6a6b28
ExodusII_tests http://use.yt/upload/ca1842b0
GaussianCloud http://use.yt/upload/c3e5eb68
sedov_tst_0004 http://use.yt/upload/d7729706
xray_fits http://use.yt/upload/808c3513
TurbBoxLowRes http://use.yt/upload/d4393bcf
ParticleCavity http://use.yt/upload/dbc6a778

note that in most cases I changed the extraction directory to match the tarball name (in some cases I added a directory layer), but in one case I instead renamed the dataset to match the existing extraction directory (A2052 -> xray_fits), because I find that we might as well use the more descriptive name as a key since it already exists.
I'll open a companion PR on the main repo's side to reflect this change and update the hashes. (update: this is yt-project/yt#3334)

This PR exhausts the list of improperly formed tarballs, it will not be necessary to open new ones in the future

@Xarthisius
Copy link
Member

N00b question: why aren't we fixing load_sample to support more cases instead?

@neutrinoceros
Copy link
Member Author

Well my reasoning is that load_sample is very hard to properly test in CI and it's already filled with magic (i.e. special casing that feel pretty brittle). What I'm trying to accomplish is to have the function do one thing and do it well, instead of breaking apart in every way possible.
Again, I'm so sorry that this is taking so much of your time (as well as mine) :(

@neutrinoceros neutrinoceros changed the title update a tarball name to support load_sample update tarball in support to load_sample Jun 9, 2021
@neutrinoceros neutrinoceros changed the title update tarball in support to load_sample update tarballs in support to load_sample Jun 9, 2021
@neutrinoceros neutrinoceros deleted the fix_tarballs branch December 5, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Malformed tarballs (data samples)
2 participants