138 Комити eb6fc4463b ... 4daf9f150a

Аутор SHA1 Порука Датум
  Miriam Brosi 4daf9f150a rebase clean up пре 6 година
  Matze fff0f02a0b Bugfix пре 6 година
  Matze 4a1c19db63 Added new KAPTURE 2 Timings пре 6 година
  Matze 737e78bf37 removed some printing пре 6 година
  Matze 60e7355666 bugfix in sequences_5.json пре 6 година
  Matze 1e6c4859ef AdcWidget finished, Train Plotting changed пре 6 година
  Matze 59110478a7 New Features - new adc_widget for setting the new ADC parameters пре 6 година
  Matze 961473d133 Bugfixes пре 6 година
  Matze 75480a69bf python 2 compatibility пре 6 година
  Matze 50a30f9357 bugfix fix fix xD typing error пре 6 година
  Matze 1db90addb0 bugfix fix .... пре 6 година
  Matze 193208b3fc Bugfixes from first test on Hardware & Python 2 compatibility пре 6 година
  Matze ec1ac5e291 removed some debug printing пре 6 година
  Matze 22134c0ca4 Bugfixes on Epics пре 6 година
  Matze 107ae51623 file had unsaved changes пре 6 година
  Matthias Martin d632fbab9e deactivated pci dummy пре 6 година
  Matze c832d407f3 Bugfixes in bif write_values пре 6 година
  Matze 38d68e1d7e added Widget to read/write register (for developing only) пре 6 година
  Matze f1ba704dc9 config update vereinheitlicht пре 6 година
  Matze f5be593a34 Dynamic sequences and Buttons working пре 6 година
  Matthias Martin 08dcb3c42f working on Dynamic Buttons for Sequences. Not working by now пре 6 година
  Matthias Martin 1bdbab5db2 reading startup sequences out of json file. пре 6 година
  Matze 969b0268fc save пре 6 година
  Matze 46b5f2b4e5 put sequences in json пре 6 година
  Matthias Martin c0740781b5 latest пре 6 година
  Matthias Martin aeacad5e05 comment own features пре 6 година
  Matthias Martin 30494dd412 beginning with kapture 2 changes пре 6 година
  Matthias Martin cc17ffecd6 nothing ;) пре 6 година
  Matthias Martin 4eeb74630e added Epics config editing пре 6 година
  Matze 9740dee81d update ConfigSetup & changed Orbits to turns пре 6 година
  Matthias Martin 62fc3f921f minor fixes in EpicsWidget пре 6 година
  Matze b0a94d0553 merge fixes пре 6 година
  Timo Dritschler c15d384986 added. py to kcg for Windows compliance пре 6 година
  Timo Dritschler dcfd81c54c Changed SYNC sequence to new frequency пре 6 година
  Timo Dritschler edce02bba9 Removed dma_flush for Picosecond KAPTURE пре 6 година
  Timo Dritschler bcdd01f280 Fixed math.floor should be int пре 6 година
  Timo Dritschler da849d8f37 Some picosecond KAPTURE specific changes пре 6 година
  Matthias Martin 56736c44f9 PV Monitoring working пре 6 година
  Matthias Martin 5f86d82cb6 Epics пре 6 година
  Matthias Martin ddce9f1faa rename пре 6 година
  Matthias Martin 6cf2484291 Widget allows to add and change PV List. пре 6 година
  Matthias Martin f98e5e81bf Started interface пре 6 година
  Matthias Martin 84dc10d795 Epics is back пре 6 година
  Matthias Martin d05dff2f27 Epics removed -- will be in new widged пре 6 година
  Matthias Martin 4a9494176e First changes. пре 6 година
  Martin, Matthias 9014999890 Update kcg пре 6 година
  Patrick Schreiber b643c96521 Update README.md пре 6 година
  Patrick Schreiber 134c40f493 Optionally include Singleread in LeftBar пре 6 година
  Patrick Schreiber 6382d14818 Update Version пре 6 година
  Patrick Schreiber 88a6b35c8c Fix continous read interval пре 6 година
  Patrick Schreiber 3f6203a370 Remove Bug when aborting to save config пре 6 година
  Miriam Brosi b20006bda3 Removed possible usage of reikna fft пре 6 година
  Patrick Schreiber e09e621741 Fix Save/Load Config пре 7 година
  Miriam Brosi d357eb520b single read tick for board_id 0 if on by default now пре 7 година
  Miriam Brosi e53e106515 fixed bug: acquisition with ext. trigger was running in main thread, now fixed, now also stop acquisition working пре 7 година
  Miriam Brosi 5a1ec6fc34 implemented workaround: acquisition with ext. trigger method2 now working; but stop acquisition signal still delayed пре 7 година
  Miriam Brosi fdad6c5fad fixed board.flush_dma function and added calls at begining of acquisition and begining and end of external trigger function пре 7 година
  Lorenzo Rota 33118fc085 added logging info that initialisation was skipped and the configuration and status was read from KAPTURE пре 7 година
  Miriam Brosi 9a1c654e1b improved update of statusbar after message 'Data is inconsistent' пре 7 година
  Matze eb6fc4463b Bugfix пре 6 година
  Matze 47cd748593 Bugfix пре 6 година
  Matze a788f6c25b Added new KAPTURE 2 Timings пре 6 година
  Matze 27a0e05d6a Added new KAPTURE 2 Timings пре 6 година
  Matze 3e6141a209 removed some printing пре 6 година
  Matze c5cee607f1 removed some printing пре 6 година
  Matthias Martin 8c8271c186 New Features: ADC Widget, Train Plotting with multi ADC пре 6 година
  Matze dcebd4de9c bugfix in sequences_5.json пре 6 година
  Matze 3fd3c7d775 AdcWidget finished, Train Plotting changed пре 6 година
  Matze d69dae4d86 New Features - new adc_widget for setting the new ADC parameters пре 6 година
  Matze 90ba598a47 Bugfixes пре 6 година
  Matthias Martin fed640c722 python 2 compatibility пре 6 година
  Matze 5d55267e7b python 2 compatibility пре 6 година
  Matthias Martin d8dbce8cbc Merge branch 'kapture2' into IPE пре 6 година
  Matze 05dcb389dc bugfix fix fix xD typing error пре 6 година
  Matthias Martin 219b206784 bugfix fix пре 6 година
  Matze a820936130 bugfix fix .... пре 6 година
  Matthias Martin cd08c2a861 Bugfixes from first test on Hardware & Python 2 compatibility пре 6 година
  Matze e07afc57b9 Bugfixes from first test on Hardware & Python 2 compatibility пре 6 година
  Matthias Martin 770fa5d779 Bug fixes пре 6 година
  Matze 91e5ea6898 removed some debug printing пре 6 година
  Matze a5b5774558 Bugfixes on Epics пре 6 година
  Matze 7942f57356 file had unsaved changes пре 6 година
  Matthias Martin 7fe79c163f deactivated pci dummy пре 6 година
  Matthias Martin 0302670c60 Bug fixes for IPE пре 6 година
  Matze cd767d572b Bugfixes in bif write_values пре 6 година
  Matthias Martin 0bf79206b0 Merge branch 'kapture2' into IPE пре 6 година
  Matze 2b9dff0805 added Widget to read/write register (for developing only) пре 6 година
  Matze 503d136d23 config update vereinheitlicht пре 6 година
  Matze 9bfd9c8118 Dynamic sequences and Buttons working пре 6 година
  Matthias Martin ea1f403719 working on Dynamic Buttons for Sequences. Not working by now пре 6 година
  Matthias Martin ff0fb1bc57 reading startup sequences out of json file. пре 6 година
  Matze 5d091e47b5 save пре 6 година
  Matze fd1347eb0e put sequences in json пре 6 година
  Matthias Martin d553f17003 Merge branch 'kapture2' of http://git.ipe.kit.edu/patrick/KaptureControlGui into IPE пре 6 година
  Matthias Martin 3b8fadc92b latest пре 6 година
  Matthias Martin dc7f2911af comment own features пре 6 година
  Matthias Martin 607d79c92e beginning with kapture 2 changes пре 6 година
  Matthias Martin 72146edde5 nothing ;) пре 6 година
  Matthias Martin 717e866b6b added Epics config editing пре 6 година
  Matthias Martin e9a5116663 Merge branch 'kapture2' of https://ankagit.anka.kit.edu/brosi/kcg into kapture2 пре 6 година
  Matthias Martin efce7f2678 minor fixes in EpicsWidget пре 6 година
  Matze b400ae73d4 update ConfigSetup & changed Orbits to turns пре 6 година
  miriam f69825db1d test latest stable 01 пре 6 година
  Matze 171695cc38 merge fixes пре 6 година
  Matze ae893b4ebb Merge branch 'kapture2' of http://git.ipe.kit.edu/patrick/KaptureControlGui into kapture2 пре 6 година
  Matthias Martin 512f2a8ccd PV Monitoring working пре 6 година
  Matthias Martin e5e33220bd Epics пре 6 година
  Matthias Martin 28a8108ef0 rename пре 6 година
  Matthias Martin 700d5b0624 Widget allows to add and change PV List. пре 6 година
  Timo Dritschler 3f7fdd03d1 added. py to kcg for Windows compliance пре 6 година
  Matthias Martin 1ae723bb80 Started interface пре 6 година
  Matthias Martin 7800745694 Epics is back пре 6 година
  Matthias Martin 1382f12d9f Epics removed -- will be in new widged пре 6 година
  Matthias Martin 5f096d840b First changes. пре 6 година
  Martin, Matthias b8265d99c6 Update kcg пре 6 година
  Timo Dritschler b4d5f1aea4 Changed SYNC sequence to new frequency пре 6 година
  Timo Dritschler b9042151c3 Two missed instances of py2.7 prints пре 6 година
  Timo Dritschler 747ff87618 Removed dma_flush for Picosecond KAPTURE пре 6 година
  Timo Dritschler 67ac338860 Fixed math.floor should be int пре 6 година
  Timo Dritschler 2288ec9cc2 Some picosecond KAPTURE specific changes пре 6 година
  Patrick Schreiber e0f5cc24a2 Update README.md пре 6 година
  Patrick Schreiber 809c20623e Merge branch 'follow_plot' пре 6 година
  Patrick Schreiber ffd09b6923 Introduce 50ohm background subtraction for timescan пре 6 година
  Patrick Schreiber 72f317da15 implement Follow plot пре 6 година
  Patrick Schreiber 94cc266862 Optionally include Singleread in LeftBar пре 6 година
  Patrick Schreiber 9d694d303b Update Version пре 6 година
  Patrick Schreiber 37736dbf55 Fix continous read interval пре 6 година
  Patrick Schreiber c4941a4118 Remove Bug when aborting to save config пре 6 година
  Patrick Schreiber 3451bf3485 Introduce Threshold for Timescan Averaging пре 6 година
  Miriam Brosi e2e8478961 Removed possible usage of reikna fft пре 6 година
  Patrick Schreiber dd9a11916c Fix Save/Load Config пре 7 година
  Miriam Brosi ae9b0e7d39 single read tick for board_id 0 if on by default now пре 7 година
  Miriam Brosi 24e2187807 fixed bug: acquisition with ext. trigger was running in main thread, now fixed, now also stop acquisition working пре 7 година
  Miriam Brosi 0f4f391f60 implemented workaround: acquisition with ext. trigger method2 now working; but stop acquisition signal still delayed пре 7 година
  Miriam Brosi 8614b94f1f fixed board.flush_dma function and added calls at begining of acquisition and begining and end of external trigger function пре 7 година
  Lorenzo Rota bdf94a2b17 added logging info that initialisation was skipped and the configuration and status was read from KAPTURE пре 7 година
  Miriam Brosi 598af59917 improved update of statusbar after message 'Data is inconsistent' пре 7 година
  Miriam Brosi ba62421d91 added feature: in time scan possibility to average only over one bunch (if and which can be selected in time scan widget) пре 7 година

+ 1 - 7
KCG/base/backend/dataset.py

@@ -133,13 +133,6 @@ class DataSet(object):
         
         return pdata[:,adc-1]
 
-    def follow(self, adc=1, frm=0, to=-1, bunch=0, **kwargs):
-        """Follow one bunch through time"""
-        # pdata = self.array[frm:to, :-1]
-        pdata = self.array[bunch::BUNCHES_PER_TURN, adc-1]
-        pdata = pdata[frm:to]
-        return pdata
-
     def combined(self, frm=0, to=-1, show_reconstructed=True):
         array = self.array[frm:to, :]
 
@@ -182,3 +175,4 @@ class DataSet(object):
             # axis.plot(xs, ys, '.', alpha=0.3)
             ret.append(np.array([xs, ys]))
         return ret
+

+ 2 - 2
KCG/base/backend/io.py

@@ -42,7 +42,7 @@ def decode_data(data):
         data = data[np.where(data != 0xDEADDEAD)]  # This is the new filling
 
         # Make sure we read multiple of fours
-        data = data[:int(4 * (math.floor(data.size / 4)))]
+        data = data[:4 * int((math.floor(data.size / 4)))]
 
         bunch_low = data & 0xfff
         bunch_high = np.right_shift(data, 12) & 0xfff
@@ -57,7 +57,7 @@ def decode_data(data):
         result[0::2, 4] = bunch_number[::4]
         result[1::2, 4] = bunch_number[::4] + 1
 
-        result = result[:int(BUNCHES_PER_TURN * (math.floor(result.shape[0] / BUNCHES_PER_TURN))), :]
+        result = result[:BUNCHES_PER_TURN * int((math.floor(result.shape[0] / BUNCHES_PER_TURN))), :]
         return result
 
 def data_has_header(data):

+ 7 - 13
KCG/base/backendinterface.py

@@ -964,7 +964,7 @@ def bk_get_temperature(board_id):
 backup_get_temp = bk_get_temperature
 
 
-def bk_time_scan(board_id, c_frm, c_to, f_frm, f_to, ts_pbar, plot_func, turns_observe=None, turns_skip=None, bucket_to_use=None, threshold_counts=None):
+def bk_time_scan(board_id, c_frm, c_to, f_frm, f_to, ts_pbar, plot_func, turns_observe=None, turns_skip=None):
     """
     Toggle Timescan.
     :param board_id: id of the board do manipulate
@@ -981,7 +981,7 @@ def bk_time_scan(board_id, c_frm, c_to, f_frm, f_to, ts_pbar, plot_func, turns_o
     if board.get_board_status(board_id).time_scan:
         _bif_stop_time_scan(board_id, ts_pbar)
     else:
-        _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, ts_pbar, plot_func, turns_observe, turns_skip, bucket_to_use, threshold_counts)
+        _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, ts_pbar, plot_func, turns_observe, turns_skip)
 
 
 def _bif_stop_time_scan(board_id, ts_pbar):
@@ -1010,7 +1010,7 @@ def _bif_stop_time_scan(board_id, ts_pbar):
 # thread_ts = None
 
 
-def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressbar, plot_func, turns_observe, turns_skip, bucket_to_use=None, threshold_counts=None):
+def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressbar, plot_func, turns_observe, turns_skip):
     """
     Start the timscan. This starts the timer
     :param board_id: id of the board do manipulate
@@ -1022,8 +1022,6 @@ def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressba
     :param plot_func: Function to use to plot the data
     :param turns_observe: Number of turns to observe for the timescan (original values will be restored after timescan)
     :param turns_skip: Number of turns to skip for the timescan (original values will be restored after timescan)
-    :param bucket_to_use: Number of the bucket whos data will be used to calculate the average signal at each timescan step (if None all bunches will be used)
-    :param threshold_counts: Skip buckets with adc counts between 2048 +- threshold_counts
     :return: -
     """
     thread = storage.get_board_specific_storage(board_id).setdefault("TimeScanThread", storage.ThreadStorage())
@@ -1068,15 +1066,14 @@ def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressba
         stopSignal = QtCore.pyqtSignal()
         finished = QtCore.pyqtSignal()
 
-        def __init__(self, c_frm, c_to, f_frm, f_to, timescan_progressbar, bucket_to_use, threshold_counts):
+        def __init__(self, c_frm, c_to, f_frm, f_to, timescan_progressbar):
             super(thread_time_scan, self).__init__()
             self.c_frm = c_frm
             self.c_to = c_to
             self.f_frm = f_frm
             self.f_to = f_to
             self.timescan_progressbar = timescan_progressbar
-            self.bucket_to_use = bucket_to_use
-            
+
         def time_scan(self):
             '''Method to run in the thread that does the timescan'''
             Elements.setEnabled('acquire_{}'.format(board_id), False, exclude=Elements.getElements('start_time_scan_{}'.format(board_id)))
@@ -1142,10 +1139,7 @@ def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressba
                         return
 
                     for adc in range(4):
-                        if self.bucket_to_use is None:
-                            buckets = data.array[:, adc]
-                        else:
-                            buckets = data.array[self.bucket_to_use::config.bunches_per_turn, adc]
+                        buckets = data.array[:, adc:adc + 1].reshape(-1)
                         heatmap[adc, f_step, c_step] = float(buckets.sum()) / buckets.shape[0]
                         #Uncomment this to change back to the old (non functional) method of maxima determination
                         """
@@ -1233,7 +1227,7 @@ def _bif_start_time_scan(board_id, c_frm, c_to, f_frm, f_to, timescan_progressba
 
         return
 
-    tst = thread_time_scan(c_frm, c_to, f_frm, f_to, timescan_progressbar, bucket_to_use, threshold_counts)
+    tst = thread_time_scan(c_frm, c_to, f_frm, f_to, timescan_progressbar)
     thread.register(tst)
     thread.connect('pbarSignal', timescan_progressbar.setValue)
     thread.connect('finished', lambda: finished(timescan_progressbar))

+ 1 - 4
KCG/base/kcg.py

@@ -108,8 +108,6 @@ def readconfig(parent):
         config.save_location = os.getcwd()
     else:
         config.save_location = config.default_save_location
-    
-    storage.storage.offset_correction = config.fifty_ohm_timescan_datafile
 
 
 _MultiView_Name_ = "MultiView"
@@ -476,8 +474,7 @@ class Gui(QtGui.QMainWindow):
                 QtGui.QMessageBox.information(self, "Change Language", "Language change takes effect after Gui restart", 1)
             if setting == 'advanced_control':
                 self.showAdvancedControl(getattr(self.storage, setting))
-#       if setting == 'offset_correction':
-#       config.fifty_ohm_timescan_datafile = getattr(self.storage, setting)
+
             for bid in available_boards.board_ids:
                 try:
                     if bif.bk_get_config(bid, setting) != None:

+ 1 - 1
KCG/base/leftbar.py

@@ -319,7 +319,7 @@ class LeftBar(kcgw.KCGWidgets):
     # uid = unique_id
     # usid = unique_sub_id
     # upid = unique_parent_id
-    possiblePlots = ["Heatmap", "FFT", "Trains", "Combined", "Compare", "Follow"]
+    possiblePlots = ["Heatmap", "FFT", "Trains", "Combined", "Compare"]
 
     def __init__(self, parent):
         super(LeftBar, self).__init__("LeftBar")

+ 5 - 21
KCG/base/plotWidget.py

@@ -36,7 +36,7 @@ class Enum():
             setattr(self, i, self.idx)
             self.idx += 1
 
-plotList = [tr("Label", "Heatmap"), tr("Label", "FFT"), tr("Label", "Trains"), tr("Label", "Combined"), tr("Label", "Compare"), tr("Label", "Follow")]
+plotList = [tr("Label", "Heatmap"), tr("Label", "FFT"), tr("Label", "Trains"), tr("Label", "Combined"), tr("Label", "Compare")]
 PlotType = Enum(*[str(i) for i in plotList])
 
 # gradient = {'mode': 'rgb',
@@ -479,7 +479,7 @@ class SubPlotWidget(pg.GraphicsLayoutWidget):
             self._disableCustomAutoRange()
             self.plotItem.setClipToView(True)
 
-        if self.plotType == PlotType.Trains or self.plotType == PlotType.Follow:
+        if self.plotType == PlotType.Trains:
             self.img.clear()
             self.plotItemPlot[0].show()
             self.gradient_legend.hide()
@@ -550,7 +550,7 @@ class SubPlotWidget(pg.GraphicsLayoutWidget):
         elif self.plotType == PlotType.FFT:
             self.plotItem.setLabel('left', 'Bunch Position', '')
             self.plotItem.setLabel('bottom', 'Frequency', 'Hz')
-        elif self.plotType == PlotType.Trains or self.plotType == PlotType.Follow:
+        elif self.plotType == PlotType.Trains:
             self.plotItem.setLabel('left', '', '')
             self.plotItem.setLabel('bottom', 'Sample Point', '')
         elif self.plotType == PlotType.Combined:
@@ -659,10 +659,9 @@ class PlotWidget(kcgw.KCGWidgets):
         self.trains_button   = self.createButton(text=tr("Button", "Trains"),   connect=lambda: self.plot(type=PlotType.Trains))
         self.combined_button = self.createButton(text=tr("Button", "Combined"), connect=lambda: self.plot(type=PlotType.Combined))
         self.compare_button  = self.createButton(text=tr("Button", "Compare"),  connect=lambda: self.plot(type=PlotType.Compare))
-        self.follow_button   = self.createButton(text=tr("Button", "Follow"),   connect=lambda: self.plot(type=PlotType.Follow))
         self.type_buttons    = {PlotType.Heatmap:self.heatmap_button, PlotType.FFT:self.fft_button,
                                 PlotType.Trains:self.trains_button,   PlotType.Combined:self.combined_button,
-                                PlotType.Compare:self.compare_button, PlotType.Follow:self.follow_button}
+                             PlotType.Compare:self.compare_button}
         self.defaultButtonStyleSheet = self.heatmap_button.styleSheet()
 
         self.plot_buttons_layout.addWidget(self.heatmap_button)
@@ -670,7 +669,6 @@ class PlotWidget(kcgw.KCGWidgets):
         self.plot_buttons_layout.addWidget(self.trains_button)
         self.plot_buttons_layout.addWidget(self.combined_button)
         self.plot_buttons_layout.addWidget(self.compare_button)
-        self.plot_buttons_layout.addWidget(self.follow_button)
 
 
         self.adcCheckBox = []
@@ -721,16 +719,9 @@ class PlotWidget(kcgw.KCGWidgets):
         self.groupWidgetCompare.hide()
 
         self.from_to_layout = QtGui.QHBoxLayout()
-        self.bucket_part = QtGui.QWidget()
-        self.bucket_layout = QtGui.QHBoxLayout()
-        self.bucket_layout.addWidget(self.createLabel(tr("Label", "Bucket:")))
-        self.bucket_spinbox = self.createSpinbox(0, config.bunches_per_turn-1, interval=1, connect=lambda: self.plot(self.theType))
-        self.bucket_layout.addWidget(self.bucket_spinbox)
-        self.bucket_part.setLayout(self.bucket_layout)
         self.from_spinbox = self.createSpinbox(0, 100000000, interval=100, connect=lambda: self.plot(self.theType))
         self.to_spinbox = self.createSpinbox(0, 100000000, start_value=1000, interval=100, connect=lambda: self.plot(self.theType))
         self.from_to_layout.addStretch()
-        self.from_to_layout.addWidget(self.bucket_part)
         self.from_to_layout.addWidget(self.createLabel(tr("Label", "From:")))
         self.from_to_layout.addWidget(self.from_spinbox)
         self.from_to_layout.addWidget(self.createLabel(tr("Label", "To:")))
@@ -815,10 +806,6 @@ class PlotWidget(kcgw.KCGWidgets):
                 style += self.defaultButtonStyleSheet
             style += "QPushButton:focus{background-color: lightgrey!important; border-color: lightblue;}"  # Note: this does not work
             button.setStyleSheet(style)
-        if self.theType == PlotType.Follow:
-            self.bucket_part.show()
-        else:
-            self.bucket_part.hide()
         
         
         if self.theType == PlotType.Trains:
@@ -863,7 +850,7 @@ class PlotWidget(kcgw.KCGWidgets):
                     type = self._old_type
                 else:
                     type = self.theType
-            if type == PlotType.Trains or type == PlotType.Combined or type == PlotType.Follow:
+            if type == PlotType.Trains or type == PlotType.Combined:
                 self.do_plot(type, autorange=True)
             else:
                 self.do_plot(type, autorange=False)
@@ -912,7 +899,6 @@ class PlotWidget(kcgw.KCGWidgets):
 
         f = self.from_spinbox.value()
         t = self.to_spinbox.value() if self.to_spinbox.value() > f else f+1
-        b = self.bucket_spinbox.value()
         if type == PlotType.FFT:
             self.plot_widget.plot(np.abs(self.data.fft(adc=self.adc, frm=f, to=t+1, drop_first_bin=True)).transpose(),
                                   autorange=autorange,
@@ -923,8 +909,6 @@ class PlotWidget(kcgw.KCGWidgets):
             self.plot_widget.plot([self.data.heatmap(adc=self.adc, frm=f, to=t).transpose(),self.data.heatmap(adc=self.secadc, frm=f, to=t).transpose()], autorange=autorange)
         if type == PlotType.Trains:
             self.plot_widget.plot(self.data.train(adc=self.adc, frm=f, to=t), autorange=autorange)
-        if type == PlotType.Follow:
-            self.plot_widget.plot(self.data.follow(adc=self.adc, frm=f, to=t, bunch=b), autorange=autorange)
         if type == PlotType.Combined:
             self.plot_widget.plot(self.data.combined(frm=f, to=t), autorange=autorange)
 

+ 0 - 1
KCG/base/settings.py

@@ -28,7 +28,6 @@ class Settings(kcgw.KCGWidgets):
         self.headerTick = self.build_new_setting(QtGui.QCheckBox(tr("Button", "Header")), 'header')
         self.subDirName = self.build_new_setting(self.createInput(self.storage_handler.subdirname, width=320), 'subdirname')
         self.dirName = self.build_new_setting(self.createInput(self.storage_handler.save_location, width=320), 'save_location')
-        
         self.language = self.build_new_setting(QtGui.QComboBox(), 'language')
         self.advanced_control = self.build_new_setting(self.createCheckbox(tr("Label", "Enable Advanced Table View")), 'advanced_control')
         for lang in self.langlist:

+ 1 - 1
KCG/config.py

@@ -153,7 +153,7 @@ class Configuration(object):
         Misc_conf = ['newPlotLiveIcon', 'newPlotDataIcon', 'timingIcon', 'singleReadIcon',
                      'acquireSettingsIcon', 'startIcon', 'stopIcon', 'logIcon', 'logCommentIcon', 'guiIcon', 'style',
                      'board_detection_method', 'device_list', 'device_names',
-                     'num_dummy_boards', 'fifty_ohm_timescan_datafile']
+                     'num_dummy_boards']
 
         try:
             machine_c = ConfSection('Machine', Machine_conf, config, log_level=self._log_level)

+ 1 - 1
KCG/widgets/initialconfig.py

@@ -350,7 +350,7 @@ class ConfigSetup(kcgw.KCGWidgets):
             self.logging_entries.append(self.configs[-1])
 
         self.scrollWidget.setWidget(self.wid)
-       
+
     def save(self):
         """
         Save the configuration entered in the config window to a configuration file

+ 1 - 22
KCG/widgets/timingWidget.py

@@ -106,7 +106,6 @@ class timingPlotWidget(kcgw.KCGWidgets):
             self.plot()
 
    
-    
     def colour_plot(self):
         """
         Initialize Color Plot
@@ -397,13 +396,6 @@ class timingPart(kcgw.KCGWidgets):
         self.fine_scan_min_spinbox = self.createSpinbox(0, bif.bk_get_config(board_id, 'chip_delay_max'), start_value=0)
         self.fine_scan_max_spinbox = self.createSpinbox(0, bif.bk_get_config(board_id, 'chip_delay_max'), start_value=bif.bk_get_config(board_id, 'chip_delay_max'))
 
-        self.average_one_bunch_label = self.createLabel(tr("Label", "Average bunch number"))
-        self.average_all_bunches_checkbox = self.createCheckbox(tr("Button", "Average all bunches"), tr("Tooltip", "Average over signal from all bunches for timescan"),
-                                                         checked=True,connect=self.showAverageOneBunch)
-        self.average_one_bunch_spinbox = self.createSpinbox(0, BUNCHES_PER_TURN-1, start_value=0)
-        self.average_one_bunch_spinbox.setEnabled(False)
-
-        
         self.turns_observe_spinbox = self.createSpinbox(1, 10000000, start_value=100)
         self.turns_skip_spinbox = self.createSpinbox(0, 100, start_value=2)
 
@@ -430,11 +422,7 @@ class timingPart(kcgw.KCGWidgets):
         self.timeScanLayout.addWidget(self.turns_observe_spinbox, 3, 2)
         self.timeScanLayout.addWidget(self.createLabel("Turns to Skip"), 4, 1)
         self.timeScanLayout.addWidget(self.turns_skip_spinbox, 4, 2)
-        self.timeScanLayout.addWidget(self.average_all_bunches_checkbox, 5, 0)
-        self.timeScanLayout.addWidget(self.average_one_bunch_label, 5, 1)
-        self.timeScanLayout.addWidget(self.average_one_bunch_spinbox, 5, 2)
-       
-        self.timeScanLayout.addWidget(self.time_scan_button, 7, 2)
+        self.timeScanLayout.addWidget(self.time_scan_button, 5, 2)
         self.setTabOrder(self.fine_scan_max_spinbox, self.time_scan_button)
 
         #  --------[ End Time Scan Part ]-------------
@@ -643,14 +631,6 @@ class timingPart(kcgw.KCGWidgets):
         if not self.adc1CoarseInput.isEnabled():
             board.get_board_config(self.board_id).update('adc_1_delay_individual', -1) # Be careful this does no silent update
 
-    def showAverageOneBunch(self):
-        """
-        Toggle to use an individual bunch for the averaging in the time delay scan or to use all bunches
-        :return: -
-        """
-        self.average_one_bunch_spinbox.setEnabled(not self.average_all_bunches_checkbox.checkState())
-        
-
     def showTimeScan(self):
         """
         Show the time scan part of this window
@@ -695,7 +675,6 @@ class timingPart(kcgw.KCGWidgets):
             self.plotWidget.plot,
             turns_observe = self.turns_observe_spinbox.value(),
             turns_skip = self.turns_skip_spinbox.value(),
-            bucket_to_use = self.average_one_bunch_spinbox.value() if self.average_one_bunch_spinbox.isEnabled() else None
         )
 
     def setValueSilent(self, element, value):

+ 2 - 8
setup.py

@@ -1,17 +1,11 @@
 #!/usr/bin/python
 from setuptools import setup, find_packages
-import time, subprocess
+
 DESCRIPTION = "KCG KAPTURE Control Gui"
-git_count = subprocess.check_output(["git", "rev-list", "--count", "HEAD"]).strip()
-version_time = time.strftime("%d%m%y")
-VERSION = "0.3.2."+git_count+"."+version_time+"-beta"
-with open("KCG/VERSION", 'w') as vfile:
-    vfile.write(VERSION)
 
 setup(
     name='KCG',
-#    version='0.3.2.197.0704-beta',
-    version=VERSION,
+    version='0.3.2.197.0704-beta',
     author='Patrick Schreiber',
     author_email='uldfk@student.kit.edu',
 #    license='GPL',