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):
424
424
# end if
425
425
426
426
# 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 )
429
428
430
429
# compute health for summary plot
431
430
health = (((1 - mean_deviation ) + total_coverage_fraction ) / 2. ) * 100
@@ -516,7 +515,8 @@ def add_image(ax, img):
516
515
# generate grids of daily plots
517
516
nrows = 11
518
517
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 ()))
520
520
plots_per_page = nrows * ncols
521
521
522
522
done = False
@@ -543,9 +543,8 @@ def add_image(ax, img):
543
543
544
544
ax = axes [irow , icol ]
545
545
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 ):
549
548
add_image (ax , img )
550
549
# end if
551
550
# end for
You can’t perform that action at this time.
0 commit comments