Skip to main content

shock-cooling-curve

Introduction

This package can be used to fit double-peaked supernova light curves using the following shock cooling emission models:

  1. PIRO 2015

  2. Sapir-Waxman 2017

    A) For a blue supergiant (n = 3)

    B) For a red supergiant (n = 3/2)

  3. PIRO 2020

Package Setup

Before installation

This package utilizes pysynphot in order to create synthetic photometry generated according to the analytical models used. The user need to install pysynphot before installing shock_cooling_curve which includes downloading required pysynphot files and adding them to user path.

pysynphot instructions:

Detailed instructions for how to set up pysynphot on your system are provided here. Here is the truncated version adapted from pysynphot provided guidelines:

  1. pip install pysynphot
  2. Two sets of tar files, 1 and 2 need to be downloaded and store in some local directory.
  3. The terminal source file (accessible by calling vi .zprofile on MAC) should be opened and edited to include the path to the pysynphot files set by export PYSYN_CDBS=/my/local/dir/trds/. Note that the variable should be PYSYN_CDBS.
  4. Check if this is done correctly by opening python in your terminal and calling the following command:
import os
os.environ['PYSYN_CDBS']
>>> '/my/local/dir/trds/'

Once you have this setup, you should be good to install shock_cooling_curve!

Contributing

Any code changes, suggestions or improvements are welcome and can be submitted by making a PR! To develop this code, you can:

  1. Fork this repository. It will appear in your own GitHub account as https://github.com/<your_username>/shock_cooling_curve.
  2. Clone your forked shock_cooling_curve repository
  3. cd into the folder shock_cooling_curve and pip install -e .

Using this package

There are two files that have to be prepared before using this package.

  1. The config file: A template for this file in provided under templates/config_template.ini. Simply make a copy of the file and fill out all the entries in the DEFAULT section. The BOUNDS section is optional.

  2. The data file: This file containing the photometry data must be a csv. The column headers and template is under templates/phot_template.csv.

  3. If you are unsure about the naming convention of filters when you include them in your photometry file, you can refer to filter_info.csv under templates.

Related Papers: The Circumstellar Environments of Double-Peaked, Calcium-strong Supernovae 2021gno and 2021inl

Metadata

Release files for shock-cooling-curve 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shock-cooling-curve 0.0.4
File Size Uploaded Provenance Actions
shock_cooling_curve-0.0.4.tar.gz 51.3 kB Without provenance Details for shock_cooling_curve-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shock-cooling-curve 0.0.4
File Interpreter ABI Platform Actions
shock_cooling_curve-0.0.4-py3-none-any.whl Python 3 none any Details for shock_cooling_curve-0.0.4-py3-none-any.whl

Total release size: 104.1 kB

Release files / shock_cooling_curve-0.0.4.tar.gz

Download URL shock_cooling_curve-0.0.4.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
144a3f5ef7a63e0c939ee97d9abe0efd197c215e411d6bd16728c8294f07b177
BLAKE2b-256 checksum
How to use checksums
df5340617adae649f249228386ca33c0f57fed54a33fe4e034d0c606da1d7366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / shock_cooling_curve-0.0.4-py3-none-any.whl

Download URL shock_cooling_curve-0.0.4-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13b71187ba7c70ebb2dee0e576ae5880762ad1d65580b75b12bf8c75da904444
BLAKE2b-256 checksum
How to use checksums
60448569bb3166c8bc0222982586aa40c9a1441e611d983d15061d57ef4a3b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for shock-cooling-curve 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page