Skip to content

Comments

cleaned up python code#32

Open
WarmBuns wants to merge 1 commit intomasterfrom
cleanup-python-code
Open

cleaned up python code#32
WarmBuns wants to merge 1 commit intomasterfrom
cleanup-python-code

Conversation

@WarmBuns
Copy link
Member

No description provided.

@WarmBuns WarmBuns requested a review from lloydoad November 22, 2020 03:51
Copy link
Contributor

@lloydoad lloydoad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some questions

Comment on lines +12 to +18
exit()

confirmConnection()
data = recordEEG(stream_connection)
if data == None:
debugPrint("Could not record data from EEG headset... exiting.....")
exit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming these were tested?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also using raise RuntimeError('Some error message') to send an exception to standard error may be the better option.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That does sound like a better option, ill change it

debugPrint("Loading model....")
model_path = f"{Path.cwd()}/model.h5"
model_path = f"{Path.cwd()}/checkpoints/model.h5"
cpu = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this always going to attempt to use GPU then? Whats the point of having the flag

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops I meant to change that, thank you

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

Successfully merging this pull request may close these issues.

2 participants