Changeset 4950


Ignore:
Timestamp:
Jun 11, 2021 7:49:24 AM (4 months ago)
Author:
vondreele
Message:

remove aspect='eual' from a plot contour call - no longer allowed
put floor on phase fraction of 1e-4 - avoid negatives.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4904 r4950  
    64066406        else:
    64076407            x,y = np.tan(Beta/2.)*np.cos(Phi),np.tan(Beta/2.)*np.sin(Phi)       
    6408         npts = 201
     6408        npts = 101
    64096409        X,Y = np.meshgrid(np.linspace(1.,-1.,npts),np.linspace(-1.,1.,npts))
    64106410        R,P = np.sqrt(X**2+Y**2).flatten(),npatan2d(Y,X).flatten()
     
    65576557            Z = np.reshape(Z,(npts,npts))
    65586558            try:
    6559                 CS = Plot.contour(Y,X,Z,aspect='equal')
     6559                CS = Plot.contour(Y,X,Z)
    65606560                Plot.clabel(CS,fontsize=9,inline=1)
    65616561            except ValueError:
  • trunk/GSASIIstrIO.py

    r4917 r4950  
    30753075                wtFrSum[hId] = 0.
    30763076            if 'PWDR' in histogram:
     3077                parmDict[pfx+'Scale'] = max(1.e-4,parmDict[pfx+'Scale'])
    30773078                for item in ['Scale','Extinction']:
    30783079                    hapData[item][0] = parmDict[pfx+item]
  • trunk/GSASIIstrMath.py

    r4919 r4950  
    25992599def GetIntensityCorr(refl,im,uniq,G,g,pfx,phfx,hfx,SGData,calcControls,parmDict):
    26002600    'Needs a doc string'    #need powder extinction!
     2601    parmDict[hfx+'Scale'] = max(1.e-4,parmDict[hfx+'Scale'])                        #put floor on phase fraction scale
    26012602    Icorr = parmDict[phfx+'Scale']*parmDict[hfx+'Scale']*refl[3+im]               #scale*multiplicity
    26022603    if 'X' in parmDict[hfx+'Type']:
Note: See TracChangeset for help on using the changeset viewer.