diff --git a/src/stcal/ramp_fitting/likely_algo_classes.py b/src/stcal/ramp_fitting/likely_algo_classes.py index 628fe1a1..2d9e472a 100644 --- a/src/stcal/ramp_fitting/likely_algo_classes.py +++ b/src/stcal/ramp_fitting/likely_algo_classes.py @@ -278,6 +278,9 @@ def calc_bias(self, countrates, sig, cvec, da=1e-7): Bias of the best-fit count rate from using cvec plus the observed resultants to estimate the covariance matrix. """ + + from .likely_fit import fit_ramps + alpha = countrates[np.newaxis, :] * self.alpha_phnoise[:, np.newaxis] alpha += sig**2 * self.alpha_readnoise[:, np.newaxis] beta = countrates[np.newaxis, :] * self.beta_phnoise[:, np.newaxis]