Browse Source

Fixed a few minor bugs in MIDI data saving, and in gains

master
Trevor Irons 2 years ago
parent
commit
baecceab53
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      akvo/gui/akvoGUI.py

+ 6
- 0
akvo/gui/akvoGUI.py View File

@@ -1238,6 +1238,12 @@ class ApplicationWindow(QtWidgets.QMainWindow):
1238 1238
         self.RAWDataProc.nDAQVersion = self.RAWDataProc.DATADICT["INFO"]["nDAQVersion"]
1239 1239
         #self.RAWDataProc.prePulseDelay = self.RAWDataProc.DATADICT["INFO"]["prePulseDelay"]
1240 1240
         self.RAWDataProc.dt = 1./self.RAWDataProc.samp 
1241
+        
1242
+
1243
+        if self.RAWDataProc.DATADICT["INFO"]["Instrument"] == "MIDI 2":
1244
+            self.RAWDataProc.Instrument = "MIDI 2"
1245
+            self.RAWDataProc.MIDIGain = self.RAWDataProc.DATADICT["INFO"]["MIDIGain"] 
1246
+            self.RAWDataProc.datadir = self.RAWDataProc.DATADICT["INFO"]["datadir"] 
1241 1247
 
1242 1248
         self.dataChan = self.RAWDataProc.DATADICT[ self.RAWDataProc.DATADICT["PULSES"][0] ]["chan"]
1243 1249
 

Loading…
Cancel
Save