Open Teteros opened 3 years ago
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.
hypno=None
hypno=''
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.
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 doinghypno=''
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.