Snewpy

Latest version: v1.5.1

Safety actively analyzes 689525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.5.1

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11208876.svg)](https://doi.org/10.5281/zenodo.11208876)

What's Changed
* Fixed issue where `snewpy.snowglobes` would fail for some models


**Full Changelog**: https://github.com/SNEWS2/snewpy/compare/v1.5...v1.5.1

1.5

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11110204.svg)](https://doi.org/10.5281/zenodo.11110204)

What's Changed
* **Added support for pre-supernova models**
* **Added two new core-collapse supernova model families**:
* `Fornax_2022` contains 100 long-duration 2D simulations (from [arXiv:2307.08735](https://arxiv.org/abs/2307.08735))
* `Mori_2023` contains 14 simulations of axion-like particle production in 2D simulations (from [arXiv:2304.11360](https://arxiv.org/abs/2304.11360))
* **Added new Quantum Decoherence flavor transition** based on [arXiv:2306.17591](https://arxiv.org/abs/2306.17591)
* Updated SNOwGLoBES dependency to v1.3.2. This fixes an issue where SNEWPY did not find detector efficiency files for the `ar40kt` detector configuration. After applying correct efficiencies, the event rate for `ar40kt` is reduced by ~5%.
* Fixed issue where the function `Fornax_2021.get_initial_spectra()` would raise an error when given an array of times as an argument.
* Fixed issue where `get_initial_spectra()` would return incorrect luminosity if the energy argument was not in units of MeV
* The bulk model downloader (`snewpy.get_models()`) now uses the same download location as the on-demand download on model initialisation.
* Various minor bugfixes, performance, documentation and other improvements

Compatibility and Deprecations
* This version of SNEWPY supports Python 3.8 or higher.

New Contributors
* santosmv made their first contribution in https://github.com/SNEWS2/snewpy/pull/260

**Full Changelog**: https://github.com/SNEWS2/snewpy/compare/v1.4.1...v1.5

1.4.1

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8429028.svg)](https://doi.org/10.5281/zenodo.8429028)

What's Changed
* Reverts name of an argument to `MixingParameters` to restore backwards compatibility
* Updates a few Jupyter notebooks to support new simulations added in SNEWPY v1.4


**Full Changelog**: https://github.com/SNEWS2/snewpy/compare/v1.4...v1.4.1

1.4

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8415419.svg)](https://doi.org/10.5281/zenodo.8415419)

What's Changed
* **Improved SNOwGLoBES integration.**
* Data files for detectors are included when installing SNEWPY; SNOwGLoBES no longer needs to be downloaded separately.
* Users who want to use custom data files can still specify a SNOwGLoBES path as before. SNEWPY now requires SNOwGLoBES v1.3.
* Added several observer directions and progenitor masses for the `Tamborra_2014`, `Walk_2018` and `Walk_2019` models.
* Significant performance improvements for `snewpy.snowglobes` thanks to a new low-level interface for neutrino flux and event rate calculations. (Note: This low-level interface is currently not stable and should not be used directly.)
* Added a SNEWPY logo
* Various minor bugfixes, performance, documentation and other improvements

Compatibility and Deprecations
* This version of SNEWPY supports Python 3.8 or higher.
* The `Tamborra_2014`, `Walk_2018` and `Walk_2019` models now require additional initialization parameters to support the larger number of available simulations.

New Contributors
* jakob2508 made their first contribution in https://github.com/SNEWS2/snewpy/pull/266

**Full Changelog**: https://github.com/SNEWS2/snewpy/compare/v1.3...v1.4

1.3

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7352789.svg)](https://doi.org/10.5281/zenodo.7352789)

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 and `get_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](https://docs.astropy.org/en/stable/api/astropy.config.get_cache_dir.html?highlight=get_cache_dir), so users no longer need to manage files manually.
* Added `get_flux()` function to `SupernovaModel` subclasses in `snewpy.models`
* Improved `get_initial_spectra(t, E)` and `get_transformed_spectra(t, E)` functions: all `SupernovaModel` subclasses in `snewpy.models` now support arrays of times as the argument `t`
* Fixed issue when using the `ar40kt_he` and `wc100kt30prct_he` detector configurations with `snewpy.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 the `param` property and `get_param_combinations()` function or [read the documentation](https://snewpy.readthedocs.io/en/v1.3/models.html#module-snewpy.models.ccsn). (Under the hood, there are now separate classes in `snewpy.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**: https://github.com/SNEWS2/snewpy/compare/v1.2.1...v1.3

1.2.1

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6841779.svg)](https://doi.org/10.5281/zenodo.6841779)

What's Changed
* Fixed crash when trying to initialise some `SupernovaModel`s with NumPy 1.23 or above
* Fixed issue where some `SupernovaModel` subclasses would not distinguish between NU_X and NU_X_BAR. (This only affects users who had custom model files. Model files included with SNEWPY are not affected.)
* Correct equation of state for `Warren_2020` model

New Contributors
* joesmolsky made their first contribution in https://github.com/SNEWS2/snewpy/pull/187

**Full Changelog**: https://github.com/SNEWS2/snewpy/compare/v1.2...v1.2.1

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.