v1.3
What's Changed
- Removed dependency on GLoBES. SNEWPY now includes code to calculate event rates directly, making it much easier to install and improving performance of
snewpy.snowglobes.simulate()
when using multiple time bins. SNOwGLoBES still needs to be downloaded separately, but it no longer needs to be compiled. - Added simplified interface to initialise models from physics parameters (e.g. progenitor mass, metallicity)
- Added
param
property andget_param_combinations()
function to each model class to explore available progenitors. - The first time a specific progenitor is initialised, SNEWPY automatically downloads the required input files to the AstroPy cache directory, so users no longer need to manage files manually.
- Added
- Added
get_flux()
function toSupernovaModel
subclasses insnewpy.models
- Improved
get_initial_spectra(t, E)
andget_transformed_spectra(t, E)
functions: allSupernovaModel
subclasses insnewpy.models
now support arrays of times as the argumentt
- Fixed issue when using the
ar40kt_he
andwc100kt30prct_he
detector configurations withsnewpy.snowglobes.simulate()
- Various minor bugfixes, performance, documentation and other improvements
Compatibility and Deprecations
- This version of SNEWPY supports Python 3.7 or higher.
- Initialising a supernova model in
snewpy.models.ccsn
from a file name is deprecated in favour of initialising from physics parameters. For details on parameters available for each model class, please see theparam
property andget_param_combinations()
function or read the documentation. (Under the hood, there are now separate classes insnewpy.models.loaders
that load models from a local file; however, these are not guaranteed to be stable and may change at any time without warning.)
Full Changelog: v1.2.1...v1.3