Example #1
0
 def safeSetNumIterations(self):
     try:
         val = toInt(self.ui.lineEdit_numIterations.text())
     except:
         val = 1
         self.ui.lineEdit_numIterations.setText('1')
     self.GENFIRE_ReconstructionParameters.setNumberOfIterations(val)
Example #2
0
 def safeSetOversamplingRatio(self):
     try:
         val = toInt(self.ui.lineEdit_oversamplingRatio.text())
     except:
         val = 1
         self.ui.lineEdit_oversamplingRatio.setText('1')
     self.GENFIRE_ReconstructionParameters.setOversamplingRatio(val)
Example #3
0
 def setSliderFromText(self, slider, text):
     try:
         val = toInt(text)
     except:
         val = 1
     slider.setValue(val)
Example #4
0
 def setNumberOfIterations(self, value):
     number_of_iterations = toInt(value)
     self.GENFIRE_ReconstructionParameters.setNumberOfIterations(
         number_of_iterations)
 def setNumberOfProjections(self, number):
     self.calculationParameters.numberOfProjections = toInt(number)