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')
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')
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
def __init__(self, **args): ProtImportFiles.__init__(self, **args)
def _defineParams(self, form): ProtImportFiles._defineParams(self, form) self._defineAcquisitionParams(form)
def _validate(self): errors = ProtImportFiles._validate(self) if self.importFrom == self.IMPORT_FROM_FILES: errors += self._validateImages() return errors
def _defineParams(self, form): ProtImportFiles._defineParams(self, form)