from linegenerator import LineGenerator


class NPointLineGenerator(LineGenerator):

    def __init__(self, name, units, start, end, num):

        step = (end - start)/num
        #
        # step = (end - start)/(num + 1)
        # start += step/2
        # end -= step/2

        super(NPointLineGenerator, self).__init__(name, units, start, step, num)

from linegenerator import LineGenerator


class NPointLineGenerator(LineGenerator):

    def __init__(self, name, units, start, end, num):

        step = (end - start)/num
        start += step/2

        super(NPointLineGenerator, self).__init__(name, units, start, step, num)

Add half step offset