visbrain icon indicating copy to clipboard operation
visbrain copied to clipboard

Cannot start Sleep GUI without a hypnogram

Open Teteros opened this issue 3 years ago • 0 comments

The prompt always opens, even with hypno=None passed to visbrain.gui.Sleep() https://github.com/EtienneCmb/visbrain/blob/b599038e095919dc193b12d5e502d127de7d03c9/visbrain/io/read_sleep.py#L121-L126 doing hypno='' triggers an assertion, while chosing an empty file errors. So there is no way to start Sleep without exiting the hypnogram open file prompt every time.

Sleep doesn't force the open prompt with config and annotation files, so this seems strange to do. Adding a boolean value for it or changing the behaviour to be the same as the latter two parameters should be an easy fix I think.

Teteros avatar Nov 08 '20 01:11 Teteros