visbrain.objects.HypnogramObj.set_stage

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

Set stage.

Parameters:
stage : str, int

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

idx_start : int

Index where the stage begin.

idx_end : int

Index where the stage finish.