Changeset 2334 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Jun 20, 2016 1:23:28 PM (7 years ago)
Author:
vondreele
Message:

fix mask array issue with si.interp1d in scipy 17.0+; use ma.getdata to use nonmasked data
fix problem with update of anomalous scattering density on copy substances for small angle stuff
fix this in AddSubstance? also.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r2239 r2334  
    2222import scipy as sp
    2323import numpy.linalg as nl
     24import numpy.ma as ma
    2425import random as rand
    2526from numpy.fft import ifft, fft, fftshift
     
    616617                bakVals[i] = parmDict[pfx+'Back;'+str(i)]
    617618            bakInt = si.interp1d(bakPos,bakVals,'linear')
    618             yb = bakInt(xdata)
     619            yb = bakInt(ma.getdata(xdata))
    619620        sumBk[0] = np.sum(yb)
    620621#Debye function       
Note: See TracChangeset for help on using the changeset viewer.