Changeset 2895 for branch/2frame/GSASIIphsGUI.py
- Timestamp:
- Jul 2, 2017 7:27:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/2frame/GSASIIphsGUI.py
r2893 r2895 444 444 used (not recommended when alpha >> 120 or << 60, due to correlation.) 445 445 446 For standard settings of space groups, space group numbers (1-230) can alternately 447 be entered. 448 446 449 GSAS-II will accept non-standard settings of space groups. For example, space 447 450 group "P -1" can be set to include face centering, using symbol "F -1" and "P 1 1 21/a" … … 452 455 ''' 453 456 dlg = G2G.SingleStringDialog(General,'Get Space Group', 454 ' Input the space group with spaces between axial fields \n (e.g. p 21/c, P 63/m m c, P 4/m m m ',457 ' Input the space group with spaces between axial fields \n (e.g. p 21/c, P 63/m m c, P 4/m m m) or enter a space\n group number between 1 and 230.', 455 458 value=generalData['SGData']['SpGrp'],help=helptext) 456 459 if not dlg.Show(): … … 458 461 return 459 462 else: 460 Flds = dlg.GetValue().split() 461 dlg.Destroy() 462 #get rid of extra spaces between fields first 463 for fld in Flds: fld = fld.strip() 464 SpcGp = ' '.join(Flds) 463 try: 464 # has a space group number been input? 465 spcnum = int(dlg.GetValue()) 466 if 1 <= spcnum <= 230: 467 SpcGp = G2spc.spgbyNum[spcnum] 468 else: 469 msg = 'Space Group Error' 470 Style = wx.ICON_EXCLAMATION 471 wx.MessageBox('Invalid space group number',caption=msg,style=Style) 472 return 473 except: 474 #get rid of extra spaces between fields first 475 Flds = dlg.GetValue().split() 476 for fld in Flds: fld = fld.strip() 477 SpcGp = ' '.join(Flds) 478 finally: 479 dlg.Destroy() 465 480 # try a lookup on the user-supplied name 466 481 SpGrpNorm = G2spc.StandardizeSpcName(SpcGp) … … 481 496 SGTxt.SetLabel(generalData['SGData']['SpGrp']) 482 497 msg = 'Space Group Information' 483 G2 gd.SGMessageBox(General,msg,text,table).Show()498 G2G.SGMessageBox(General,msg,text,table).Show() 484 499 if generalData['Type'] == 'magnetic': 485 500 Nops = len(SGData['SGOps'])*len(SGData['SGCen']) … … 884 899 generalData['SuperSg'] = SSymbol 885 900 msg = 'Superspace Group Information' 886 G2 gd.SGMessageBox(General,msg,text,table).Show()901 G2G.SGMessageBox(General,msg,text,table).Show() 887 902 else: 888 903 text = [E+'\nSuperspace Group set to previous'] … … 5708 5723 copyDict[name] = sourceDict[name][1] 5709 5724 elif name in ['Size','Mustrain']: 5710 copyDict[name] = [sourceDict[name][0],sourceDict[name][2],sourceDict[name][ 4]]5725 copyDict[name] = [sourceDict[name][0],sourceDict[name][2],sourceDict[name][5]] 5711 5726 elif name == 'Pref.Ori.': 5712 5727 copyDict[name] = [sourceDict[name][0],sourceDict[name][2]] … … 5749 5764 data['Histograms'][item][name][0] = copy.deepcopy(copyDict[name][0]) 5750 5765 data['Histograms'][item][name][2] = copy.deepcopy(copyDict[name][1]) 5751 data['Histograms'][item][name][ 4] = copy.deepcopy(copyDict[name][2])5766 data['Histograms'][item][name][5] = copy.deepcopy(copyDict[name][2]) 5752 5767 elif name == 'Pref.Ori.': 5753 5768 data['Histograms'][item][name][0] = copy.deepcopy(copyDict[name][0])
Note: See TracChangeset
for help on using the changeset viewer.