You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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>
.
Hi Sajad
I get the following error when running the code.
The text was updated successfully, but these errors were encountered: