Skip to content

Commit

Permalink
Add useSavedResults to command line opts
Browse files Browse the repository at this point in the history
  • Loading branch information
teopb committed Jun 6, 2024
1 parent 1092dfa commit 9d38818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyCECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main(argv):
minPCFail= minRunFail= numRunFile= popens mpas pop cam
jsonfile= mpi_enable nbin= minrange= maxrange= outfile=
casejson= npick= pop_tol= web_enabled
base_year= pop_threshold= printStdMean fIndex= lev= eet= saveResults= json_case= saveEET="""
base_year= pop_threshold= printStdMean fIndex= lev= eet= saveResults= json_case= saveEET= useSavedResults="""
optkeys = s.split()
try:
opts, args = getopt.getopt(argv, 'h', optkeys)
Expand Down Expand Up @@ -71,6 +71,7 @@ def main(argv):
opts_dict['saveResults'] = ''
opts_dict['base_year'] = 1
opts_dict['saveEET'] = ''
opts_dict['useSavedResults'] = ''

# Call utility library getopt_parseconfig to parse the option keys
# and save to the dictionary
Expand Down Expand Up @@ -415,7 +416,7 @@ def main(argv):
new_scores, sum_std_mean, comp_std_gm = pyEnsLib.standardized(
means, mu_gm, sigma_gm, loadings_gm, ens_var_name, opts_dict, me
)

run_index, decision = pyEnsLib.comparePCAscores(
ifiles, new_scores, sigma_scores_gm, opts_dict, me
)
Expand Down
3 changes: 3 additions & 0 deletions pyEnsLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,9 @@ def CECT_usage():
print(
' --eet <num> : enable Ensemble Exhaustive Test (EET) to compute failure percent of <num> runs (greater than or equal to numRunFile)'
)
print(
' --useSavedResults savefile: Use results from a netcdf file savefile with scores and std global means. This prevents the need to recalculate spatial means.'
)

print(' ----------------------------')
print(' Args relevant to MPAS-CECT only:')
Expand Down

0 comments on commit 9d38818

Please sign in to comment.