コード例 #1
0
    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
コード例 #2
0
ファイル: particles.py プロジェクト: kevinpetersavage/scipion
 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)
コード例 #3
0
ファイル: particles.py プロジェクト: denisfortun/scipion
 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')
コード例 #4
0
ファイル: micrographs.py プロジェクト: josegutab/scipion
 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
コード例 #5
0
ファイル: particles.py プロジェクト: kevinpetersavage/scipion
 def _defineAcquisitionParams(self, form):
     group = ProtImportImages._defineAcquisitionParams(self, form)
     group.addParam('samplingRate',
                    params.FloatParam,
                    label=Message.LABEL_SAMP_RATE)
コード例 #6
0
ファイル: particles.py プロジェクト: I2PC/scipion
 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)
コード例 #7
0
ファイル: particles.py プロジェクト: I2PC/scipion
 def _defineAcquisitionParams(self, form):
     group = ProtImportImages._defineAcquisitionParams(self, form)
     group.addParam('samplingRate', params.FloatParam,
                label=Message.LABEL_SAMP_RATE)