Example #1
0
 def calibrationFileChanged(self, i):
     print("CalibrationEditWindow - Calibration File Changed")
     print("Current index", i, "selection changed ",
           self.calibrationFileComboBox.currentText())
     calFileName = self.calibrationFileComboBox.currentText()
     calDir = ConfigFile.getCalibrationDirectory()
     calPath = os.path.join(calDir, calFileName)
     #print("calPath: " + calPath)
     if os.path.isfile(calPath):
         self.getCalibrationSettings()
         self.calibrationEnabledCheckBox.setEnabled(True)
         self.calibrationFrameTypeComboBox.setEnabled(True)
     else:
         self.calibrationEnabledCheckBox.setEnabled(False)
         self.calibrationFrameTypeComboBox.setEnabled(False)
Example #2
0
 def refreshCalibrationFiles():
     print("SeaBASSHeader - refreshCalibrationFiles")
     calibrationPath = ConfigFile.getCalibrationDirectory()
     files = os.listdir(calibrationPath)
     SeaBASSHeader.settings["calibration_files"] = (','.join(files))