示例#1
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
示例#2
0
文件: images.py 项目: I2PC/scipion
    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
示例#3
0
    def _validate(self):
        errors = ProtImportFiles._validate(self)
        if self.importFrom == self.IMPORT_FROM_FILES:
            errors += self._validateImages()

        return errors
示例#4
0
 def _validate(self):
     errors = ProtImportFiles._validate(self)
     if self.importFrom == self.IMPORT_FROM_FILES:
         errors += self._validateImages()
     
     return errors