visbrain.objects.HypnogramObj.set_stage

HypnogramObj.set_stage(self, stage, idx_start, idx_end)[source][source]

Set stage.

Parameters
stagestr, int

Stage to define. Should either be a string (e.g ‘art’, ‘rem’…) or an integer.

idx_startint

Index where the stage begin.

idx_endint

Index where the stage finish.