Changeset 4620 for trunk


Ignore:
Timestamp:
Oct 23, 2020 1:40:51 PM (3 years ago)
Author:
vondreele
Message:

fix counting bug in SumDialog?.OnTest?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4594 r4620  
    35453545                        xMin = np.searchsorted(x,self.Limits[1][0])
    35463546                        xMax = np.searchsorted(x,self.Limits[1][1])
    3547                         x = x[xMin:xMax]
    3548                         y = y[xMin:xMax]
    3549                         lenX = xMax-xMin
     3547                        x = x[xMin:xMax+1]
     3548                        y = y[xMin:xMax+1]
     3549                        lenX = xMax-xMin+1
    35503550                    XY.append([x,scale*y])
    3551                     v = 1./w
     3551                    v = 1./w[xMin:xMax+1]
    35523552                    if lenX:
    35533553                        if lenX != len(x):
Note: See TracChangeset for help on using the changeset viewer.