Open tomvothecoder opened 1 year ago
By default, with e3sm_diags, a built in set of variables are defined for each diagonostics sets. To do a short run, e.g. only running through a subset of variables, a configuration file is needed to customize the run.
We should include Python scripts too.
Overview
I am executing
ex1.py
using a Python Interactive Console. I defined aparam.variables=["SST"]
to debug performance with a single variable.e3sm_diags
is running the SST variable 71 times for each variable diagnostic defined inlat_lon_model_vs_model.cfg
file (refer to log output at the bottom).Proposed Solution
Since I defined
param.variables = ["SST"]
in a Python script, the default diags cfg file should not be used (I think?).This means there should only be 1 CoreParameter object being created for the single "SST" variable.
Call stack
runner.run_diags()
self.get_final_parameters()
get_other_diags()
-- should be skipped since we defined diagnostics through the Python scriptget_other_diags()
- the default diags path is usedExample:
My version of ex1.py with updated paths (change to yours) and setting
param.variables=["SST"]
Output