Skip to content

Commit 798fbeb

Browse files
author
Jungkyo Jung
committed
fix typo
1 parent c8c9d1c commit 798fbeb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/dswx_sar/common/_initial_threshold.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def determine_threshold(
768768
step_histogram=0.1,
769769
bounds=None,
770770
method='ki',
771-
mutli_threshold=True,
771+
multi_threshold=True,
772772
adjust_if_nonoverlap=True,
773773
adjust_thresh_low_dist_percent=None,
774774
adjust_thresh_high_dist_percent=None,
@@ -890,7 +890,7 @@ def determine_threshold(
890890

891891
# if estimated threshold is higher than bounds,
892892
# re-estimate threshold assuming tri-mode distribution
893-
if threshold > bounds[1] and mutli_threshold:
893+
if threshold > bounds[1] and multi_threshold:
894894
try:
895895
thresholds = threshold_multiotsu(intensity_sub)
896896

@@ -1681,7 +1681,7 @@ def run_sub_block(intensity,
16811681
threshold_cfg = processing_cfg.initial_threshold
16821682
tile_selection_method = threshold_cfg.selection_method
16831683
threshold_method = threshold_cfg.threshold_method
1684-
mutli_threshold_flag = threshold_cfg.multi_threshold
1684+
multi_threshold_flag = threshold_cfg.multi_threshold
16851685
threshold_bounds_co_pol = threshold_cfg.threshold_bounds.co_pol
16861686
threshold_bounds_cross_pol = threshold_cfg.threshold_bounds.cross_pol
16871687

@@ -1773,7 +1773,7 @@ def run_sub_block(intensity,
17731773
step_histogram=step_histogram,
17741774
bounds=[threshold_temp_min, threshold_temp_max],
17751775
method=threshold_method,
1776-
mutli_threshold=mutli_threshold_flag,
1776+
multi_threshold=multi_threshold_flag,
17771777
adjust_if_nonoverlap=adjust_threshold_flag,
17781778
adjust_thresh_low_dist_percent=low_dist_percentile,
17791779
adjust_thresh_high_dist_percent=high_dist_percentile,

src/dswx_sar/nisar/initial_threshold.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def determine_threshold(
178178
step_histogram=0.1,
179179
bounds=None,
180180
method='ki',
181-
mutli_threshold=True,
181+
multi_threshold=True,
182182
adjust_if_nonoverlap=True,
183183
adjust_thresh_low_dist_percent=None,
184184
adjust_thresh_high_dist_percent=None,
@@ -321,7 +321,7 @@ def determine_threshold(
321321

322322
# if estimated threshold is higher than bounds,
323323
# re-estimate threshold assuming tri-mode distribution
324-
if threshold > bounds[1] and mutli_threshold:
324+
if threshold > bounds[1] and multi_threshold:
325325
try:
326326
thresholds = threshold_multiotsu(intensity_sub)
327327

@@ -755,7 +755,7 @@ def run_sub_block(intensity,
755755
threshold_cfg = processing_cfg.initial_threshold
756756
tile_selection_method = threshold_cfg.selection_method
757757
threshold_method = threshold_cfg.threshold_method
758-
mutli_threshold_flag = threshold_cfg.multi_threshold
758+
multi_threshold_flag = threshold_cfg.multi_threshold
759759
threshold_bounds_co_pol = threshold_cfg.threshold_bounds.co_pol
760760
threshold_bounds_cross_pol = threshold_cfg.threshold_bounds.cross_pol
761761

@@ -853,7 +853,7 @@ def run_sub_block(intensity,
853853
step_histogram=step_histogram,
854854
bounds=[threshold_temp_min, threshold_temp_max],
855855
method=threshold_method,
856-
mutli_threshold=mutli_threshold_flag,
856+
multi_threshold=multi_threshold_flag,
857857
adjust_if_nonoverlap=adjust_threshold_flag,
858858
adjust_thresh_low_dist_percent=low_dist_percentile,
859859
adjust_thresh_high_dist_percent=high_dist_percentile,

0 commit comments

Comments
 (0)