Skip to content

Commit 872ae02

Browse files
committed
finish move of getCellEsd
1 parent df17fd4 commit 872ae02

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

GSASII/GSASIIfiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ def GetCell(self,phasenam,unique=False):
22962296
try:
22972297
pfx = str(phasedict['pId'])+'::'
22982298
A,sigA = G2stIO.cellFill(pfx,phasedict['General']['SGData'],self.parmDict,self.sigDict)
2299-
cellSig = G2stIO.getCellEsd(pfx,phasedict['General']['SGData'],A,
2299+
cellSig = G2lat.getCellEsd(pfx,phasedict['General']['SGData'],A,
23002300
self.OverallParms['Covariance'],unique=unique) # returns 7 vals, includes sigVol
23012301
cellList = G2lat.A2cell(A) + (G2lat.calc_V(A),)
23022302
return cellList,cellSig
@@ -2337,7 +2337,7 @@ def GetSeqCell(self,phasenam,data_name):
23372337
'varyList': [Dlookup.get(striphist(v),v) for v in data_name['varyList']],
23382338
'covMatrix': data_name['covMatrix']
23392339
}
2340-
return list(G2lat.A2cell(A)) + [G2lat.calc_V(A)], G2stIO.getCellEsd(str(pId)+'::',SGdata,A,covData)
2340+
return list(G2lat.A2cell(A)) + [G2lat.calc_V(A)], G2lat.getCellEsd(str(pId)+'::',SGdata,A,covData)
23412341

23422342
def GetAtoms(self,phasenam):
23432343
"""Gets the atoms associated with a phase. Can be used with standard

GSASII/GSASIIscriptable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4473,7 +4473,7 @@ def get_cell_and_esd(self):
44734473
sigDict.update(G2mv.ComputeDepESD(covDict['covMatrix'],covDict['varyList']))
44744474

44754475
A, sigA = G2stIO.cellFill(pfx, sgdata, parmDict, sigDict)
4476-
cellSig = G2stIO.getCellEsd(pfx, sgdata, A, self.proj['Covariance']['data'])
4476+
cellSig = G2lat.getCellEsd(pfx, sgdata, A, self.proj['Covariance']['data'])
44774477
cellList = G2lat.A2cell(A) + (G2lat.calc_V(A),)
44784478
cellDict, cellSigDict = {}, {}
44794479
for i, key in enumerate(['length_a', 'length_b', 'length_c',
@@ -5560,7 +5560,7 @@ def striphist(var,insChar=''):
55605560
# convert to direct cell
55615561
c = G2lat.A2cell(A)
55625562
vol = G2lat.calc_V(A)
5563-
cE = G2stIO.getCellEsd(pfx,SGdata,A,covData)
5563+
cE = G2lat.getCellEsd(pfx,SGdata,A,covData)
55645564
return list(c)+[vol],cE,uniqCellIndx
55655565

55665566
def get_VaryList(self,hist):

GSASII/GSASIIseqGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ def OnEditSelectPhaseVars(event):
12971297
A,zeros = G2stIO.cellFill(pfx,SGdata[pId],cellDict,zeroDict[pId])
12981298
c = G2lat.A2cell(A)
12991299
vol = G2lat.calc_V(A)
1300-
cE = G2stIO.getCellEsd(pfx,SGdata[pId],A,covData)
1300+
cE = G2lat.getCellEsd(pfx,SGdata[pId],A,covData)
13011301
except:
13021302
c = 6*[None]
13031303
cE = 6*[None]

GSASII/GSASIIstrIO.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,10 +2172,6 @@ def SummRestraints(restraintDict):
21722172
res += f'Phase {ph} Restraints: {s}'
21732173
return res
21742174

2175-
2176-
# getCellEsd has been moved but leave reference here for now
2177-
getCellEsd = G2lat.getCellEsd
2178-
21792175
def SetPhaseData(parmDict,sigDict,Phases,RBIds,covData,RestraintDict=None,pFile=None):
21802176
'''Called after a refinement to transfer parameters from the parameter dict to
21812177
the phase(s) information read from a GPX file. Also prints values to the .lst file
@@ -2458,7 +2454,7 @@ def PrintSHtextureAndSig(textureData,SHtextureSig):
24582454
pfx = str(pId)+'::'
24592455
if cell[0]:
24602456
A,sigA = cellFill(pfx,SGData,parmDict,sigDict)
2461-
cellSig = getCellEsd(pfx,SGData,A,covData,unique=True) #includes sigVol
2457+
cellSig = G2lat.getCellEsd(pfx,SGData,A,covData,unique=True) #includes sigVol
24622458
if pFile: pFile.write(' Reciprocal metric tensor: \n')
24632459
ptfmt = "%15.9f"
24642460
names = ['A11','A22','A33','A12','A13','A23']

GSASII/GSASIIstrMain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ def ShowBanner(name):
14181418
covData = DisAglData['covData']
14191419
pfx = str(DisAglData['pId'])+'::'
14201420
A = G2lat.cell2A(Cell[:6])
1421-
cellSig = G2stIO.getCellEsd(pfx,SGData,A,covData)
1421+
cellSig = G2lat.getCellEsd(pfx,SGData,A,covData)
14221422
names = [' a = ',' b = ',' c = ',' alpha = ',' beta = ',' gamma = ',' Volume = ']
14231423
valEsd = [G2mth.ValEsd(Cell[i],cellSig[i],True) for i in range(7)]
14241424
line = '\n Unit cell:'

0 commit comments

Comments
 (0)