Пример #1
0
    def _defineParams(self, form):
        ProtImportFiles._defineParams(self, form)

        form.addParam('inputMicrographs', PointerParam, pointerClass='SetOfMicrographs', 
                          label='Input micrographs',
                          help='Select the particles that you want to import coordinates.')

        form.addParam('boxSize', IntParam, label='Box size')
        form.addParam('scale', FloatParam,
                      label='Scale', default=1,
                      help='factor to scale coordinates')
        form.addParam('invertX', BooleanParam, default=False,
                      label='Invert X')
        form.addParam('invertY', BooleanParam, default=False,
                      label='Invert Y')
Пример #2
0
    def _defineParams(self, form):
        ProtImportFiles._defineParams(self, form)

        form.addParam(
            'inputMicrographs',
            PointerParam,
            pointerClass='SetOfMicrographs',
            label='Input micrographs',
            help=
            'Select the micrographs for which you want to import coordinates.')

        form.addParam('boxSize', IntParam, label='Box size')
        form.addParam('scale',
                      FloatParam,
                      label='Scale',
                      default=1,
                      help='Factor to scale coordinates')
        form.addParam('invertX', BooleanParam, default=False, label='Invert X')
        form.addParam('invertY', BooleanParam, default=False, label='Invert Y')
Пример #3
0
    def _validate(self):
        errors = ProtImportFiles._validate(self)

        # Check that files are proper EM images, only when importing from
        # files and not using streaming. In the later case we could
        # have partial files not completed.
        if (self.importFrom == self.IMPORT_FROM_FILES
                and not self.dataStreaming):
            errors += self._validateImages()

        return errors
Пример #4
0
    def _validate(self):
        errors = ProtImportFiles._validate(self)

        # Check that files are proper EM images, only when importing from
        # files and not using streaming. In the later case we could
        # have partial files not completed.
        if (self.importFrom == self.IMPORT_FROM_FILES and
            not self.dataStreaming):
            errors += self._validateImages()
        
        return errors
Пример #5
0
 def __init__(self, **args):
     ProtImportFiles.__init__(self, **args)
Пример #6
0
 def _defineParams(self, form):
     ProtImportFiles._defineParams(self, form)
     self._defineAcquisitionParams(form)
Пример #7
0
 def __init__(self, **args):
     ProtImportFiles.__init__(self, **args)
Пример #8
0
 def _defineParams(self, form):
     ProtImportFiles._defineParams(self, form)
     self._defineAcquisitionParams(form)
Пример #9
0
    def _validate(self):
        errors = ProtImportFiles._validate(self)
        if self.importFrom == self.IMPORT_FROM_FILES:
            errors += self._validateImages()

        return errors
Пример #10
0
    def _defineParams(self, form):


        ProtImportFiles._defineParams(self, form)
Пример #11
0
    def _defineParams(self, form):

        ProtImportFiles._defineParams(self, form)
Пример #12
0
 def _validate(self):
     errors = ProtImportFiles._validate(self)
     if self.importFrom == self.IMPORT_FROM_FILES:
         errors += self._validateImages()
     
     return errors