Skip to content

Commit 5a718ab

Browse files
committed
cleanup display of deformation parms in GUI
1 parent 2f970fe commit 5a718ab

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

GSASII/GSASIIphsGUI.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12306,18 +12306,22 @@ def OnDelHarm(event):
1230612306
elif deformationData[-dId]['Radial'] == 'Slater' and 'Sl ' in orb[0]:
1230712307
orbSizer.Add(wx.StaticText(deformation,label=orb[0]+' Ne:'))
1230812308
NeSizer(deformation,orbSizer,dId,orb,Indx)
12309+
Np = 2
1230912310
if 'kappa' in orb[1]:
1231012311
orbSizer.Add(wx.StaticText(deformation,label=' kappa:'))
1231112312
Kappa(deformation,orbSizer,dId,orb,Indx)
12312-
nItem = 0
12313+
Np = 1
12314+
for i in range(3*Np): orbSizer.Add((5,5),0)
12315+
iD = 1
1231312316
for item in orb[1]:
1231412317
if 'D' in item:
12315-
nItem += 1
12318+
if iD < int(item[2]):
12319+
iD = int(item[2])
12320+
nItems = orbSizer.GetItemCount()%9
12321+
if nItems:
12322+
nB = 9-nItems
12323+
for i in range(nB): orbSizer.Add((5,5),0)
1231612324
Dsizer(deformation,orbSizer,dId,orb,Indx)
12317-
if nItem in [2,4,6,8,10,12,14]:
12318-
for i in range(3): orbSizer.Add((5,5),0)
12319-
for i in range(3): orbSizer.Add((5,5),0)
12320-
continue
1232112325
mainSizer.Add(orbSizer)
1232212326

1232312327
SetPhaseWindow(deformation,mainSizer)

0 commit comments

Comments
 (0)