Changeset 3619
- Timestamp:
- Sep 25, 2018 11:07:53 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r3600 r3619 3865 3865 'GSAS-II project file (*.gpx)|*.gpx',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT) 3866 3866 try: 3867 if dlg.ShowModal() == wx.ID_OK: 3867 if dlg.ShowModal() == wx.ID_OK: #TODO: what about Cancel? 3868 3868 self.GSASprojectfile = dlg.GetPath() 3869 3869 self.GSASprojectfile = G2IO.FileDlgFixExt(dlg,self.GSASprojectfile) -
trunk/GSASIIphsGUI.py
r3617 r3619 2464 2464 PatternId = G2gd.GetGPXtreeItemId(G2frame,G2frame.root,PatternName) 2465 2465 UnitCellsId = G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Unit Cells List') 2466 magData = G2frame.GPXtree.GetItemPyData(UnitCellsId)[5] 2466 UCdata = G2frame.GPXtree.GetItemPyData(UnitCellsId) 2467 magData = UCdata[5] 2467 2468 magKeep = [] 2468 2469 magIds = [] … … 2540 2541 G2cnstG.TransConstraints(G2frame,data,newPhase,magchoice['Trans'],vvec,atCodes) #data is old phase 2541 2542 G2frame.newGPXfile = phaseName+'.gpx' 2543 UCdata[5] = [] #clear away other mag choices from chem phase in new project 2544 G2frame.GPXtree.SetItemPyData(UnitCellsId,UCdata) 2542 2545 G2frame.OnFileSaveas(event) 2543 2546 G2frame.GPXtree.SelectItem(sub) -
trunk/GSASIIpwdGUI.py
r3618 r3619 3410 3410 G2frame.GPXtree.SetItemPyData(UnitCellsId,data) 3411 3411 wx.CallAfter(UpdateUnitCellsGrid,G2frame,data) 3412 elif c < 0: 3413 r = event.GetRow() 3414 phase = magcells[r] 3415 SGData = phase['SGData'] 3416 msg = 'Magnetic space group information for '+phase['Name'] 3417 text,table = G2spc.SGPrint(SGData,AddInv=True) 3418 text[0] = ' Magnetic Space Group: '+SGData['MagSpGrp'] 3419 text[3] = ' The magnetic lattice point group is '+SGData['MagPtGp'] 3420 OprNames,SpnFlp = G2spc.GenMagOps(SGData) 3421 G2G.SGMagSpinBox(G2frame.dataWindow,msg,text,table,SGData['SGCen'],OprNames, 3422 SGData['SpnFlp'],False).Show() 3412 3423 3413 3424 def MakeNewPhase(event): … … 3903 3914 table.append(row) 3904 3915 MagCellsTable = G2G.Table(table,rowLabels=rowLabels,colLabels=colLabels,types=Types) 3905 G2frame.GetStatusBar().SetStatusText('Double click Keep to refresh Keep flags ',1)3916 G2frame.GetStatusBar().SetStatusText('Double click Keep to refresh Keep flags, row no. to see sym. ops.',1) 3906 3917 magDisplay = G2G.GSGrid(G2frame.dataWindow) 3907 3918 magDisplay.SetTable(MagCellsTable, True) -
trunk/GSASIIspc.py
r3617 r3619 1233 1233 else: 1234 1234 Spn.append(1) 1235 elif len(Flds) == 3: # 3m & m3; one generator 1236 if "'" in mSgSym: #could be 1 or 2 '; doesn't matter. 1237 Spn.append(-1) 1235 elif len(Flds) == 3: # 3m & m3; 1 or 2 generator 1236 if SGData['SGPtGrp'] == '-3m': 1237 if not mSgSym.count("'"): 1238 Spn += [1,1,] 1239 elif mSgSym.count("'") == 2: 1240 Spn += [-1,1,] 1241 elif "3'" in mSgSym: 1242 Spn += [1,-1,] 1243 else: 1244 Spn += [-1,-1,] 1238 1245 else: 1239 Spn.append(1) 1246 if "'" in mSgSym: #could be 1 or 2 '; doesn't matter. 1247 Spn.append(-1) 1248 else: 1249 Spn.append(1) 1240 1250 else: #the rest; 3 generators. NB: any ' before / in 1st field ignored 1241 1251 for fld in Flds[1:]:
Note: See TracChangeset
for help on using the changeset viewer.