EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 64 forks source link

Cannot start Sleep GUI without a hypnogram #82

Open Teteros opened 3 years ago

Teteros commented 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.

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.