boa.wrapper_utils#

Optimization wrapper for FETCH3.

These functions provide the interface between the optimization tool and FETCH3 - Setting up optimization experiment - Creating directories for model outputs of each iteration - Writing model configuration files for each iteration - Starting model runs for each iteration - Reading model outputs and observation data for model evaluation - Defines objective function for optimization, and other performance metrics of interest - Defines how results of each iteration should be evaluated

Functions

boa_params_to_wpr

cd_and_cd_back

cd_and_cd_back_dec

exp_dir_from_exp_dir

exp_dir_from_working_dir

get_dt_now_as_str

get_trial_dir

Return a directory for a trial, Trial directory is named with the trial index.

load_json

Read experiment configuration file for setting up the optimization.

load_jsonlike

Read experiment configuration file for setting up the optimization.

load_yaml

Read experiment configuration file for setting up the optimization.

make_experiment_dir

Creates directory for the experiment and returns the path.

make_trial_dir

Create a directory for a trial, and return the path to the directory.

normalize_config

wpr_params_to_boa

param params

dictionary containing parameters

write_configs

Write model configuration file for each trial (model run).

zfilled_trial_index

Return trial index left passed with zeros of length fill_size