pipt.pipt_init
Descriptive description.
1"""Descriptive description.""" 2 3# External imports 4from fnmatch import filter # to check if wildcard name is in list 5from importlib import import_module 6 7 8def init_da(da_input, fwd_input, sim): 9 "initialize the ensemble object based on the DA inputs" 10 11 assert len( 12 da_input['daalg']) == 2, f"Need to input assimilation type and update method, got {da_input['daalg']}" 13 14 da_import = getattr(import_module('pipt.update_schemes.' + 15 da_input['daalg'][0]), f'{da_input["daalg"][1]}_{da_input["analysis"]}') 16 17 # Init. update scheme class, and get an object of that class 18 return da_import(da_input, fwd_input, sim)
def
init_da(da_input, fwd_input, sim):
9def init_da(da_input, fwd_input, sim): 10 "initialize the ensemble object based on the DA inputs" 11 12 assert len( 13 da_input['daalg']) == 2, f"Need to input assimilation type and update method, got {da_input['daalg']}" 14 15 da_import = getattr(import_module('pipt.update_schemes.' + 16 da_input['daalg'][0]), f'{da_input["daalg"][1]}_{da_input["analysis"]}') 17 18 # Init. update scheme class, and get an object of that class 19 return da_import(da_input, fwd_input, sim)
initialize the ensemble object based on the DA inputs