Matze 6 роки тому
батько
коміт
737e78bf37
2 змінених файлів з 5 додано та 4 видалено
  1. 5 1
      KCG/base/backend/board/board_config.py
  2. 0 3
      KCG/base/plotWidget.py

+ 5 - 1
KCG/base/backend/board/board_config.py

@@ -90,7 +90,11 @@ class BoardConfiguration(QtGui.QWidget):
         }
 
     def _get_board_version(self):
-        self._config["board_version"] = int(pci.read(self.identifier, reg='0x9030')[0])
+        try:
+            self._config["board_version"] = int(pci.read(self.identifier, reg='0x9030')[0])
+        except Exception as e:
+            self._config["board_version"] = 5
+
 
     def is_KAPTURE2(self):
         return self._config["board_version"] >4

+ 0 - 3
KCG/base/plotWidget.py

@@ -396,7 +396,6 @@ class SubPlotWidget(pg.GraphicsLayoutWidget):
         :param autorange: (bool) whether to perform a autorange or not
         :return: -
         """
-        print("ploting", self.plotType)
         self.error_label.hide()
         self.no_data_label.hide()
         for item in self.plotItemPlot:
@@ -492,7 +491,6 @@ class SubPlotWidget(pg.GraphicsLayoutWidget):
                     raise
             self.plotItemPlotScatter.clear()
             self.plotItemPlotScatter1.clear()
-            print(len(data))
             if len(data) < 9:
                 for i in range(len(data)):
                     self.plotItemPlot[i].show()
@@ -749,7 +747,6 @@ class PlotWidget(kcgw.KCGWidgets):
             if len(self.adc) == 0:
                 self.adc = 1
                 self.adcCheckBox[0].setChecked(True)
-            print(self.adc)
         else:
             self.adc = self.group.checkedId()
         self.change_identifier_text()