Changeset 3593
- Timestamp:
- Sep 12, 2018 10:40:37 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3591 r3593 2461 2461 magKeep.append(magdata) 2462 2462 magIds.append(mid) 2463 magchoices.append('%s %s %s'%(magdata['Name'],trans,vec))2463 magchoices.append('%s; (%s) + (%s)'%(magdata['Name'],trans,vec)) 2464 2464 if not len(magKeep): 2465 2465 G2frame.ErrorDialog('Magnetic phase selection error','No magnetic phases found; be sure to "Keep" some') … … 2495 2495 MagSytSym = G2spc.MagSytSym(SytSym,dupDir,SGData) 2496 2496 atMxyz.append([MagSytSym,CSI[0]]) 2497 dlg = UseMagAtomDialog(G2frame,magchoice ['Name'],Atms,AtCods,atMxyz,ifDelete=True)2497 dlg = UseMagAtomDialog(G2frame,magchoices[sel],Atms,AtCods,atMxyz,ifDelete=True) 2498 2498 try: 2499 2499 opt = dlg.ShowModal() -
trunk/GSASIIpwdGUI.py
r3591 r3593 3442 3442 kvec = ['0','0','0'] 3443 3443 dlg = G2G.MultiDataDialog(G2frame,title='k-SUBGROUPSMAG options', 3444 prompts=[' kx as fr.',' ky as fr.',' kz as fr.',' Use whole star',' Landau transition',' Give intermediate cells','preserve axes','test for mag. atoms' ],3445 values=kvec+[False,False,False,True,'' ],3446 limits=[['0','1/2',' 1/3','1/4'],['0','1/2','1/3','1/4'],['0','1/2','1/3','1/4','3/2'],[True,False],[True,False],[True,False],[True,False],testAtoms],3447 formats=[' str','str','str','bool','bool','bool','bool','choice'])3444 prompts=[' kx as fr.',' ky as fr.',' kz as fr.',' Use whole star',' Landau transition',' Give intermediate cells','preserve axes','test for mag. atoms','all have moment'], 3445 values=kvec+[False,False,False,True,'',False], 3446 limits=[['0','1/2','-1/2','1/3','-1/3','2/3','1'],['0','1/2','1/3','2/3','1'],['0','1/2','3/2','1/3','2/3','1'],[True,False],[True,False],[True,False],[True,False],testAtoms,[True,False]], 3447 formats=['choice','choice','choice','bool','bool','bool','bool','choice','bool']) 3448 3448 if dlg.ShowModal() == wx.ID_OK: 3449 3449 magcells = [] … … 3455 3455 keepaxes = newVals[6] 3456 3456 atype = newVals[7] 3457 allmom = newVals[8] 3457 3458 magAtms = [atom for atom in controls[14] if atom[1] == atype] 3458 3459 wx.BeginBusyCursor() … … 3485 3486 phase['Cell'] = G2lat.TransformCell(controls[6:12],Trans) 3486 3487 phase['aType'] = atype 3488 found = False 3487 3489 for matm in magAtms: 3488 3490 xyzs = G2spc.GenAtom(matm[3:6],SGData,False,Move=True) … … 3493 3495 if any(CSI[0]): #found one - can quit looking 3494 3496 phase['Keep'] = True 3495 break 3496 if phase['Keep']: #found one 3497 if allmom: 3498 if not any(CSI[0]): 3499 phase['Keep'] = False 3500 found = True 3501 break 3502 if found: #found one 3497 3503 break 3498 3504 magcells.append(phase)
Note: See TracChangeset
for help on using the changeset viewer.