Command Line Interface

The analysis pipeline for this project can be accessed either from within a python environment or from the command line. The command line interface is intended for running complete sections of the analysis in a reproducible way.

Compare various SN models against CSP data.

usage: run_analysis.py [-h] -m MODELS [MODELS ...] [-o OUT_DIR]
                       {color_chisq,color_15,equivalent_width,spec_chisq,band_fitting}
                       ...

Named Arguments

-m, --models Models to use
-o, --out_dir

Output directory

Default: [‘./’]

Sub-commands:

color_chisq

Compare color evolution with models.

run_analysis.py color_chisq [-h] [-i INTERVAL] [-s START] [-e END]

Named Arguments

-i, --interval

Spacing between phases when summing chisq

Default: 1

-s, --start Start of phase range to use in chi-squared integration
-e, --end End of phase range to use in chi-squared integration

color_15

Compare color evolution with models.

run_analysis.py color_15 [-h] [-b T0_BAND]

Named Arguments

-b, --t0_band Band to use when setting model t0 to peak

equivalent_width

Calculate pseudo equivalent width values

run_analysis.py equivalent_width [-h] -b FIX_BOUNDARIES

Named Arguments

-b, --fix_boundaries
 Fix feature boundaries to observed values

spec_chisq

Calculate chi-squared for spectra

run_analysis.py spec_chisq [-h] [-e ERR_ESTIMATE] [-f FEATURES [FEATURES ...]]
                           [-b BANDS [BANDS ...]] [-t TRANS_LIMIT]

Named Arguments

-e, --err_estimate
 

Error estimate as a fraction of the flux

Default: 0.03

-f, --features Features to tabulate chi-squared for.
-b, --bands Bands to tabulate chi-squared for.
-t, --trans_limit
 

Transmission cutoff applied to each band

Default: 0.1

band_fitting

Fit individual band of observed light-curves

run_analysis.py band_fitting [-h] -c CONFIG_PATH [-f FIT_FUNC]

Named Arguments

-c, --config_path
 Path of config file with fitting priors and kwargs
-f, --fit_func

Name of the fitting function to use

Default: “fit_lc”