Type Ia Supernova Light-curve fitting code
Project description
PISCOLA: Python for Intelligent Supernova-COsmology Light-curve Analysis
Type Ia Supernova Light-curve fitting code in python
Read the full documentation at: piscola.readthedocs.io. See below for a summary.
Installation
PISCOLA can be installed in the usual ways, via pip:
pip install piscola
or from source:
git clone https://github.com/temuller/piscola.git
cd piscola
pip install -r requirements.txt
python setup.py install
SFD dust maps
PISCOLA uses the dust maps from the sfddata repository. These can be downloaded and moved into the directory where PISCOLA looks for them by default, by using the download_dustmaps.py
script included in this repository (this script relies on wget):
chmod -x download_dustmaps.py
python download_dustmaps.py piscola
Using PISCOLA
PISCOLA can fit the supernova light curves and correct them in a few lines of code:
sn = piscola.call_sn(<sn_name>)
sn.normalize_data()
sn.fit_lcs()
sn.mangle_sed()
sn.calculate_lc_params()
or if you are OK with using the default parameters, you can do magic:
sn = piscola.call_sn(<sn_name>)
sn.do_magic()
You can find an example of input file in the data directory.
Contributing and raising an issue
The recommended way is to use the issues page. Otherwise, you can contact me directly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.