Skip to content

Commit

Permalink
add local import of fit_ramps to avoid circular import error
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 22, 2024
1 parent 4ab327c commit 112aa5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stcal/ramp_fitting/likely_algo_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 112aa5b

Please sign in to comment.