File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,10 @@ def main():
174
174
# Call UFS_case_gen.py
175
175
case_name = args .case_name + "_n" + str (pt ).zfill (3 )
176
176
file_scminput = "../../data/processed_case_input/" + case_name + "_SCM_driver.nc"
177
- if (lons and lats ):
177
+ if (' lons' in locals () and ' lats' in locals () ):
178
178
loc_string = "-l " + str (lons [pt ]) + " " + str (lats [pt ])
179
179
else :
180
- loc_string = "-ij " + str (i_indices [pt ]) + " " + str (j_indices [pt ]) + "-t " + str (args .tile )
180
+ loc_string = "-ij " + str (i_indices [pt ]) + " " + str (j_indices [pt ]) + " -t " + str (args .tile )
181
181
com = "./UFS_case_gen.py " + loc_string + \
182
182
" -i " + args .dir_ic + " -g " + args .dir_grid + " -f " + args .dir_forcing + " -n " + case_name + com_config
183
183
print (com )
You can’t perform that action at this time.
0 commit comments