def answer(self, msg): ChimeraClient.answer(self, msg) if msg == 'motion_stop': data = self.client.recv() #wait for data printCmd('reading motion') self.motion = data printCmd('getting euler angles') rot, tilt, psi = xmipp.Euler_matrix2angles(self.motion) printCmd('calling rotate') self.rotate(rot, tilt, psi)
def answer(self, msg): ChimeraClient.answer(self, msg) if msg == 'motion_stop': data = self.client.recv() #wait for data printCmd('reading motion') self.motion = data printCmd('getting euler angles') rot, tilt, psi = xmipp.Euler_matrix2angles(self.motion) printCmd('calling rotate') self.rotate(rot, tilt, psi) elif msg == 'id': id = self.client.recv() self.listToBild([self.va[id - 1]], 2.5, 'id.bild') else: pass