_mjd_to_sec¶
- ell1fit.phase_utils._mjd_to_sec(mjd, mjdref)[source]¶
Convert MJD timestamps to seconds from
mjdref.Accepts plain Python floats as well as numpy values. The previous implementation called
.astypeon the result, which works only for numpy types and raisedAttributeErroron a float – something that never surfaced in normal use because PINT hands backnp.float64, but which bit immediately when driving the pipeline from a hand-built parameter dict.