stanley-king 2 years ago
parent
commit
aec8d92a11
2 changed files with 6 additions and 1 deletions
  1. 3 1
      plot/refill/ChannelCovPainter.py
  2. 3 0
      plot/refill/ChannelCumPainter.py

+ 3 - 1
plot/refill/ChannelCovPainter.py

@@ -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':

+ 3 - 0
plot/refill/ChannelCumPainter.py

@@ -35,6 +35,9 @@ class ChannelCumPainter(ChannelPainter):
         else:
             window = None
 
+        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_chratios(_data, pos_map, self._start_time - day_stamp, self._end_time - day_stamp)