API

mosfit.modules Package

Classes

Module(name, model, **kwargs) Base Module class.
RestTimes(name, model, **kwargs) This class converts the observed times to rest-frame times.
Kernel(**kwargs) Calculate the maximum likelihood score for a model.
AllTimes(**kwargs) Generate all times for which observations will be constructed.
Diagonal(**kwargs) Calculate the diagonal/residuals for a model kernel.
Array(name, model, **kwargs) Template class for arrays.
DenseTimes(**kwargs) Generate an evenly-spaced array of times for use in calculations.
Constraint(name, model, **kwargs) Template class for constraints.
SLSNConstraints(**kwargs) SLSN constraints.
MagnetarConstraints(**kwargs) Magnetar constraints.
TDEConstraints(**kwargs) TDE constraints.
CSMConstraints(name, model, **kwargs) CSM constraints.
Transient(**kwargs) Structure to store transient data.
ThinShell(name, model, **kwargs) Generate vejecta from kinetic_energy if ejecta in thin shell.
Energetic(name, model, **kwargs) Template class for energy/velocity conversions.
HomologousExpansion(name, model, **kwargs) Generate vejecta from kinetic_energy assuming homologous expansion.
RProcess(**kwargs) r-process decay engine.
CSM(**kwargs) CSM energy injection.
Engine(**kwargs) Generic engine module.
ExpPow(**kwargs) A simple analytical engine.
Magnetar(**kwargs) Magnetar spin-down engine.
Fallback(**kwargs) A tde engine.
NickelCobalt(**kwargs) Nickel/Cobalt decay engine.
Likelihood(name, model, **kwargs) Calculate the maximum likelihood score for a model.
Photometry(**kwargs) Band-pass filters.
Write(**kwargs) Write keys to disk.
LightCurve(**kwargs) Output a light curve to disk.
Output(name, model, **kwargs) Template class for output Modules.
PowerLaw(**kwargs) Standard power law, alpha must be > 1.
Variance(**kwargs) Model parameter that can either be free or fixed.
LuminosityDistance(**kwargs) LuminosityDistance parameter that depends on luminosity distance.
Constant(**kwargs) Constant parameter.
Redshift(**kwargs) Redshift parameter that depends on luminosity distance.
Kroupa(**kwargs) Kroupa IMF from https://arxiv.org/pdf/astro-ph/0102155.pdf.
Covariance(**kwargs) Model parameter that can either be free or fixed.
Parameter(**kwargs) Model parameter that can either be free or fixed.
Gaussian(**kwargs) Parameter with Gaussian prior.
TemperatureFloor(name, model, **kwargs) Photosphere with a minimum allowed temperature.
TdePhotosphere(name, model, **kwargs) Photosphere for a tidal disruption event.
Photosphere(name, model, **kwargs) Template class for photosphere Modules.
DenseCore(name, model, **kwargs) Photosphere with a dense core and a low-mass envelope.
Blackbody(**kwargs) Blackbody spectral energy dist.
MultiBlackbody(**kwargs) Generalized multiple blackbody spectral energy distribution.
SED(**kwargs) Template class for SED Modules.
Synchrotron(**kwargs) Synchrotron spectral energy distribution.
LOSExtinction(**kwargs) Adds extinction to SED from both host galaxy and MW.
Line(**kwargs) Line spectral energy distribution, modifies existing SED.
BlackbodyCutoff(**kwargs) Blackbody SED with cutoff.
DiffusionCSM(**kwargs) Photon diffusion transform for CSM model.
Viscous(**kwargs) Viscous delay transform.
Transform(**kwargs) Parent class for transforms.
Diffusion(**kwargs) Photon diffusion transform.

Class Inheritance Diagram

Inheritance diagram of mosfit.modules.module.Module, mosfit.modules.arrays.resttimes.RestTimes, mosfit.modules.arrays.kernel.Kernel, mosfit.modules.arrays.alltimes.AllTimes, mosfit.modules.arrays.diagonal.Diagonal, mosfit.modules.arrays.array.Array, mosfit.modules.arrays.densetimes.DenseTimes, mosfit.modules.constraints.constraint.Constraint, mosfit.modules.constraints.slsn_constraints.SLSNConstraints, mosfit.modules.constraints.magnetar_constraints.MagnetarConstraints, mosfit.modules.constraints.tde_constraints.TDEConstraints, mosfit.modules.constraints.csmconstraints.CSMConstraints, mosfit.modules.datas.transient.Transient, mosfit.modules.energetics.thin_shell.ThinShell, mosfit.modules.energetics.energetic.Energetic, mosfit.modules.energetics.homologous_expansion.HomologousExpansion, mosfit.modules.engines.rprocess.RProcess, mosfit.modules.engines.csm.CSM, mosfit.modules.engines.engine.Engine, mosfit.modules.engines.exppow.ExpPow, mosfit.modules.engines.magnetar.Magnetar, mosfit.modules.engines.fallback.Fallback, mosfit.modules.engines.nickelcobalt.NickelCobalt, mosfit.modules.objectives.likelihood.Likelihood, mosfit.modules.observables.photometry.Photometry, mosfit.modules.outputs.write.Write, mosfit.modules.outputs.lightcurve.LightCurve, mosfit.modules.outputs.output.Output, mosfit.modules.parameters.powerlaw.PowerLaw, mosfit.modules.parameters.variance.Variance, mosfit.modules.parameters.luminositydistance.LuminosityDistance, mosfit.modules.parameters.constant.Constant, mosfit.modules.parameters.redshift.Redshift, mosfit.modules.parameters.kroupa.Kroupa, mosfit.modules.parameters.covariance.Covariance, mosfit.modules.parameters.parameter.Parameter, mosfit.modules.parameters.gaussian.Gaussian, mosfit.modules.photospheres.temperature_floor.TemperatureFloor, mosfit.modules.photospheres.tde_photosphere.TdePhotosphere, mosfit.modules.photospheres.photosphere.Photosphere, mosfit.modules.photospheres.densecore.DenseCore, mosfit.modules.seds.blackbody.Blackbody, mosfit.modules.seds.multiblackbody.MultiBlackbody, mosfit.modules.seds.sed.SED, mosfit.modules.seds.synchrotron.Synchrotron, mosfit.modules.seds.losextinction.LOSExtinction, mosfit.modules.seds.line.Line, mosfit.modules.seds.blackbody_cutoff.BlackbodyCutoff, mosfit.modules.transforms.diffusion_csm.DiffusionCSM, mosfit.modules.transforms.viscous.Viscous, mosfit.modules.transforms.transform.Transform, mosfit.modules.transforms.diffusion.Diffusion