Changeset 1838


Ignore:
Timestamp:
May 6, 2015 12:19:35 PM (7 years ago)
Author:
vondreele
Message:

fix problem reading TOF powder data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1831 r1838  
    13261326                rd.powderdata[0] = rd.powderdata[0][:-1]+cw/2.
    13271327                if rd.GSAS:     #NB: old GSAS wanted intensities*CW even if normalized!
    1328                     rd.powderdata[1] = rd.powderdata[1]/cw[:len(rd.powderdata[1])]
    1329                     rd.powderdata[2] = rd.powderdata[2]*cw[:len(rd.powderdata[1])]**2  #1/var=w at this point
     1328                    npts = min(len(rd.powderdata[0]),len(rd.powderdata[1]),len(cw))
     1329                    rd.powderdata[1] = rd.powderdata[1][:npts]/cw[:npts]
     1330                    rd.powderdata[2] = rd.powderdata[2][:npts]*cw[:npts]**2  #1/var=w at this point
    13301331                else:       #NB: from topas/fullprof type files
    13311332                    rd.powderdata[1] = rd.powderdata[1][:-1]
Note: See TracChangeset for help on using the changeset viewer.