Changeset 4559
- Timestamp:
- Sep 3, 2020 10:27:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4558 r4559 2977 2977 SGData['SGSpin'] = G2spc.GetSGSpin(SGData,SGData['MagSpGrp']) 2978 2978 else: 2979 dlg.Destroy() 2979 2980 return 2980 2981 finally: … … 3023 3024 break 3024 3025 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3026 NShkl = len(G2spc.MustrainNames(SGData)) 3027 NDij = len(G2spc.HStrainNames(SGData)) 3028 UseList = newPhase['Histograms'] 3029 for hist in UseList: 3030 UseList[hist]['Scale'] /= detTrans #scale by 1/volume ratio 3031 UseList[hist]['Mustrain'][4:6] = [NShkl*[0.01,],NShkl*[False,]] 3032 UseList[hist]['HStrain'] = [NDij*[0.0,],NDij*[False,]] 3033 newPhase['General']['Map'] = mapDefault.copy() 3034 sub = G2frame.GPXtree.AppendItem(parent= 3035 G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Phases'),text=phaseName) 3036 G2frame.GPXtree.SetItemPyData(sub,newPhase) 3037 newPhase['Drawing'] = [] 3038 if ifConstr: 3039 G2cnstG.TransConstraints(G2frame,data,newPhase,Trans,Vvec,atCodes) #data is old phase 3040 G2frame.GPXtree.SelectItem(sub) 3040 3041 3041 3042 def OnCompare(event): … … 12178 12179 pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5)) 12179 12180 try: 12180 newMap,new4Dmap= G2mth.SSChargeFlip(data,ReflData,pgbar)12181 result = G2mth.SSChargeFlip(data,ReflData,pgbar) 12181 12182 finally: 12182 12183 pgbar.Destroy() 12183 12184 G2frame.AddToNotebook('4D Charge flip: '+result[2]) 12184 12185 G2frame.AddToNotebook('4D Charge flip: '+result[3]) 12185 mapData.update( newMap)12186 map4DData.update( new4Dmap)12186 mapData.update(result[0]) 12187 map4DData.update(result[1]) 12187 12188 mapData['Flip'] = True 12188 12189 mapSig = np.std(mapData['rho'])
Note: See TracChangeset
for help on using the changeset viewer.