def _index_finish(self): '''Check that the autoindexing gave a convincing result, and if not (i.e. it gave a centred lattice where a primitive one would be correct) pick up the correct solution.''' if self._indxr_input_lattice: return if self.get_indexer_sweep(): if self.get_indexer_sweep().get_user_lattice(): return try: status, lattice, matrix, cell = mosflm_check_indexer_solution(self) except Exception: return if status is False or status is None: return # ok need to update internals... self._indxr_lattice = lattice self._indxr_cell = cell Debug.write('Inserting solution: %s ' % lattice + '%6.2f %6.2f %6.2f %6.2f %6.2f %6.2f' % cell) self._indxr_replace(lattice, cell) self._indxr_payload['mosflm_orientation_matrix'] = matrix
def _index_finish(self): """Check that the autoindexing gave a convincing result, and if not (i.e. it gave a centred lattice where a primitive one would be correct) pick up the correct solution.""" # strictly speaking, given the right input there should be # no need to test... if self._indxr_input_lattice: return if self.get_indexer_sweep().get_user_lattice(): return status, lattice, matrix, cell = mosflm_check_indexer_solution(self) if status is None: # basis is primitive return if status is False: # basis is centred, and passes test return # ok need to update internals... self._indxr_lattice = lattice self._indxr_cell = cell Debug.write("Inserting solution: %s " % lattice + "%6.2f %6.2f %6.2f %6.2f %6.2f %6.2f" % cell) self._indxr_replace(lattice, cell) self._indxr_payload["mosflm_orientation_matrix"] = matrix
def _index_finish(self): '''Check that the autoindexing gave a convincing result, and if not (i.e. it gave a centred lattice where a primitive one would be correct) pick up the correct solution.''' if self._indxr_input_lattice: return if self.get_indexer_sweep(): if self.get_indexer_sweep().get_user_lattice(): return try: status, lattice, matrix, cell = mosflm_check_indexer_solution( self) except: return if status is False or status is None: return # ok need to update internals... self._indxr_lattice = lattice self._indxr_cell = cell Debug.write('Inserting solution: %s ' % lattice + '%6.2f %6.2f %6.2f %6.2f %6.2f %6.2f' % cell) self._indxr_replace(lattice, cell) self._indxr_payload['mosflm_orientation_matrix'] = matrix return
def _index_finish(self): '''Check that the autoindexing gave a convincing result, and if not (i.e. it gave a centred lattice where a primitive one would be correct) pick up the correct solution.''' # strictly speaking, given the right input there should be # no need to test... if self._indxr_input_lattice: return if self.get_indexer_sweep(): if self.get_indexer_sweep().get_user_lattice(): return try: raise RuntimeError, 'no, lets not' status, lattice, matrix, cell = mosflm_check_indexer_solution( self) except: status = None if status is None: # basis is primitive return if status is False: # basis is centred, and passes test return # ok need to update internals... self._indxr_lattice = lattice self._indxr_cell = cell Debug.write('Inserting solution: %s ' % lattice + '%6.2f %6.2f %6.2f %6.2f %6.2f %6.2f' % cell) self._indxr_replace(lattice, cell, indxr_print = self._indxr_print) self._indxr_payload['mosflm_orientation_matrix'] = matrix return