File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,7 @@ def process_results(self, output_fn):
424424 # end if
425425
426426 # compute total coverage fraction
427- total_coverage_fraction = total_coverage * 86400 / \
428- (self .et_list [- 1 ] - self .st_list [0 ])
427+ total_coverage_fraction = total_coverage / float (spec_count )
429428
430429 # compute health for summary plot
431430 health = (((1 - mean_deviation ) + total_coverage_fraction ) / 2. ) * 100
@@ -516,7 +515,8 @@ def add_image(ax, img):
516515 # generate grids of daily plots
517516 nrows = 11
518517 ncols = 4
519- nplots = (self .et_list [- 1 ] - self .st_list [0 ]) / 86400
518+ nplots = np .sum ([len (img ) > 0 for _ , img in png_dict .items ()])
519+ sorted_keys = sorted (list (png_dict .keys ()))
520520 plots_per_page = nrows * ncols
521521
522522 done = False
@@ -543,9 +543,8 @@ def add_image(ax, img):
543543
544544 ax = axes [irow , icol ]
545545
546- key = self .st_list [iplot ].timestamp
547- img = png_dict [key ]
548- if (img is not None ):
546+ img = png_dict [sorted_keys [iplot ]]
547+ if (len (img ) > 0 ):
549548 add_image (ax , img )
550549 # end if
551550 # end for
You can’t perform that action at this time.
0 commit comments