def _lightCurve(self, changePoints):
    xx = []
    yy = []
    cell_sizes = self.cellSizes
    for (imin, imax) in zip(changePoints[:(- 1)], changePoints[1:]):
        try:
            xx.extend([(self.tstart + sum(cell_sizes[:imin])), (self.tstart + sum(cell_sizes[:imax]))])
        except IndexError:
            xx.extend([(self.tstart + (imin * cell_sizes)), (self.tstart + (imax * cell_sizes))])
        if self.point_mode:
            (f, sig, weights) = self._point_block_data(imin, (imax - 1))
            yval = sum((weights * f))
        else:
            yval = (sum(self.cellContent[imin:imax]) / sum(cell_sizes[imin:imax]))
        yy.extend([yval, yval])
    return (xx, yy)
def _lightCurve(self, changePoints):
    xx = []
    yy = []
    cell_sizes = self.cellSizes
    for (imin, imax) in zip(changePoints[:(- 1)], changePoints[1:]):
        try:
            xx.extend([(self.tstart + sum(cell_sizes[:imin])), (self.tstart + sum(cell_sizes[:imax]))])
        except IndexError:
            xx.extend([(self.tstart + (imin * cell_sizes)), (self.tstart + (imax * cell_sizes))])
        if self.point_mode:
            (f, sig, weights) = self._point_block_data(imin, (imax - 1))
            yval = sum((weights * f))
        else:
            yval = (sum(self.cellContent[imin:imax]) / sum(cell_sizes[imin:imax]))
        yy.extend([yval, yval])
    return (xx, yy)