KWR-Water / pysimdeum

SIMDEUM in python
European Union Public License 1.2
15 stars 7 forks source link

Possible mistake in user document #18

Open Yukun-Xie opened 1 year ago

Yukun-Xie commented 1 year ago

def timeindexer(self, l, value, a, b): if a < b: #Here, it should be a <= b.

Otherwise, if the a=b, the person will be 'away' for a whole day, and you will get a 0 denominator in ‘pdf /= np.sum(pdf)’

        l[a:b] = value
    else:
        l[a:len(l)] = value
        l[0:b] = value
    return l