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

cleaned up python code #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

cleaned up python code #32

wants to merge 1 commit into from

Conversation

Hevia
Copy link
Member

@Hevia Hevia commented Nov 22, 2020

No description provided.

@Hevia Hevia 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