Changeset 2184 for trunk/GSASIIphsGUI.py
- Timestamp:
- Mar 25, 2016 10:36:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r2183 r2184 1205 1205 1206 1206 mainSizer.Add(FlipSizer()) 1207 if generalData['Type'] in ['nuclear','macromolecular' ]:1207 if generalData['Type'] in ['nuclear','macromolecular','faulted',]: 1208 1208 G2G.HorizontalLine(mainSizer,General) 1209 1209 mainSizer.Add(MCSASizer()) … … 1249 1249 if Atoms.GetColLabelValue(c) == 'refine': 1250 1250 Type = generalData['Type'] 1251 if Type in ['nuclear','macromolecular','modulated' ]:1251 if Type in ['nuclear','macromolecular','modulated','faulted',]: 1252 1252 choice = ['F - site fraction','X - coordinates','U - thermal parameters'] 1253 1253 elif Type in ['magnetic',]: … … 1669 1669 if generalData['Type'] == 'macromolecular': 1670 1670 atomData.append([0,Name,'',Name,El,'',x,y,z,1,Sytsym,Mult,'I',0.10,0,0,0,0,0,0,atId]) 1671 elif generalData['Type'] == 'nuclear':1671 elif generalData['Type'] in ['nuclear','faulted',]: 1672 1672 atomData.append([Name,El,'',x,y,z,1,Sytsym,Mult,'I',0.01,0,0,0,0,0,0,atId]) 1673 elif generalData['Type'] in ['modulated','magnetic' ]:1673 elif generalData['Type'] in ['modulated','magnetic',]: 1674 1674 atomData.append([Name,El,'',x,y,z,1,Sytsym,Mult,'I',0.01,0,0,0,0,0,0,atId,[],[], 1675 1675 {'SS1':{'waveType':'Fourier','Sfrac':[],'Spos':[],'Sadp':[],'Smag':[]}}]) … … 1853 1853 generalData = data['General'] 1854 1854 SGData = generalData['SGData'] 1855 if generalData['Type'] in ['nuclear','modulated', ]:1855 if generalData['Type'] in ['nuclear','modulated','faulted',]: 1856 1856 if oldatom: 1857 1857 opr = oldatom[5] … … 1888 1888 if generalData['Type'] == 'macromolecular': 1889 1889 atomData.insert(indx,[0,Name,'',Name,El,'',x,y,z,1,Sytsym,Mult,'I',0.10,0,0,0,0,0,0,atId]) 1890 elif generalData['Type'] == 'nuclear':1890 elif generalData['Type'] in ['nuclear','faulted',]: 1891 1891 atomData.insert(indx,[Name,El,'',x,y,z,1,Sytsym,Mult,'I',0.01,0,0,0,0,0,0,atId]) 1892 1892 elif generalData['Type'] in ['modulated','magnetic']: … … 2411 2411 plotDefaults = {'oldxy':[0.,0.],'Quaternion':[0.,0.,0.,1.],'cameraPos':30.,'viewDir':[0,0,1], 2412 2412 'viewPoint':[[0.,0.,0.],[]],} 2413 Indx = {} 2413 2414 2414 2415 def OnLaue(event): … … 2526 2527 widths = Layers['Width'][0] 2527 2528 flags = Layers['Width'][1] 2528 Indx = {}2529 2529 widthSizer = wx.BoxSizer(wx.HORIZONTAL) 2530 2530 for i in range(2): … … 2664 2664 Names = [layer['Name'] for layer in Layers['Layers']] 2665 2665 transArray = Layers['Transitions'] 2666 Indx = {}2667 2666 layerData.transGrids = [] 2668 2667 if not Names or not transArray: … … 3272 3271 drawingData['showRigidBodies'] = True 3273 3272 cx,ct,cs,ci = [0,0,0,0] 3274 if generalData['Type'] in ['nuclear','modulated' ]:3273 if generalData['Type'] in ['nuclear','modulated','faulted',]: 3275 3274 cx,ct,cs,ci = [2,1,6,17] #x, type, style & index 3276 3275 elif generalData['Type'] == 'macromolecular': … … 4315 4314 SetupDrawingData() 4316 4315 drawingData = data['Drawing'] 4317 if generalData['Type'] == 'nuclear':4316 if generalData['Type'] in ['nuclear','faulted',]: 4318 4317 pickChoice = ['Atoms','Bonds','Torsions','Planes'] 4319 4318 elif generalData['Type'] == 'macromolecular':
Note: See TracChangeset
for help on using the changeset viewer.