Skip to content

Commit f2427fb

Browse files
committed
cleaned up obsolete if block (code in if and else block was identical) (Get_ObsFcstAna_stats.py)
1 parent 3acc2a9 commit f2427fb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

GEOSldas_App/util/postproc/ObsFcstAna_stats/Get_ObsFcstAna_stats.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,10 @@ def main():
7474

7575
if plot_maps:
7676
# Compute long-term temporal stats and plot maps
77-
if len(exp_list) >1 :
78-
stats_file = out_path + 'tmp_stats_'+exp_list[0]['exptag']+ \
79-
'_'+start_time.strftime('%Y%m%d')+'_'+ \
80-
(end_time+timedelta(days=-1)).strftime('%Y%m%d')+'.nc4'
81-
else:
82-
stats_file = out_path + 'tmp_stats_'+exp_list[0]['exptag']+'_'+ start_time.strftime('%Y%m%d')+'_'+ \
83-
(end_time+timedelta(days=-1)).strftime('%Y%m%d')+'.nc4'
77+
78+
# Get output file name
79+
stats_file = out_path + 'tmp_stats_'+exp_list[0]['exptag']+ '_'+start_time.strftime('%Y%m%d')+'_'+ \
80+
(end_time+timedelta(days=-1)).strftime('%Y%m%d')+'.nc4'
8481

8582
# temporal_stats is a dictionary that contains all mean/variances fields for computing long-term O-F/O-A stats
8683
# each field has the dimension [N_tile, N_species]

0 commit comments

Comments
 (0)