def _defineAcquisitionParams(self, form): group = ProtImportImages._defineAcquisitionParams(self, form) group.addParam( 'samplingRateMode', params.EnumParam, choices=[Message.LABEL_SAMP_MODE_1, Message.LABEL_SAMP_MODE_2], default=SAMPLING_FROM_IMAGE, label=Message.LABEL_SAMP_MODE, help=Message.TEXT_SAMP_MODE) group.addParam('samplingRate', params.FloatParam, default=1.0, condition='samplingRateMode==%d' % SAMPLING_FROM_IMAGE, label=Message.LABEL_SAMP_RATE, help=Message.TEXT_SAMP_RATE) group.addParam('scannedPixelSize', params.FloatParam, default=7.0, condition='samplingRateMode==%d' % SAMPLING_FROM_SCANNER, label=Message.LABEL_SCANNED, help='') return group
def _defineAcquisitionParams(self, form): form.addParam('samplingRate', params.FloatParam, default=1., label=Message.LABEL_SAMP_RATE) group = ProtImportImages._defineAcquisitionParams(self, form) group.expertLevel.set(LEVEL_ADVANCED)
def _defineAcquisitionParams(self, form): form.addParam('samplingRate', params.FloatParam, default=1., label=Message.LABEL_SAMP_RATE) group = ProtImportImages._defineAcquisitionParams(self, form) group.expertLevel.set(LEVEL_ADVANCED) # Change some params properties patternParam = form.getParam('filesPattern') patternParam.condition.set('0')
def _defineAcquisitionParams(self, form): group = ProtImportImages._defineAcquisitionParams(self, form) group.addParam('samplingRateMode', EnumParam, choices=[Message.LABEL_SAMP_MODE_1, Message.LABEL_SAMP_MODE_2], default=SAMPLING_FROM_IMAGE, label=Message.LABEL_SAMP_MODE, help=Message.TEXT_SAMP_MODE) group.addParam('samplingRate', FloatParam, default=1.0, condition='samplingRateMode==%d' % SAMPLING_FROM_IMAGE, label=Message.LABEL_SAMP_RATE, help=Message.TEXT_SAMP_RATE) group.addParam('scannedPixelSize', FloatParam, default=7.0, condition='samplingRateMode==%d' % SAMPLING_FROM_SCANNER, label=Message.LABEL_SCANNED, help='') return group
def _defineAcquisitionParams(self, form): group = ProtImportImages._defineAcquisitionParams(self, form) group.addParam('samplingRate', params.FloatParam, label=Message.LABEL_SAMP_RATE)
def _defineAcquisitionParams(self, form): form.addParam('samplingRate', params.FloatParam, default=1., label=Message.LABEL_SAMP_RATE) group = ProtImportImages._defineAcquisitionParams(self, form) group.expertLevel.set(LEVEL_ADVANCED)
def _defineAcquisitionParams(self, form): group = ProtImportImages._defineAcquisitionParams(self, form) group.addParam('samplingRate', params.FloatParam, label=Message.LABEL_SAMP_RATE)