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

Fix bulk downloader #325

Merged
merged 5 commits into from
May 3, 2024
Merged

Fix bulk downloader #325

merged 5 commits into from
May 3, 2024

Conversation

JostMigenda
Copy link
Member

One more problem discovered while preparing the v1.5 release: The bulk downloader (snewpy.get_models()) broke when moving model files to separate repositories.

This PR fixes it and ensures it uses the same download code as model initialisers (iterating over all parameter_combinations, rather than using its own dictionary of hardcoded file names); to avoid future breakage.

As a side effect, the bulk downloader will now download to the same snewpy.model_path, rather then the current directory. This is good for consistency and may avoid duplicate downloads.
The parameter download_dir was never officially documented; I’m still marking it as deprecated though, to be safe.

@JostMigenda JostMigenda added this to the v1.5 milestone Apr 30, 2024
@JostMigenda JostMigenda mentioned this pull request May 1, 2024
Copy link
Contributor

@Sheshuk Sheshuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Now everything concerning the models' downloading is consistent, very good!

@Sheshuk Sheshuk merged commit d897a4d into main May 3, 2024
10 checks passed
@JostMigenda JostMigenda deleted the JostMigenda/FixBulkDownloader branch May 3, 2024 11:33
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.

None yet

2 participants