Skip to content

Commit

Permalink
Keep jump flags going into likelihood-based fitting algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
drlaw1558 committed Feb 11, 2025
1 parent 651015d commit f023621
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/stcal/ramp_fitting/likely_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def likely_ramp_fit(ramp_data, readnoise_2d, gain_2d):
if ngroups < LIKELY_MIN_NGROUPS:
raise ValueError("Likelihood fit requires at least 4 groups.")


remove_jump_detection_flags(ramp_data)

readtimes = get_readtimes(ramp_data)

covar = Covar(readtimes)
Expand Down Expand Up @@ -406,23 +403,6 @@ def compute_image_info(integ_class, ramp_data):

return (slope, dq, var_p, var_r, err)


def remove_jump_detection_flags(ramp_data):
"""
Remove the JUMP_DET flag from the group DQ array
Parameters
----------
ramp_data : RampData
Input data necessary for computing ramp fitting.
"""
jump = ramp_data.flags_jump_det
gdq = ramp_data.groupdq
wh_jump = np.where(np.bitwise_and(gdq.astype(np.uint32), jump))
gdq[wh_jump] -= jump
ramp_data.groupdq = gdq


def determine_diffs2use(ramp_data, integ, row, diffs):
"""
Compute the diffs2use mask based on DQ flags of a row.
Expand Down

0 comments on commit f023621

Please sign in to comment.