bayspec.model.local package¶
Submodules¶
bayspec.model.local.additive module¶
Additive photon-spectrum components shipped with bayspec.
Each class implements a concrete analytic family (power-law, cutoff
power-law, Band function, blackbody, synchrotron, etc.) and returns the
photon flux density \(N(E, T)\) from func(). Most components
expose a vfv_peak configuration flag that switches between
peak-energy and break-energy parameterizations, and every component
accepts an optional redshift configuration that blueshifts E by
1 + redshift before evaluation.
- class bayspec.model.local.additive.cpl[source]¶
Bases:
AdditivePower law with an exponential high-energy cutoff (
vfv_peakaware).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.additive.sbpl[source]¶
Bases:
AdditiveSmoothly broken power law (Kaneko et al. 2006,
10.1086/505911).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.additive.csbpl[source]¶
Bases:
AdditiveSmoothly broken power law with an added exponential cutoff.
- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.additive.dsbpl[source]¶
Bases:
AdditiveDouble smoothly broken power law (three segments, two smooth breaks).
- class bayspec.model.local.additive.tsbpl[source]¶
Bases:
AdditiveTriple smoothly broken power law (four segments, three smooth breaks).
- class bayspec.model.local.additive.sb2pl[source]¶
Bases:
AdditiveSmoothly broken power law variant (Ravasio et al. 2018,
10.1051/0004-6361/201732245).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.additive.csb2pl[source]¶
Bases:
AdditiveConvex 2-segment smoothly broken power law with an exponential cutoff.
- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.additive.sb3pl[source]¶
Bases:
AdditiveConvex 3-segment smoothly broken power law.
- class bayspec.model.local.additive.sb4pl[source]¶
Bases:
AdditiveConvex 4-segment smoothly broken power law.
- class bayspec.model.local.additive.band[source]¶
Bases:
AdditiveBand function (Band et al. 1993,
10.1086/172995).
- class bayspec.model.local.additive.cband[source]¶
Bases:
AdditiveBand function augmented with an exponential high-energy cutoff.
- class bayspec.model.local.additive.dband[source]¶
Bases:
AdditiveDouble Band function (two adjoining Band segments).
- class bayspec.model.local.additive.bb[source]¶
Bases:
AdditiveSingle-temperature blackbody photon spectrum.
- class bayspec.model.local.additive.mbb[source]¶
Bases:
AdditiveMulti-color (multi-temperature) blackbody (Hou et al. 2018,
10.3847/1538-4357/aadc07).
- class bayspec.model.local.additive.hlecpl[source]¶
Bases:
AdditiveHigh-latitude-emission curvature model for a cutoff power law (time-dependent).
- class bayspec.model.local.additive.hleband[source]¶
Bases:
AdditiveHigh-latitude-emission curvature model for a Band function (time-dependent).
- class bayspec.model.local.additive.zxhsync[source]¶
Bases:
AdditiveTime-dependent synchrotron model (ZXH provider, reads an external
.okernel).- property luminosity_distance¶
Luminosity distance in cm at the configured redshift (Planck18 cosmology).
bayspec.model.local.mathematic module¶
Dimensionless mathematical components, evaluated independently of energy.
- class bayspec.model.local.mathematic.const[source]¶
Bases:
MathematicScalar constant with a single free parameter
C.
Module contents¶
Local spectral components shipped with bayspec.
Re-exports every additive, multiplicative, and mathematical component
defined in the submodules and tracks them in local_models for
discoverability.
- class bayspec.model.local.cpl[source]¶
Bases:
AdditivePower law with an exponential high-energy cutoff (
vfv_peakaware).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.sbpl[source]¶
Bases:
AdditiveSmoothly broken power law (Kaneko et al. 2006,
10.1086/505911).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.csbpl[source]¶
Bases:
AdditiveSmoothly broken power law with an added exponential cutoff.
- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.dsbpl[source]¶
Bases:
AdditiveDouble smoothly broken power law (three segments, two smooth breaks).
- class bayspec.model.local.tsbpl[source]¶
Bases:
AdditiveTriple smoothly broken power law (four segments, three smooth breaks).
- class bayspec.model.local.sb2pl[source]¶
Bases:
AdditiveSmoothly broken power law variant (Ravasio et al. 2018,
10.1051/0004-6361/201732245).- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.csb2pl[source]¶
Bases:
AdditiveConvex 2-segment smoothly broken power law with an exponential cutoff.
- property params¶
Return the parameter dict chosen by the
vfv_peakconfig flag.
- class bayspec.model.local.sb3pl[source]¶
Bases:
AdditiveConvex 3-segment smoothly broken power law.
- class bayspec.model.local.sb4pl[source]¶
Bases:
AdditiveConvex 4-segment smoothly broken power law.
- class bayspec.model.local.band[source]¶
Bases:
AdditiveBand function (Band et al. 1993,
10.1086/172995).
- class bayspec.model.local.cband[source]¶
Bases:
AdditiveBand function augmented with an exponential high-energy cutoff.
- class bayspec.model.local.dband[source]¶
Bases:
AdditiveDouble Band function (two adjoining Band segments).
- class bayspec.model.local.mbb[source]¶
Bases:
AdditiveMulti-color (multi-temperature) blackbody (Hou et al. 2018,
10.3847/1538-4357/aadc07).
- class bayspec.model.local.hlecpl[source]¶
Bases:
AdditiveHigh-latitude-emission curvature model for a cutoff power law (time-dependent).
- class bayspec.model.local.hleband[source]¶
Bases:
AdditiveHigh-latitude-emission curvature model for a Band function (time-dependent).
- class bayspec.model.local.zxhsync[source]¶
Bases:
AdditiveTime-dependent synchrotron model (ZXH provider, reads an external
.okernel).- property luminosity_distance¶
Luminosity distance in cm at the configured redshift (Planck18 cosmology).
- class bayspec.model.local.katu[source]¶
Bases:
AdditiveExternal KATU provider invoked through a TOML-configured subprocess.
- class bayspec.model.local.const[source]¶
Bases:
MathematicScalar constant with a single free parameter
C.
- class bayspec.model.local.hecut[source]¶
Bases:
MultiplicativeHigh-energy exponential cutoff above a configurable threshold energy.
- class bayspec.model.local.wabs[source]¶
Bases:
MultiplicativeWisconsin ISM photoelectric absorption (
angrabundances).
- class bayspec.model.local.phabs[source]¶
Bases:
MultiplicativePhotoelectric absorption using the
asplabundance table.
- class bayspec.model.local.tbabs[source]¶
Bases:
MultiplicativeTuebingen-Boulder ISM absorption using the
wilmabundance table.
- class bayspec.model.local.tinvabs[source]¶
Bases:
MultiplicativeExponentially-decaying absorption column \(N_H(T) = N_{H,0} e^{-T/\tau}\).
Delegates the energy-dependent absorption to an inner
tbabswhile updating its \(N_H\) per uniqueTvalue.