Replies: 3 comments 24 replies
-
One important thing to keep in mind: For every release of SNEWPY, data files and model code must be in sync. If those are in one repo, we get that effectively for free; if they aren't, we'll have to find a way to sync them up as part of the release/publish to PyPI workflow. |
Beta Was this translation helpful? Give feedback.
-
Another thing to consider: since the models are downloaded by from snewpy.models import Bollig_2016
model = Bollig_2016('models/Bollig_2016/s11.2c') while it's clear that when trying to create Bollig_2016 model I need the datafile. So, instead I would pass the desired metadata - in this case, the progenitor mass. model = Bollig_2016(progenitor_mass='11.2') and this would check the if the models manager has this model downloaded (and download it if needed). |
Beta Was this translation helpful? Give feedback.
-
Links on removing the large files:
|
Beta Was this translation helpful? Give feedback.
-
Hi all, I thought this "discussion" functionality can be useful, to put the ideas of possible improvements, without spamming in the issues.
Some thoughts on the models bookkeeping, while working on #121 : the presn models datafiles are quite heavy: 311M, so in addition to the existing snewpy/models ~330M the repository becomes quite unwieldy. I see here two solutions:
git submodules init
is called. Preferably we do the same with ccsn datafiles (and delete them from git history of this package).extra_requires
in the setup to put these modelsWe already have the
get_models
function, so any internal change will be wrapped by it and invisible to the final user. But it might make running our tests faster.Any input is appreciated
Beta Was this translation helpful? Give feedback.
All reactions