stanley-king 3 年之前
父節點
當前提交
39a31d0833
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      plot/MchDataCenter.py

+ 7 - 0
plot/MchDataCenter.py

@@ -154,6 +154,13 @@ class MchDataCenter(object):
                 result.append(sub.name)
         return result
 
+    def all_none(self, **kwargs):
+        for key, val in kwargs.items():
+            if val is not None:
+                return False
+
+        return True
+
     def draw_plot(self, start_time, interval=300, **kwargs):
         logger = logging.getLogger('app')
         hfive = h5py.File(self._file_name, 'r')