Open jrvmalik opened 4 years ago
Hi John,
Thank you for your email.
File "seq_seq_annot_DS1DS2.py", line 78, in read_mitbih
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 notifications@github.com 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
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 https://github.com/SajadMo/ECG-Heartbeat-Classification-seq2seq-model/issues/3?email_source=notifications&email_token=AD4D7SLSKAVGN6K5XD6VQHTQVVXWNA5CNFSM4JR4QVL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4GURAA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4D7SMS6Y54WWROWWZKC7TQVVXWNANCNFSM4JR4QVLQ .
Hi Sajad
I get the following error when running the code.