Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start Sleep GUI without a hypnogram #82

Open
Teteros opened this issue Nov 8, 2020 · 0 comments
Open

Cannot start Sleep GUI without a hypnogram #82

Teteros opened this issue Nov 8, 2020 · 0 comments
Assignees

Comments

@Teteros
Copy link

Teteros commented Nov 8, 2020

The prompt always opens, even with hypno=None passed to visbrain.gui.Sleep()

if hypno is None:
hypno = dialog_load(self, "Open hypnogram", upath,
"Text file (*.txt);;Elan (*.hyp);;"
"CSV file (*.csv);;EDF+ file(*.edf);"
";All files (*.*)")
hypno = None if hypno == '' else hypno

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.

@TomBugnon TomBugnon self-assigned this Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants