Changeset 5343


Ignore:
Timestamp:
Oct 6, 2022 10:16:28 AM (8 months ago)
Author:
vondreele
Message:

fix issue with TOF data in getPawleydRange & remove an obviously not needed "get"

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r5341 r5343  
    11971197        nhist += 1
    11981198        Inst = Histograms[item]['Instrument Parameters'][0]
    1199         dmax,dmin = [G2lat.Pos2dsp(Inst,t) for t in Histograms[item]['Limits'][1]]
     1199        if 'T' in Inst['Type'][1]:
     1200            dmin,dmax = [G2lat.Pos2dsp(Inst,t) for t in Histograms[item]['Limits'][1]]
     1201        else:   
     1202            dmax,dmin = [G2lat.Pos2dsp(Inst,t) for t in Histograms[item]['Limits'][1]]
    12001203        if dmaxAll is None:
    12011204            dmaxAll = dmax
     
    1362613629                    style=wx.DEFAULT_DIALOG_STYLE)
    1362713630        mainSizer = wx.BoxSizer(wx.VERTICAL)
    13628         mainSizer.Add(wx.StaticText(genDlg,wx.ID_ANY,
    13629             'Set Pawley Extraction Parameters for phase '+generalData.get('Name','?')))
     13631        mainSizer.Add(wx.StaticText(genDlg,label='Set Pawley Extraction Parameters for phase '+generalData['Name']))
    1363013632        mainSizer.Add([5,10])
    1363113633        pawlRef = G2G.G2CheckBoxFrontLbl(genDlg,' Do Pawley refinement?: ',generalData,'doPawley',DisablePawleyOpts)
  • trunk/GSASIIstrMath.py

    r5307 r5343  
    15591559#        MmodAR,MmodBR,MmodAI,MmodBI = G2mth.MagMod(glTau,mXYZ,modQ,MSSdata,SGData,SSGData)  #Ntau,Nops,Natm,Mxyz cos,sin parts sum matches drawing
    15601560        mXYZ,MmodAR,MmodBR,MmodAI,MmodBI = G2mth.MagMod2(glTau,Xdata+dXdata,modQ,MSSdata,SGData,SSGData)  #Ntau,Nops,Natm,Mxyz cos,sin parts sum matches drawing
    1561        
     1561        #expand Mmod over mag symm ops. --> GSSdata
    15621562        if not SGData['SGGray']:    #for fixed Mx,My,Mz
    15631563            GSdata = np.inner(Gdata.T,np.swapaxes(SGMT,1,2))  #apply sym. ops.--> Natm,Nops,Nxyz
Note: See TracChangeset for help on using the changeset viewer.