Changeset 4592 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Oct 13, 2020 9:05:15 AM (2 years ago)
Author:
vondreele
Message:

fix crash in CalcPDF where the profile W array was 1 longer than the others - no idea why.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r4588 r4592  
    308308    #subtract backgrounds - if any & use PWDR limits
    309309    IofQ = copy.deepcopy(xydata['Sample'])
    310     IofQ[1] = np.array(IofQ[1])[:,Ibeg:Ifin]
     310    IofQ[1] = np.array([I[Ibeg:Ifin] for I in IofQ[1]])
    311311    if data['Sample Bkg.']['Name']:
    312312        IofQ[1][1] += xydata['Sample Bkg.'][1][1][Ibeg:Ifin]*data['Sample Bkg.']['Mult']
Note: See TracChangeset for help on using the changeset viewer.