Skip to content

Commit 10497fd

Browse files
committed
fix orbital labels
1 parent 8d53545 commit 10497fd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

GSASII/GSASIIphsGUI2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def MakeUVmat(defData,U,V):
220220
MY /= nl.norm(MY)
221221
MZ = np.cross(MX,MY)
222222
MZ /= nl.norm(MZ)
223-
return np.array([MX,MY,MZ])
223+
return np.array([MX,MY,MZ]).T
224224

225225
def OnDeformRef(event):
226226
Obj = event.GetEventObject()
@@ -507,10 +507,10 @@ def OnAtCol(event):
507507
oriSizer.Add(delHarm,0,WACV)
508508
mainSizer.Add(oriSizer)
509509
G2G.HorizontalLine(mainSizer,deformation)
510-
Names = {'D(1,-1)':'px','D(1,0)':'pz','D(1,1)':'py',
511-
'D(2,-2)':'dxy','D(2,-1)':'dxz','D(2,0)':'dz2','D(2,1)':'dyz','D(2,2)':'dx2-y2',
512-
'D(3,-3)':'fy(3x2-y2)','D(3,-2)':'fz(x2-y2)','D(3,-1':'fyz2','D(3,0)':'fz3',
513-
'D(3,1)':'fxz2','D(3,2)':'fxyz','D(3,3)':'fy(3x2-y2)',}
510+
Names = {'D(1,-1)':'py','D(1,0)':'pz','D(1,1)':'px',
511+
'D(2,-2)':'dxy','D(2,-1)':'dyz','D(2,0)':'dz2','D(2,1)':'dxz','D(2,2)':'dx2-y2',
512+
'D(3,-3)':'fy(3x2-y2)','D(3,-2)':'fxyz','D(3,-1)':'fyz2','D(3,0)':'fz3',
513+
'D(3,1)':'fxz2','D(3,2)':'fz(x2-y2)','D(3,3)':'fx(x2-3y2)',}
514514
mainSizer.Add(wx.StaticText(deformation,label=' Deformation parameters:'))
515515
orbSizer = wx.FlexGridSizer(0,9,2,2)
516516
for iorb,orb in enumerate(deformationData[dId]):

GSASII/GSASIIplot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,6 +3523,7 @@ def PlotDeform(G2frame,general,atName,atType,deform,UVmat,radial,neigh):
35233523
Y = 0.5*np.outer(npsind(PHI),npsind(PSI))
35243524
Z = 0.5*np.outer(np.ones(np.size(PHI)),npcosd(PSI))
35253525
XYZ = np.array([X.flatten(),Y.flatten(),Z.flatten()])
3526+
# XYZ = np.inner(UVmat,XYZ.T)
35263527
RAP = G2mth.Cart2Polar(XYZ[0],XYZ[1],XYZ[2])
35273528
P = np.zeros((31,31))
35283529
for shc in SHC:

0 commit comments

Comments
 (0)