Ver código fonte

removed the error with divide by zero at initialization for framerate calculation

meghana-soleil-pc 3 anos atrás
pai
commit
4987c11cfc
5 arquivos alterados com 5 adições e 3 exclusões
  1. 4 2
      GUI.py
  2. 1 1
      strip_data.py
  3. BIN
      strip_data.pyc
  4. BIN
      temp.bin
  5. BIN
      temp_bg.bin

+ 4 - 2
GUI.py

@@ -1116,7 +1116,7 @@ class Ui_MainWindow(object):
                 self.textEdit.insertPlainText(subprocess.check_output(['./status.sh']))
                 check_status()
                 led_update()
-                framerate_calc()
+                #framerate_calc()
 
         def init_board_ex_rf():
             self.textEdit.clear()
@@ -1137,7 +1137,7 @@ class Ui_MainWindow(object):
                 self.textEdit.insertPlainText(subprocess.check_output(['./status.sh']))
                 check_status()
                 led_update()
-                framerate_calc()
+                #framerate_calc()
 
 #######################################################################################################################
 
@@ -1443,8 +1443,10 @@ class Ui_MainWindow(object):
                 else:
                     if (status_led[4] != '0'):
                         self.led1.value=True
+                        self.textEdit.append(u'\u26A0' + 'DDR not ready, RE-INITIALIZE')
                     if (status_led[5] != '0'):
                         self.led2.value=True
+                        self.textEdit.append(u'\u26A0' + 'PCIe link lost restart computer')
                     if (status_led[17] != '0'):
                         self.led3.value=True
                     if (status_led[18] != '0'):

+ 1 - 1
strip_data.py

@@ -109,7 +109,7 @@ def strip_data(filename, number_pixels, orbits, offset = None):
         data = data[:,index_interleave]
 
         ###### filter out the saw pattern ####################
-        data = ss.savgol_filter(data, 9, 3) # window size 51, polynomial order 3
+        data = ss.savgol_filter(data, 15, 3) # window size 51, polynomial order 3
 
         orb, pix = np.shape(data)
 

BIN
strip_data.pyc


BIN
temp.bin


BIN
temp_bg.bin