コード例 #1
0
 def _createOutputMovie(self, movie):
     """ Overwrite this function to store the Relion's specific
     Motion model coefficients.
     """
     m = ProtAlignMovies._createOutputMovie(self, movie)
     # Load local motion values only if the patches are more than one
     if self.patchX.get() * self.patchY.get() > 1:
         table = md.Table(fileName=self._getMovieExtraFn(movie, '.star'),
                          tableName='local_motion_model')
         coeffs = [row.rlnMotionModelCoeff for row in table]
         m._rlnMotionModelCoeff = pwobj.String(json.dumps(coeffs))
     return m
コード例 #2
0
 def _createOutputMovie(self, movie):
     alignedMovie = ProtAlignMovies._createOutputMovie(self, movie)
     self._setAlignmentInfo(movie, alignedMovie)
     return alignedMovie
コード例 #3
0
 def _createOutputMovie(self, movie):
     alignedMovie = ProtAlignMovies._createOutputMovie(self, movie)
     self._setAlignmentInfo(movie, alignedMovie)
     return alignedMovie