SNEWPY

SNEWPY: A Data Pipeline from Supernova Simulations to Neutrino Signals - Published in JOSS (2021)

https://github.com/snews2/snewpy

Science Score: 98.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 9 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Committers with academic emails
    8 of 22 committers (36.4%) from academic institutions
  • Institutional organization owner
    Organization snews2 has institutional domain (snews.bnl.gov)
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 6 months ago · JSON representation

Repository

A Python package for working with supernova neutrinos

Basic Info
Statistics
  • Stars: 36
  • Watchers: 8
  • Forks: 24
  • Open Issues: 40
  • Releases: 13
Created over 6 years ago · Last pushed 6 months ago
Metadata Files
Readme License

README.md

SNEWPY: Supernova Neutrino Early Warning Models for Python

snewpy logo: The word 'snewpy' in a monospace font, with an explosion emoji inside the letter 'p'.

DOI PyPI tests Documentation Status

SNEWPY is a Python package for working with supernova neutrinos. It offers …

  • … a simple and unified interface to hundreds of supernova simulations.
  • … a large library of flavor transformations that relate neutrino fluxes produced in the supernova to those reaching a detector on Earth.
  • … and a Python interface to SNOwGLoBES which lets you estimate and plot event rates in many different neutrino detectors.

Installation

Run pip install snewpy to install SNEWPY.

SNEWPY includes a large number of supernova models from different simulation groups. Since these models have a size of several 100 MB, they are not included in the initial install but will be downloaded automatically when needed. Alternatively, you can run the following command to explicitly download models you want to use to a subdirectory named SNEWPY-models/<model_name>/ in the current directory:

python -c 'import snewpy; snewpy.get_models()'

Usage and Documentation

SNEWPY gives you easy access to hundreds of included SN simulations … ```Python import astropy.units as u from snewpy.models.ccsn import Nakazato2013, Bollig2016

Initialise two SN models. This automatically downloads the required data files if necessary.

nakazato = Nakazato2013(progenitormass=20u.solMass, revival_time=100u.ms, metallicity=0.004, eos='shen') bollig = Bollig2016(progenitormass=27*u.solMass) ```

… and many flavor transformations that neutrinos could experience on the way to Earth … ```Python from snewpy.flavor_transformation import AdiabaticMSW from snewpy.neutrino import MassHierarchy

Adiabatic MSW flavor transformation with normal mass ordering

msw_nmo = AdiabaticMSW(mh=MassHierarchy.NORMAL) ```

… letting you quickly calculate the neutrino flux reaching Earth: ```Python times = [0.5, 1] * u.s energies = range(5,50) * u.MeV

Assume a SN at the fiducial distance of 10 kpc and normal mass ordering.

flux = bollig.getflux(times, energies, distance=10*u.kpc, flavorxform=msw_nmo) ```

You can also calculate the observed event rate in all neutrino detectors supported by SNOwGLoBES, use the included SN models and flavor transformations in third-party code (like event generators), and much more.

Jupyter notebooks showcasing the downloadable supernova models available through SNEWPY and much of its functionality are available in the doc/source/nb/ subfolder. Additional example scripts are in the python/snewpy/scripts/ subfolder.

Papers describing SNEWPY and the underlying physics are published in the Astrophysical Journal (DOI:10.3847/1538-4357/ac350f, arXiv:2109.08188) and the Journal of Open Source Software (DOI:10.21105/joss.03772).

For more, see the full documentation on Read the Docs.

Contributing

Your contributions to SNEWPY are welcome! For minor changes, simply submit a pull request. If you plan larger changes, it’s probably a good idea to open an issue first to coordinate our work.

We use a Fork & Pull Request workflow, which is common on GitHub. Please see the Contributing page in our full documentation for details.

Owner

  • Name: SNEWS2.0
  • Login: SNEWS2
  • Kind: organization
  • Location: Virtual

The SuperNova Early Warning System

JOSS Publication

SNEWPY: A Data Pipeline from Supernova Simulations to Neutrino Signals
Published
November 27, 2021
Volume 6, Issue 67, Page 3772
Authors
Amanda L. Baxter
Purdue University, West Lafayette, IN, USA
Segev BenZvi ORCID
University of Rochester, Rochester, NY, USA
Joahan Castaneda Jaimes
California Institute of Technology, Pasadena, CA, USA
Alexis Coleiro
Université de Paris, CNRS, AstroParticule et Cosmologie, Paris, France
Marta Colomer Molla ORCID
Université Libre de Bruxelles, Brussels, Belgium
Damien Dornic
Aix Marseille Univ, CNRS/IN2P3, CPPM, Marseille, France
Spencer Griswold ORCID
University of Rochester, Rochester, NY, USA
Tomer Goldhagen
University of North Carolina - Chapel Hill, Chapel Hill, NC, USA
Anne Graf
NC State University, Raleigh, NC, USA
Alec Habig ORCID
University of Minnesota Duluth, Duluth, MN, USA
Remington Hill
Laurentian University, Sudbury, ON, Canada
Shunsaku Horiuchi ORCID
Virginia Tech, Blacksburg, VA, USA
James P. Kneller ORCID
NC State University, Raleigh, NC, USA
Mathieu Lamoureux ORCID
INFN Sezione di Padova, Padova, Italy
Rafael F. Lang ORCID
Purdue University, West Lafayette, IN, USA
Massimiliano Lincetto ORCID
Ruhr-Universität Bochum, Bochum, Germany
Jost Migenda ORCID
King’s College London, London, UK
McKenzie Myers ORCID
NC State University, Raleigh, NC, USA
Evan O'Connor
Stockholm University, Stockholm, Sweden
Andrew Renshaw ORCID
University of Houston, Houston, TX, USA
Kate Scholberg ORCID
Duke University, Durham, NC, USA
Andrey Sheshukov ORCID
Joint Institute for Nuclear Research, Dubna, Russia
Jeff Tseng ORCID
Oxford University, Oxford, UK
Christopher Tunnell ORCID
Rice University, Houston, TX, USA
Navya Uberoi
University of Rochester, Rochester, NY, USA
Arkin Worlikar
Georgia Institute of Technology, Atlanta, GA, USA
Editor
Dan Foreman-Mackey ORCID
Tags
astronomy supernova neutrinos

GitHub Events

Total
  • Create event: 23
  • Release event: 1
  • Issues event: 24
  • Watch event: 8
  • Delete event: 20
  • Issue comment event: 60
  • Push event: 113
  • Pull request review event: 38
  • Pull request review comment event: 21
  • Pull request event: 46
  • Fork event: 3
Last Year
  • Create event: 23
  • Release event: 1
  • Issues event: 24
  • Watch event: 8
  • Delete event: 20
  • Issue comment event: 60
  • Push event: 113
  • Pull request review event: 38
  • Pull request review comment event: 21
  • Pull request event: 46
  • Fork event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 1,526
  • Total Committers: 22
  • Avg Commits per committer: 69.364
  • Development Distribution Score (DDS): 0.714
Past Year
  • Commits: 193
  • Committers: 7
  • Avg Commits per committer: 27.571
  • Development Distribution Score (DDS): 0.601
Top Committers
Name Email Commits
Andrey Sheshukov d****2@g****m 436
Jost Migenda j****a@k****k 365
Segev BenZvi s****i@i****u 334
Spencer Griswold s****d@i****u 92
jpkneller 4****r 86
Marta ColomerMolla m****a@k****e 64
Evan O'Connor e****o@n****u 35
Selhedri Selhedri s****i@c****r 29
Segev BenZvi s****i 20
Segev BenZvi s****i@r****u 17
mvsantos001 m****s@i****r 10
nuberoi n****i@g****m 10
dveyrat d****t@u****u 8
evamick m****3@d****u 7
thomahrens 8****s 4
joesmolsky j****y@g****m 2
mcolomer m****a@g****m 2
Scholberg, Kate s****l@p****u 1
Sammy Valder s****3@n****r 1
jakob2508 j****e@p****e 1
joshuashzha d****i@g****m 1
soso128 e****a@g****m 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 112
  • Total pull requests: 221
  • Average time to close issues: 8 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 15
  • Total pull request authors: 15
  • Average comments per issue: 2.02
  • Average comments per pull request: 1.95
  • Merged pull requests: 158
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 16
  • Pull requests: 56
  • Average time to close issues: 29 days
  • Average time to close pull requests: 18 days
  • Issue authors: 3
  • Pull request authors: 5
  • Average comments per issue: 0.5
  • Average comments per pull request: 0.88
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Sheshuk (39)
  • JostMigenda (37)
  • sybenzvi (13)
  • EmmaTintinger (4)
  • mcolomermolla (3)
  • KaraMelih (3)
  • soso128 (2)
  • jakob2508 (2)
  • joesmolsky (2)
  • sgriswol (2)
  • Storreslara (1)
  • jpkneller (1)
  • nuberoi (1)
  • yveskini (1)
  • evanoconnor (1)
Pull Request Authors
  • JostMigenda (95)
  • Sheshuk (61)
  • jpkneller (21)
  • sybenzvi (17)
  • soso128 (8)
  • mcolomermolla (6)
  • sgriswol (2)
  • dveyrat (2)
  • mcolomerm (2)
  • evamick (2)
  • jakob2508 (1)
  • joesmolsky (1)
  • santosmv (1)
  • stlgolfer (1)
  • svalder (1)
Top Labels
Issue Labels
bug (21) enhancement (18) SupernovaModel (17) suggestion (14) SNOwGLoBES (10) documentation (7) ModelRegistry (6) question (4) wontfix (3) help wanted (2) good first issue (2) minor (1) ModelsRegistry (1) Change interface (1)
Pull Request Labels
SupernovaModel (13) enhancement (10) bug (5) documentation (4) minor (3) ModelRegistry (3) SNOwGLoBES (2) invalid (2) good first issue (2) help wanted (2) wontfix (2) suggestion (1) test:All (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 544 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 3
  • Total versions: 18
  • Total maintainers: 2
pypi.org: snewpy

A Python package for working with supernova neutrinos

  • Versions: 18
  • Dependent Packages: 1
  • Dependent Repositories: 3
  • Downloads: 544 Last month
Rankings
Dependent packages count: 3.2%
Dependent repos count: 9.1%
Forks count: 9.4%
Average: 9.6%
Downloads: 12.9%
Stargazers count: 13.4%
Maintainers (2)
Last synced: 6 months ago

Dependencies

.github/workflows/integration.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/publish.yml actions
  • actions/checkout v2 composite
  • actions/create-release v1 composite
  • actions/setup-python v2 composite
.github/workflows/tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite