API¶
mosfit.modules Package¶
Initilization procedure for Module.
Functions¶
|
Calculate the corresponding blackbody radiance for a set of wavelengths given a temperature and radiance. |
Classes¶
|
Base |
|
Generate an evenly-spaced array of times for use in calculations. |
|
Template class for arrays. |
|
Generate all times for which observations will be constructed. |
|
Calculate the kernel for use in computing the likelihood score. |
|
This class converts the observed times to rest-frame times. |
|
Calculate the diagonal/residuals for a model kernel. |
|
SLSN constraints. |
|
BNS constraints. |
|
Template class for constraints. |
|
TDE constraints. |
|
Magnetar constraints. |
|
SLSN constraints. |
|
Ia constraints. |
|
NSBH constraints. |
|
CSM constraints. |
|
fallback constraints. |
|
Structure to store transient data. |
|
Uses viewing angle and lanthanide-poor opening angle from Darbha and Kasen 2020. |
|
Generate mejecta and vejecta from black hole - neutron star binary parameters. |
|
Uses viewing angle and half-opening angle from Darbha and Kasen 2020. |
|
Template class for energy/velocity conversions. |
|
Generate vejecta from kinetic_energy assuming homologous expansion. |
|
Generate mejecta, vejecta and kappa from neutron star binary parameters. |
|
Generate mejecta and vejecta from black hole - neutron star binary parameters. |
|
Generate mejecta, vejecta and kappa from neutron star binary parameters. |
|
Generate vejecta from kinetic_energy if ejecta in thin shell. |
|
r-process decay engine. |
|
Generic engine module. |
|
Nickel/Cobalt decay engine. |
|
Simple fallback energy input. |
|
CSM energy injection. |
|
A tde engine. |
|
A simple analytical engine. |
|
Cooling emission from shock-heated cocoon. |
|
Magnetar spin-down engine. |
|
Calculate the maximum likelihood score for a model. |
|
Band-pass filters. |
|
Template class for output Modules. |
|
Write keys to disk. |
|
Output a light curve to disk. |
|
Model parameter that can either be free or fixed. |
|
Kroupa IMF from https://arxiv.org/pdf/astro-ph/0102155.pdf. |
|
Model parameter that can either be free or fixed. |
|
Parameter with Gaussian prior. |
|
Model parameter that can either be free or fixed. |
|
Parameter with Arbitrary prior. |
|
Standard power law, alpha must be > 1. |
|
LuminosityDistance parameter that depends on luminosity distance. |
|
Redshift parameter that depends on luminosity distance. |
|
Constant parameter. |
|
Photosphere for a tidal disruption event. |
|
Template class for photosphere Modules. |
|
Photosphere with a dense core and a low-mass envelope. |
|
Piro and Kollmeier 2018 |
|
Photosphere with a minimum allowed temperature. |
|
Generalized multiple blackbody spectral energy distribution. |
|
Blackbody SED with cutoff. |
|
Blackbody SED with cutoff. |
|
Line spectral energy distribution, modifies existing SED. |
|
Template class for SED Modules. |
|
Blackbody spectral energy dist. |
|
Synchrotron spectral energy distribution. |
|
Adds extinction to SED from both host galaxy and MW. |
|
Parent class for transforms. |
|
Photon diffusion transform. |
|
Viscous delay transform. |
|
Photon diffusion transform for CSM model. |
|
Photon diffusion transform. |