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)
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)
def setSliderFromText(self, slider, text): try: val = toInt(text) except: val = 1 slider.setValue(val)
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)