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

Move filename generation outside if-else block in datasets.py #314

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

magdalendobson
Copy link
Collaborator

In datasets.py, when calling prepare on a slice of a dataset, the filename was incorrectly being set to the base dataset filename when checking whether the file already existed. This caused download of smaller slices to be skipped if the base dataset file already existed in the user's data directory. This PR changes the filename to the cropped filename before checking for existence and thus makes sure the cropped file is downloaded where applicable.

@magdalendobson magdalendobson marked this pull request as ready for review October 14, 2024 21:04
@magdalendobson magdalendobson merged commit 0ce0eaa into main Oct 14, 2024
48 of 76 checks passed
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.

2 participants