Changeset 3168 for trunk/GSASIIphsGUI.py
- Timestamp:
- Nov 30, 2017 3:00:18 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3148 r3168 2253 2253 if r < 0 and c < 0: 2254 2254 for row in range(Atoms.GetNumberRows()): 2255 Atoms.SelectRow(row,True) 2255 Atoms.SelectRow(row,True) 2256 wx.CallAfter(Paint) 2257 return 2256 2258 if r < 0: #double click on col label! Change all atoms! 2257 2259 noSkip = True … … 4471 4473 cx,ct,cs,cia = generalData['AtomPtrs'] 4472 4474 atomData = data['Atoms'] 4473 D4Map = generalData ['4DmapData']4475 D4Map = generalData.get('4DmapData',{'rho':[]}) 4474 4476 if waveData.GetSizer(): 4475 4477 waveData.GetSizer().Clear(True) … … 5193 5195 str(int(Cell[0]))+','+str(int(Cell[1]))+','+str(int(Cell[2])) 5194 5196 atom[cs-1] = G2spc.StringOpsProd(atomOp,newOp,SGData) 5195 if cmx: 5197 if cmx: #magnetic moment 5196 5198 opNum = G2spc.GetOpNum(OprNum,SGData) 5197 5199 mom = np.inner(np.array(atom[cmx:cmx+3]),Bmat) 5198 # print OprNum,newOp,opNum,SpnFlp5200 # print (OprNum,newOp,opNum,nl.det(M),SpnFlp) 5199 5201 atom[cmx:cmx+3] = np.inner(np.inner(mom,M),Amat)*nl.det(M)*SpnFlp[opNum-1] 5200 5202 if atom[cui] == 'A': … … 6375 6377 if dlg.ShowModal() == wx.ID_OK: 6376 6378 for sel in dlg.GetSelections(): 6377 data['Histograms'][keyList[sel]].update(copy Dict)6379 data['Histograms'][keyList[sel]].update(copy.deepcopy(copyDict)) 6378 6380 finally: 6379 6381 dlg.Destroy() … … 6432 6434 data['Histograms'][item][name][2][itm][1] = copy.deepcopy(copyDict[name][itm]) 6433 6435 elif name == 'Twins': 6434 data['Histograms'][item]['Twins'][0][1][1] = copy Dict['Twins']6436 data['Histograms'][item]['Twins'][0][1][1] = copy.deepcopy(copyDict['Twins']) 6435 6437 else: 6436 6438 try: … … 6466 6468 G2G.G2MessageBox(G2frame,'No histograms to copy to') 6467 6469 return 6468 copyDict = {}6469 6470 if 'HKLF' in sourceDict['Histogram']: 6470 6471 copyNames = ['Scale','Extinction','Babinet','Flack','Twins','Fix FXU']
Note: See TracChangeset
for help on using the changeset viewer.