KWR-Water / pysimdeum

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

Possible mistake in user document #18

Open Yukun-Xie opened 2 years ago

Yukun-Xie commented 2 years 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