Skip to content

Commit 669a0ba

Browse files
authored
Merge branch 'dswx-ni-calval' into dswx_ni_masking_fast
2 parents af7e570 + ebe684b commit 669a0ba

File tree

10 files changed

+2179
-382
lines changed

10 files changed

+2179
-382
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,

0 commit comments

Comments
 (0)