stanley-king %!s(int64=2) %!d(string=hai) anos
pai
achega
b31eced85b
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 1 1
      plot/refill/NetcheckCovPainter.py
  2. 3 2
      plot/refill/algorithm.py

+ 1 - 1
plot/refill/NetcheckCovPainter.py

@@ -39,7 +39,7 @@ class NetcheckCovPainter(NetcheckPainter):
         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 left_len=%d right_len=%d",
+        logger.debug("near_stamp start_time %y-%m-%d, %s end_time=%s left_len=%d right_len=%d",
                      self._start_time, stime(self._start_time), stime(self._end_time),left_len,right_len)
 
         chname_ratios = []

+ 3 - 2
plot/refill/algorithm.py

@@ -188,9 +188,10 @@ def calc_cov_netfail(data, pos_map, start, end, window, left_len,right_len):
 
     succ = view[0, :]
     fail = view[1, :]
-    succ   = np.convolve(succ, window, 'same')
+    succ = np.convolve(succ, window, 'same')
     fail = np.convolve(fail, window, 'same')
-    succ   = succ[left_len:end - start - right_len]
+
+    succ = succ[left_len:end - start - right_len]
     fail = fail[left_len:end - start - right_len]
 
     fail = fail / (fail + succ + 0.0000001)