Skip to content

Commit fafd7d9

Browse files
author
Rolf Johan Lorentzen
committed
Include multilevel code from 4DSEIS project
1 parent 1b0798c commit fafd7d9

File tree

4 files changed

+1175
-7
lines changed

4 files changed

+1175
-7
lines changed

pipt/misc_tools/extract_tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ def extract_multilevel_info(keys: Union[dict, list]) -> dict:
127127
Extract the info needed for ML simulations. Note if the ML keyword is not in keys_en we initialize
128128
such that we only have one level -- the high fidelity one
129129
'''
130-
if isinstance(keys, list):
131-
ml_info = list_to_dict(keys)
130+
ml_info = keys['multilevel']
131+
if isinstance(ml_info, list):
132+
ml_info = list_to_dict(ml_info)
132133
assert isinstance(ml_info, dict)
133134

134135
# Set levels

0 commit comments

Comments
 (0)