Closed
Description
pysolo sleep algorithm scans activity using the following formula
single_flies5min[fly] = [( single_flies[fly][i-b1:i+a1].sum() <= inactivity ) for i in range (d*c)]
where in normal conditions b1+a1=5
However this will result in not counting the very first three minutes of inactivity and the very last minute of inactivity in every bout >= 5 minutes, that is an underestimation of "sleep" of 4 minutes per bout.