SNEWS2 / snewpy

A Python package for working with supernova neutrinos
https://snewpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
26 stars 19 forks source link

Adding default option of downloading files from given URL, instead of fixed github one #247

Closed Sheshuk closed 11 months ago

Sheshuk commented 1 year ago

Following my suggestion on making a separate repository for the data files, I would like to add the capability of downloading the files from any given url.

URLs can be formatted with any parameters, so I implemented the same github downloading in a new format for illustration:

Sheshuk commented 1 year ago

I removed the from_github, cleaned up the docstrings, and also added a default parameter snewpy_version which can be put to the URL template. So it will always point to the current version.