-
Notifications
You must be signed in to change notification settings - Fork 14
Pre Supernova Support for SNTools #61
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
Conversation
… SNEWPY models to the format choices
…e mode and an input and import the model from the correct snewpy.models.____loaders module
… function take mode option as an argument. Allows mode to be used to determine where in SNEWPY to look for the pre sn model.
…g the times list in formats/__init__.py
…ths for ccsn models and pre sn models
…t for presn mode. Allowing start and end times to be given in units of minutes on the command line for presn mode.
JostMigenda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @eobrien2502, this looks pretty good already! I’ve left two minor comments, which shouldn’t take much work to resolve; once you’ve done that, I’m happy to merge this and produce a beta for Lucas and others to test.
Before any final release, we should
- finalise time bin size
- check whether the
--modeargument is necessary or whether we can determine that automatically based on the model name - make sure all models are working with the latest release of snewpy (I think that mainly affects Odrzywolek, now?)
- … and update the documentation
…t use of ccsn mode throughout and chnaging the default bin size to 1 second.
|
This looks good, thanks! The failing tests are on an old Python version (which is no longer supported by the latest snewpy version), so we should drop support for that as well. I’ll handle that in a separate PR in a moment and tag a beta release afterwards. |
Additions and changes that allow SNTools to support the use of Pre Supernova neutrino models within SNEWPY to generate events from those models.