Skip to content

Commit 19471e3

Browse files
author
Rolf Johan Lorentzen
committed
Fix some parsing issues
1 parent a361ed0 commit 19471e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pipt/misc_tools/cov_regularization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def __init__(self, parsed_info: Union[dict,list], assimIndex: list, data_typ: li
7979
# Check localization method/type
8080
try:
8181
if 'autoadaloc' in parsed_info:
82-
init_local = {'autoadaloc': True, 'nstd': parsed_info['autoadaloc']}
82+
init_local['autoadaloc'] = True
83+
init_local['nstd'] = parsed_info['autoadaloc']
8384
if 'type' in parsed_info:
8485
init_local['type'] = parsed_info['type']
8586
elif 'localanalysis' in parsed_info:

pipt/misc_tools/extract_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def extract_prior_info(keys: dict) -> dict:
6060
# loop over keys in prior
6161
for key in prior.keys():
6262
# ensure that entry is a list
63-
if (not isinstance(prior[key], list)) and (key != 'mean'):
63+
if (not isinstance(prior[key], list)) and (key != 'mean') and (key != 'active'):
6464
prior[key] = [prior[key]]
6565

6666
# change the name of some keys

0 commit comments

Comments
 (0)