Skip to content

Conversation

@eobrien2502
Copy link

Additions and changes that allow SNTools to support the use of Pre Supernova neutrino models within SNEWPY to generate events from those models.

EOBRIEN2502 added 8 commits April 29, 2025 13:28
…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.
…t for presn mode. Allowing start and end times to be given in units of minutes on the command line for presn mode.
Copy link
Member

@JostMigenda JostMigenda left a 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 --mode argument 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.
@JostMigenda
Copy link
Member

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.

@JostMigenda JostMigenda merged commit 9adb07f into SNEWS2:main Sep 24, 2025
13 of 16 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