Skip to main content

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

repo documentation status license ci Python Version

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

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 for a "quick" fit with the default parameters:

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


Download files

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

Source Distribution

piscola-0.1.0.dev4.tar.gz (11.1 MB view hashes)

Uploaded Source

Built Distribution

piscola-0.1.0.dev4-py3-none-any.whl (2.8 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