forked from diffpy/diffpy.pdfgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In fitstructure.py, applyPairSelection is for pdffit server. We need silmar function for CMI to run in calculation.py
def applyPairSelection(self, server, phaseidx):
"""Apply pair selection for calculations of partial PDF.
server -- instance of PdfFit engine
phaseidx -- phase index in PdfFit engine starting from 1
"""
psf = self.getPairSelectionFlags()
idx = 0
for iflag, jflag in zip(psf['firstflags'], psf['secondflags']):
idx += 1
server.selectAtomIndex(phaseidx, 'i', idx, iflag)
server.selectAtomIndex(phaseidx, 'j', idx, jflag)
return
Metadata
Metadata
Assignees
Labels
No labels