Skip to content

Commit 49bb2e7

Browse files
rolfjlRolf Johan Lorentzen
and
Rolf Johan Lorentzen
authored
Bug fix in localization input (#92)
Co-authored-by: Rolf Johan Lorentzen <[email protected]>
1 parent 4e32996 commit 49bb2e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pipt/misc_tools/cov_regularization.py

+5
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ def __init__(self, parsed_info, assimIndex, data_typ, free_parameter, ne):
145145
# generate the unique localization masks. Recall that the parameters: "taper_type", "anisotropi", and "range"
146146
# gives a unique mask.
147147

148+
# Check for 'threshold' key in parsed_info and copy it to init_local if found
149+
for elem in parsed_info:
150+
if 'threshold' in elem[0].lower():
151+
init_local['threshold'] = elem[1]
152+
148153
init_local['mask'] = {}
149154
# loop over all localization info to ensure that all the masks have been generated
150155
# Store masks with the key ('taper_function', 'anisotropi', 'range')

0 commit comments

Comments
 (0)