Skip to content

Commit

Permalink
updated change log, fixed logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Jan 14, 2022
1 parent cb0af9e commit 1d3063b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 9 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
0.6.0 (unreleased)
==================
0.6.0 (22-01-14)
================

ramp_fitting
------------

- Adding GLS code back to ramp fitting. [#64]

jump
----

- Fix issue in jump detection that occured when there were only 2 usable
differences with no other groups flagged. This PR also added tests and
fixed some of the logging statements in twopoint difference. [#74]

0.5.1 (2022-01-07)
==================

Expand Down
10 changes: 4 additions & 6 deletions src/stcal/jump/twopoint_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ def find_crs(dataa, group_dq, read_noise, normal_rej_thresh,
row2cr, col2cr = np.where(np.logical_and(ndiffs - num_unusable_groups == 2,
max_ratio > two_diff_rej_thresh))

log.info(f'From highest outlier Two-point found {len(row4cr)} pixels \
with at least one CR and at least five groups')
log.info(f'From highest outlier Two-point found {len(row3cr)} pixels \
with at least one CR and four groups')
log.info(f'From highest outlier Two-point found {len(row2cr)} pixels \
with at least one CR and three groups')
log_str = 'From highest outlier, two-point found {} pixels with at least one CR from {} groups.'
log.info(log_str.format(len(row4cr), 'five'))
log.info(log_str.format(len(row3cr), 'four'))
log.info(log_str.format(len(row2cr), 'three'))

# get the rows, col pairs for all pixels with at least one CR
all_crs_row = np.concatenate((row4cr, row3cr, row2cr))
Expand Down

0 comments on commit 1d3063b

Please sign in to comment.