Skip to main content

SNEWS2 supernova simulation package

Project description

SNEWPY: Supernova Neutrino Early Warning Models for Python

DOI tests Documentation Status

Collection of models from the community in common format for use by the SNEWS teams

Installation

Run pip install snewpy to install SNEWPY. After installation you can run python -c 'import snewpy; snewpy.get_models()' to download supernova models supported by SNEWPY. By default, they will be downloaded to a subdirectory named SNEWPY-models/<model_name>/ in the current directory.

Dependencies

To interface with the SNOwGLoBES software the user will need to install the software which can be found at https://github.com/SNOwGLoBES/snowglobes SNOwGLoBES requires that the GLoBES libraries to be installed which can be found at https://www.mpi-hd.mpg.de/personalhomes/globes/

Here we provide a skeleton outline to install these tools.

This is a walkthrough to install GLoBES and SNOwGLoBES locally in the users home (i.e. /path/to/home/ == ~/ particularly this installs in ~/opt/) directory, it is in bash notation

cd /path/to/home/
mkdir opt
cd opt
wget https://www.mpi-hd.mpg.de/personalhomes/globes/download/globes-3.2.17.tar.gz
tar -zxf globes-3.2.17.tar.gz
cd globes-3.2.17/
./configure --prefix=/path/to/home/opt/globes-3.2.17-install  --disable-binary
make
make install
cd /path/to/home/opt/globes-3.2.16-install
export GLB_DIR=${PWD}
cd ..

git clone https://github.com/SNOwGLoBES/snowglobes.git
cd snowglobes
export SNOWGLOBES=${PWD}
cd src
make
make install

Usage

The core code is found in python/snewpy/. Example scripts which show how the software can be used are available in the python/snewpy/scripts/ subfolder as well as notebooks in doc/nb/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snewpy-1.1b3.tar.gz (38.4 kB view hashes)

Uploaded Source

Built Distribution

snewpy-1.1b3-py3-none-any.whl (42.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page