Example #1
0
    def commitToDatabase(self, imgdata):
        """
		information needed to commit
		* defocus 1
		* defocus 2
		* angle astig
		* amplitude contrast
		all stored in self.ctfvalues
		"""

        if (not 'defocus1' in self.ctfvalues
                or self.ctfvalues['defocus1'] is None
                or not 'defocus2' in self.ctfvalues
                or self.ctfvalues['defocus2'] is None
                or not 'amplitude_contrast' in self.ctfvalues
                or self.ctfvalues['amplitude_contrast'] is None
                or not 'angle_astigmatism' in self.ctfvalues
                or self.ctfvalues['angle_astigmatism'] is None):
            return False

        if self.ctfrundata is None:
            self.insertRunData()

        ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues,
                                           self.ctfrundata,
                                           self.params['rundir'])

        return True
        def commitToDatabase(self, imgdata):
                """
                information needed to commit
                * defocus 1
                * defocus 2
                * angle astig
                * amplitude contrast
                all stored in self.ctfvalues
                """

                if ( not 'defocus1' in self.ctfvalues 
                                or self.ctfvalues['defocus1'] is None
                                or not 'defocus2' in self.ctfvalues
                                or self.ctfvalues['defocus2'] is None
                                or not 'amplitude_contrast' in self.ctfvalues
                                or self.ctfvalues['amplitude_contrast'] is None
                                or not 'angle_astigmatism' in self.ctfvalues
                                or self.ctfvalues['angle_astigmatism'] is None):
                        return False
                
                if self.ctfrundata is None:
                        self.insertRunData()

                ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.ctfrundata, self.params['rundir'])

                return True
	def commitToDatabase(self, imgdata):
		### PART 1: insert ACE run parameters
		if self.acerunq is None:
			self.insertACErunParams()

		ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.acerunq, self.params['rundir'])

		return
        def commitToDatabase(self, imgdata):
                ### PART 1: insert ACE run parameters
                if self.acerunq is None:
                        self.insertACErunParams()

                ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.acerunq, self.params['rundir'])

                return
Example #5
0
    def commitToDatabase(self, imgdata):
        if self.ctfrundata is None:
            self.insertRunData()

        ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues,
                                           self.ctfrundata,
                                           self.params['rundir'])
        return True
 def commitToDatabase(self, imgdata):
     self.insertCtfTiltRun(imgdata)
     ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues,
                                        self.ctfrun, self.params['rundir'])
	def commitToDatabase(self, imgdata):
		self.insertCtfTiltRun(imgdata)
		ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.ctfrun, self.params['rundir'])
	def commitToDatabase(self, imgdata):
		if self.ctfrundata is None:
			self.insertRunData()

		ctfinsert.validateAndInsertCTFData(imgdata, self.ctfvalues, self.ctfrundata, self.params['rundir'])
		return True