Skip to content

Commit

Permalink
Removing an unnecessary comment and updating the repr method for a cl…
Browse files Browse the repository at this point in the history
…ass.
  • Loading branch information
kmacdonald-stsci committed Jan 4, 2025
1 parent dcf3b0c commit df33059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/stcal/jump/twopoint_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def find_crs(dataa, group_dq, read_noise, twopt_p):
twopt_p.flag_4_neighbors,
twopt_p.max_jump_to_flag_neighbors,
twopt_p.min_jump_to_flag_neighbors,
# twopt_p.dqflags,
dqflags,
twopt_p.after_jump_flag_e1,
twopt_p.after_jump_flag_n1,
Expand Down
11 changes: 7 additions & 4 deletions src/stcal/jump/twopoint_difference_class.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# from .twopoint_difference import TwoPointParams

class TwoPointParams:
def __init__(self, jump_data=None, copy_arrs=False):
if jump_data is not None:
Expand Down Expand Up @@ -60,7 +58,9 @@ def __init__(self, jump_data=None, copy_arrs=False):
self.copy_arrs = copy_arrs

def __repr__(self):
ostr = f"normal_rej_thresh = {self.normal_rej_thresh}\n"
delim = "-" * 60
ostr = f"{delim}\n"
ostr += f"normal_rej_thresh = {self.normal_rej_thresh}\n"
ostr += f"two_diff_rej_thresh = {self.two_diff_rej_thresh}\n"
ostr += f"three_diff_rej_thresh = {self.three_diff_rej_thresh}\n"
ostr += f"nframes = {self.nframes}\n\n"
Expand All @@ -85,6 +85,9 @@ def __repr__(self):
ostr += f"minimum_groups = {self.minimum_groups}\n"
ostr += f"minimum_sigclip_groups = {self.minimum_sigclip_groups}\n"
ostr += f"only_use_ints = {self.only_use_ints}\n"
ostr += f"min_diffs_single_pass = {self.min_diffs_single_pass}\n"
ostr += f"min_diffs_single_pass = {self.min_diffs_single_pass}\n\n"

ostr += f"copy_arrs = {self.copy_arrs}\n"
ostr += f"{delim}\n"

return ostr

0 comments on commit df33059

Please sign in to comment.