Changeset 2735
- Timestamp:
- Mar 2, 2017 12:48:10 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2734 r2735 1223 1223 if 'INS 1DETAZM' in Iparm: 1224 1224 azm = float(Iparm['INS 1DETAZM']) 1225 s = Iparm['INS FPATH1'].split() 1226 fltPath0 = G2IO.sfloat(s[0]) 1225 fltPath0 = 20. #arbitrary 1226 if 'INS FPATH1' in Iparm: 1227 s = Iparm['INS FPATH1'].split() 1228 fltPath0 = G2IO.sfloat(s[0]) 1227 1229 if 'INS 1BNKPAR' not in Iparm: #bank missing from Iparm file 1228 1230 return [] -
trunk/GSASIIphsGUI.py
r2726 r2735 67 67 atan2d = lambda x,y: 180.*np.arctan2(y,x)/np.pi 68 68 69 def SetPhaseWindow(mainFrame,phasePage,mainSizer,Scroll=0): 70 phasePage.SetSizer(mainSizer) 71 Size = mainSizer.GetMinSize() 69 def SetPhaseWindow(mainFrame,phasePage,mainSizer=None,Size=None,Scroll=0): 70 if not mainSizer is None: 71 phasePage.SetSizer(mainSizer) 72 Size = mainSizer.GetMinSize() 72 73 Size[0] += 40 73 74 Size[1] = min(Size[1]+ 150,500) … … 1783 1784 Atoms.SetCellStyle(row,c,VERY_LIGHT_GREY,True) 1784 1785 Atoms.AutoSizeColumns(False) 1785 G2frame.dataFrame.setSizePosLeft([700,300])1786 SetPhaseWindow(G2frame.dataFrame,Atoms,Size=[700,300]) 1786 1787 1787 1788 # FillAtomsGrid executable code starts here … … 1851 1852 Atoms.SetMargins(0,0) 1852 1853 1853 # G2frame.dataFrame.setSizePosLeft([700,300])1854 1854 Paint() 1855 1855 … … 3398 3398 bottomSizer.Add(StackSizer()) 3399 3399 mainSizer.Add(bottomSizer) 3400 SetPhaseWindow(G2frame.dataFrame,G2frame.layerData,mainSizer,Scroll )3400 SetPhaseWindow(G2frame.dataFrame,G2frame.layerData,mainSizer,Scroll=Scroll) 3401 3401 3402 3402 def OnCopyPhase(event): … … 3835 3835 G2frame.bottomSizer = ShowAtomInfo() 3836 3836 mainSizer.Add(G2frame.bottomSizer) 3837 SetPhaseWindow(G2frame.dataFrame,G2frame.waveData,mainSizer,Scroll )3837 SetPhaseWindow(G2frame.dataFrame,G2frame.waveData,mainSizer,Scroll=Scroll) 3838 3838 3839 3839 def OnWaveVary(event): … … 4205 4205 if colLabels[c] not in ['Style','Label','Color']: 4206 4206 drawAtoms.SetColAttr(c,attr) 4207 G2frame.dataFrame.setSizePosLeft([600,300])4207 SetPhaseWindow(G2frame.dataFrame,drawAtoms,Size=[600,300]) 4208 4208 4209 4209 FindBondsDraw(data) … … 7237 7237 G2frame.PawleyRefl.SetMargins(0,0) 7238 7238 G2frame.PawleyRefl.AutoSizeColumns(False) 7239 G2frame.dataFrame.setSizePosLeft([450,300])7239 SetPhaseWindow(G2frame.dataFrame,G2frame.PawleyRefl,Size=[450,300]) 7240 7240 7241 7241 def OnPawleySet(event): … … 7522 7522 G2plt.PlotStructure(G2frame,data) 7523 7523 7524 G2frame.dataFrame.setSizePosLeft([500,300])7525 7524 G2frame.dataFrame.SetStatusText('') 7526 7525 if 'Map Peaks' in data: … … 7539 7538 MapPeaks.SetMargins(0,0) 7540 7539 MapPeaks.AutoSizeColumns(False) 7540 SetPhaseWindow(G2frame.dataFrame,MapPeaks,Size=[440,300]) 7541 7541 7542 7542 def OnPeaksMove(event): -
trunk/GSASIIpwdGUI.py
r2730 r2735 1366 1366 Draw() 1367 1367 1368 1369 1370 1368 ################################################################################ 1371 1369 ##### Instrument parameters … … 1820 1818 subSizer.Add(wx.StaticText(G2frame.dataDisplay,-1,txt.strip()),0,WACV) 1821 1819 labelLst.append('flight path') 1822 elemKeysLst.append(['flt path',1])1820 elemKeysLst.append(['fltPath',1]) 1823 1821 dspLst.append([10,2]) 1824 1822 refFlgElem.append(None) -
trunk/GSASIIstrIO.py
r2732 r2735 2256 2256 hapDict[pfx+name] = hapData['HStrain'][0][i] 2257 2257 HSvals.append(hapDict[pfx+name]) 2258 if hapData['HStrain'][1][i] :2258 if hapData['HStrain'][1][i] and not hapDict[pfx+'newLeBail']: 2259 2259 hapVary.append(pfx+name) 2260 2260 controlDict[pfx+'poType'] = hapData['Pref.Ori.'][0] … … 2283 2283 controlDict[pfx+item+'Type'] = hapData[item][0] 2284 2284 hapDict[pfx+item+';mx'] = hapData[item][1][2] 2285 if hapData[item][2][2] :2285 if hapData[item][2][2] and not hapDict[pfx+'newLeBail']: 2286 2286 hapVary.append(pfx+item+';mx') 2287 2287 if hapData[item][0] in ['isotropic','uniaxial']: 2288 2288 hapDict[pfx+item+';i'] = hapData[item][1][0] 2289 if hapData[item][2][0] :2289 if hapData[item][2][0] and not hapDict[pfx+'newLeBail']: 2290 2290 hapVary.append(pfx+item+';i') 2291 2291 if hapData[item][0] == 'uniaxial': 2292 2292 controlDict[pfx+item+'Axis'] = hapData[item][3] 2293 2293 hapDict[pfx+item+';a'] = hapData[item][1][1] 2294 if hapData[item][2][1] :2294 if hapData[item][2][1] and not hapDict[pfx+'newLeBail']: 2295 2295 hapVary.append(pfx+item+';a') 2296 2296 else: #generalized for mustrain or ellipsoidal for size … … 2306 2306 sfx = ';'+str(i) 2307 2307 hapDict[pfx+item+sfx] = hapData[item][4][i] 2308 if hapData[item][5][i] :2308 if hapData[item][5][i] and not hapDict[pfx+'newLeBail']: 2309 2309 hapVary.append(pfx+item+sfx) 2310 2310 if Phases[phase]['General']['Type'] != 'magnetic':
Note: See TracChangeset
for help on using the changeset viewer.