Changeset 2368


Ignore:
Timestamp:
Jul 10, 2016 2:11:08 PM (5 years ago)
Author:
vondreele
Message:

improve histogram IVP interpolation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2367 r2368  
    32083208#        GSASIIpath.IPyBreak()
    32093209        try:
    3210             lut = si.SmoothSphereBivariateSpline(Beta,Phi,Rmd,s=len(Beta))
     3210            sfac = 1
     3211            while True:
     3212                try:
     3213                    lut = si.SmoothSphereBivariateSpline(Beta,Phi,Rmd,s=sfac)
     3214                    break
     3215                except ValueError:
     3216                    sfac *= 1.2
    32113217            Z = [lut(r*np.pi/180.,p*np.pi/180.) for r,p in zip(list(R),list(P))]
    32123218        except AttributeError:
Note: See TracChangeset for help on using the changeset viewer.