|
@@ -38,10 +38,12 @@ class ChannelCovPainter(ChannelPainter):
|
|
|
left_len = self._start_time - _start_time
|
|
|
right_len = _end_time - self._end_time
|
|
|
|
|
|
+ stime = lambda t: time.strftime('%d-%H:%M:%S', time.localtime(t))
|
|
|
+ logger.debug("near_stamp start_time %d , %s end_time=%s", self._start_time, stime(self._start_time), stime(self._end_time))
|
|
|
+
|
|
|
chname_ratios = []
|
|
|
for _chname, _card_type, _spec, _data in gen:
|
|
|
succ, count, y = calc_cov_chratios(_data, pos_map, _start_time - day_stamp, _end_time - day_stamp, window, left_len,right_len)
|
|
|
-
|
|
|
label, ratio = self._label(chname=_chname, succ=succ, count=count, card_type=_card_type, spec=_spec)
|
|
|
ax.plot(x, y, ls='-', label=label)
|
|
|
if _card_type is None and _spec is None and _chname != 'all':
|