Changeset 4546


Ignore:
Timestamp:
Aug 17, 2020 4:29:46 PM (14 months ago)
Author:
vondreele
Message:

correct ring intensities for polarization in IntStrSta?
fill missing parm in OnAppendDzero? part of stress-strain
skip motion processing is Page doesn't exist

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r4545 r4546  
    13291329            ellipse = FitEllipse(R['ImxyObs'].T)
    13301330            ringxy,ringazm = makeRing(ring['Dcalc'],ellipse,0,0.,scalex,scaley,Image,5)
     1331            XY = np.array(ringxy).T
     1332            Th,Azm = GetTthAzm(XY[0],XY[1],Controls)
     1333            pola = G2pwd.Polarization(Controls['PolaVal'][0],Th,Azm-90.)[0]
    13311334            ring['ImxyCalc'] = np.array(ringxy).T[:2]
    13321335            ringint = np.array([float(Image[int(x*scalex),int(y*scaley)]) for y,x in np.array(ringxy)[:,:2]])
    13331336            ringint /= np.mean(ringint)
     1337            ringint /= pola
    13341338            G2fil.G2Print (' %s %.3f %s %.3f %s %d'%('d-spacing',ring['Dcalc'],'sig(MRD):',np.sqrt(np.var(ringint)),'# points:',len(ringint)))
    13351339            RingsAI.append(np.array(list(zip(ringazm,ringint))).T)
  • trunk/GSASIIimgGUI.py

    r4492 r4546  
    21462146    def OnAppendDzero(event):
    21472147        data['d-zero'].append({'Dset':1.0,'Dcalc':0.0,'pixLimit':10,'cutoff':1.0,
    2148             'ImxyObs':[[],[]],'ImtaObs':[[],[]],'ImtaCalc':[[],[]],'Emat':[1.0,1.0,1.0],'fixDset':False})
     2148            'ImxyObs':[[],[]],'ImtaObs':[[],[]],'ImtaCalc':[[],[]],'Emat':[1.0,1.0,1.0],'fixDset':False,'Ivar':0})
    21492149        UpdateStressStrain(G2frame,data)
    21502150       
  • trunk/GSASIIplot.py

    r4544 r4546  
    68826882
    68836883    def OnImMotion(event):
     6884        if not Page:
     6885            return
    68846886        Page.SetToolTipString('')
    68856887        sizexy = Data['size']
     
    74887490            dsp = G2img.GetDsp(Xpos,Ypos,Data)
    74897491            StrSta['d-zero'].append({'Dset':dsp,'Dcalc':0.0,'pixLimit':10,'cutoff':0.5,'Ivar':0.0,
    7490                 'ImxyObs':[[],[]],'ImxyCalc':[[],[]],'ImtaObs':[[],[]],'ImtaCalc':[[],[]],'Emat':[1.0,1.0,1.0]})
     7492                'ImxyObs':[[],[]],'ImxyCalc':[[],[]],'ImtaObs':[[],[]],'ImtaCalc':[[],[]],'Emat':[1.0,1.0,1.0],'Ivar':0})
    74917493            R,r = G2img.MakeStrStaRing(StrSta['d-zero'][-1],G2frame.ImageZ,Data)
    74927494            if not len(R):
Note: See TracChangeset for help on using the changeset viewer.