CSMConstraints

class mosfit.modules.CSMConstraints(**kwargs)[source]

Bases: Constraint

CSM constraints.

  1. R0 <= Rph <= Rcsm. The photospheric radius is within the CSM

  2. td < ts. The diffusion time is less than the shock crossing time.

The self-similar constants (beta_F, A) are interpolated in (n, s) from the same table the CSM engine uses, so the constraint is consistent with the engine for any 0 <= s <= 2 (previously s = 2 values were used for all s != 0).

Note: this module is currently not used by the csm or csmni models. It was listed in both, but its score modifier never reached the likelihood (the generic constraint module from model.json, which returns 0, overwrote it), so it has never affected a fit. It was removed from those models to make that explicit. To enforce it, add it back and point the model’s likelihood at it, e.g. "likelihood": {"kind": "objective", "inputs": ["diagonal", "csmconstraints"]}. Note that in a large SN IIn posterior sample most draws violate condition 2, and its diffusion time differs from the one used by diffusion_csm.

Methods Summary

process(**kwargs)

Process module.

Methods Documentation

process(**kwargs)[source]

Process module. Add constraints below.