-
Notifications
You must be signed in to change notification settings - Fork 55
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
Error #3
Comments
Hi John,
Thank you for your email.
File "seq_seq_annot_DS1DS2.py", line 78, in read_mitbih
* data = _data[:(len(_data)/ max_time) * max_time, :]*
Please change the above line of code to:>>>
data = _data[:int(len(_data)/ max_time) * max_time, :]
Hope, it helps.
Regards,
Sajad
…On Tue, Nov 26, 2019 at 12:07 PM John Malik ***@***.***> wrote:
Hi Sajad
I get the following error when running the code.
Traceback (most recent call last):
File "seq_seq_annot_DS1DS2.py", line 441, in <module>
main()
File "seq_seq_annot_DS1DS2.py", line 226, in main
run_program(args)
File "seq_seq_annot_DS1DS2.py", line 242, in run_program
X_train, y_train = read_mitbih(filename, max_time, classes=classes, max_nlabel=50000,trainset=1)
File "seq_seq_annot_DS1DS2.py", line 78, in read_mitbih
data = _data[:(len(_data)/ max_time) * max_time, :]
TypeError: slice indices must be integers or None or have an __index__ method
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4D7SMS6Y54WWROWWZKC7TQVVXWNANCNFSM4JR4QVLQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sajad
I get the following error when running the code.
The text was updated successfully, but these errors were encountered: