Skip to content

sleep algorithm underestimates sleep by four minutes per sleep bout #13

Closed
@ggilestro

Description

@ggilestro

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions