def __calc(self): symmGroup = symmetry.ltypeOfLaueGroup(self.__laueGroup) latPlaneData, latVecOps, hklDataList = PlaneData.makePlaneData( self.__hkls, self.__lparms, self.__qsym, symmGroup, self.__strainMag, self.wavelength) 'sort by tTheta' tThs = num.array([hklDataList[iHKL]['tTheta'] for iHKL in range(len(hklDataList))]) if self.__doTThSort: self.tThSort = num.argsort(tThs) # sorted hkl -> __hkl self.tThSortInv = num.empty(len(hklDataList), dtype=int) # __hkl -> sorted hkl self.tThSortInv[self.tThSort] = num.arange(len(hklDataList)) self.hklDataList = [hklDataList[iHKL] for iHKL in self.tThSort] else: self.tThSort = num.arange(len(hklDataList)) self.tThSortInv = num.arange(len(hklDataList)) self.hklDataList = hklDataList self.__latVecOps = latVecOps self.nHKLs = len(self.getHKLs()) return
def getLatticeType(self): """This is the lattice type""" return symmetry.ltypeOfLaueGroup(self.__laueGroup)