analysiscenter / cardio

CardIO is a library for data science research of heart signals
https://analysiscenter.github.io/cardio/
Apache License 2.0
248 stars 78 forks source link

syntax error when importing batch.py #4

Closed quzhouxiachuan closed 6 years ago

quzhouxiachuan commented 6 years ago

import os import sys sys.path.append("..") import cardio.dataset as ds from cardio import EcgBatch from cardio.models.metrics import classification_report %env CUDA_VISIBLE_DEVICES=0 import tensorflow as tf
Error message as the following:

User/ydee/anaconda2/lib/python2.7/site-packages/cardio/dataset/dataset/batch.py", line 403 _args = tuple([src_attr, *args]) ^ SyntaxError: invalid syntax

roman-kh commented 6 years ago

CardIO supports python 3.5 or higher.

roman-kh commented 6 years ago

We moved python version check to the earlier stage, so the program should stop with a clear message that a newer python version is needed.

quzhouxiachuan commented 6 years ago

Thanks!