Skip to content

Commit b953674

Browse files
authored
Merge pull request #935 from emkemp/fix/py39_patch
Fix several typos in S2S Python scripts.
2 parents 62d2adc + 6df611e commit b953674

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ldt/utils/usaf/s2s_ensrst/generate_ldtconfig_files_ensrst_nrt.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# * 14 Oct 2021: Eric Kemp/SSAI, first version.
1717
# * 01 Nov 2021: Eric Kemp/SSAI, addressed pylint format complaints.
1818
# * 15 Nov 2021: K. Arsenault/SAIC, made minor fixes and added config entries.
19+
# * 19 Nov 2021: Eric Kemp/SSAI, fixed typos reported by K. Arsenault and
20+
# R. Zamora.
1921
#
2022
#------------------------------------------------------------------------------
2123
"""
@@ -44,7 +46,7 @@
4446
"GNEMO" : 10,
4547
"GEOSv2" : 10,
4648
"CFSv2" : 24,
47-
"GFDL" : 30,
49+
"GFDL" : 15,
4850
}
4951

5052
# Options for scaling to 0.25 deg
@@ -123,7 +125,7 @@ def _customize_ldt_config(ldtconfig_lsm_target, lsm_rstdir, currentdate,
123125
rst_monname = currentdate.strftime("%b")
124126

125127
output_fname = f"{nmme_model}/LIS_RST_NOAHMP401_{rst_date}2345.ICS_" + \
126-
f"{prevdate.year:04d}.ens{num_ensmems:d}.nc"
128+
f"{rst_monname}{prevdate.year:04d}.ens{num_ensmems:d}.nc"
127129
lsm_logfile = \
128130
f"{nmme_model}/ldtlog_{_LSM_NAME}_{rst_monname}{prevdate.year:04d}"
129131

lvt/utils/usaf/s2spost/run_s2spost_9months.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# 24 Sep 2021: Eric Kemp (SSAI), first version.
1212
# 27 Oct 2021: Eric Kemp/SSAI, address pylint string objections.
1313
# 29 Oct 2021: Eric Kemp/SSAI, add config file.
14+
# 19 Nov 2021: Eric Kemp/SSAI, fixed typo reported by Kristi Arsenault.
1415
#
1516
#------------------------------------------------------------------------------
1617
"""
@@ -118,7 +119,7 @@ def _submit_batch_jobs(config, configfile, topdatadir,
118119
curdate = startdate
119120
for _ in range(0, total_months):
120121
txt = "[INFO] Submitting batch job for"
121-
txt += f" cf_{model_forcing}_{curdate.year:04d}{curdate.month:04d}"
122+
txt += f" cf_{model_forcing}_{curdate.year:04d}{curdate.month:02d}"
122123
print(txt)
123124
cmd = f"sbatch {scriptdir}/run_s2spost_1month.sh"
124125
cmd += f" {configfile} {scriptdir} {topdatadir}"

0 commit comments

Comments
 (0)