Skip to content

Commit 9da2cbd

Browse files
committed
fixes to spinning RBs
1 parent b705ad9 commit 9da2cbd

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

GSASII/GSASIImiscGUI.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,9 +1372,8 @@ def LogCellChanges(G2frame):
13721372
pId = phasedict['pId']
13731373
SGData = phasedict['General']['SGData']
13741374
for hist in phasedict['Histograms']:
1375-
if not phasedict['Histograms'][hist]['Use']: continue
1376-
#skip single crystal histograms!
1377-
if 'Type' in phasedict['Histograms'][hist] and 'S' in phasedict['Histograms'][hist]['Type']: continue
1375+
if not phasedict['Histograms'][hist]['Use']: continue
1376+
if 'HKLF' in hist: continue #skip single crystal histograms!
13781377
hId = Histograms[hist]['hId']
13791378
if any(phasedict['Histograms'][hist]['HStrain'][1]) or phasedict['General']['Cell'][0]:
13801379
cellList,cellSig = G2lat.getCellSU(pId,hId,SGData,parmDict,covData)

GSASII/GSASIIphsGUI.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14182,11 +14182,11 @@ def OnAddRB(event):
1418214182
data['RBModels'][rbType] = []
1418314183
if rbType == 'Spin': #convert items to lists of shells
1418414184
for name in ['atColor','atType','Natoms','nSH','Radius','RBId','RBname','RBsym']:
14185-
#patch
14186-
if name == 'Radius' and name not in rbObj:
14187-
item = rbObj['radius']
14188-
else:
14189-
item = rbObj[name]
14185+
# #patch
14186+
# if name == 'Radius' and name not in rbObj:
14187+
# item = rbObj['radius']
14188+
# else:
14189+
item = rbObj[name]
1419014190
rbObj[name] = [item,]
1419114191
data['RBModels'][rbType].append(copy.deepcopy(rbObj))
1419214192
RBData[rbType][rbId]['useCount'] += 1

0 commit comments

Comments
 (0)