Skip to content

Commit

Permalink
toast.ops.SimpleJumpCorrect: Remove unused medfilt_kernel_size option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Chiang committed Oct 18, 2024
1 parent 2a395dc commit ceb8d47
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/toast/ops/simple_jumpcorrect.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ class SimpleJumpCorrect(Operator):
help="Minimum number of good samples in an interval",
)

medfilt_kernel_size = Int(
101,
help="Median filter kernel width. Either 0 (full interval) "
"or a positive odd number",
)

@traitlets.validate("det_mask")
def _check_det_mask(self, proposal):
check = proposal["value"]
Expand All @@ -121,15 +115,6 @@ def _check_det_flag_mask(self, proposal):
raise traitlets.TraitError("Det flag mask should be a positive integer")
return check

@traitlets.validate("medfilt_kernel_size")
def _check_medfilt_kernel_size(self, proposal):
check = proposal["value"]
if check < 0:
raise traitlets.TraitError("medfilt_kernel_size cannot be negative")
if check > 0 and check % 2 == 0:
raise traitlets.TraitError("medfilt_kernel_size cannot be even")
return check

def __init__(self, **kwargs):
super().__init__(**kwargs)
self.net_factors = []
Expand Down

0 comments on commit ceb8d47

Please sign in to comment.