nabeelraza commited on
Commit
100d6e4
·
1 Parent(s): e2c21d9

Fix: encoding issue

Browse files
Files changed (1) hide show
  1. read_data.py +1 -2
read_data.py CHANGED
@@ -10,8 +10,7 @@ def normalize(sig):
10
 
11
  def prepare_all_leads(path):
12
  if path.endswith(".txt"):
13
- filecp = codecs.open(path, "r", encoding="base64")
14
- sig = np.loadtxt(filecp, delimiter=',', unpack=True, encoding=None)
15
  elif path.endswith(".npy"):
16
  sig = np.load(path, allow_pickle=True)
17
  x = pywt.wavedec(sig[0], 'db6', level=2)[0]
 
10
 
11
  def prepare_all_leads(path):
12
  if path.endswith(".txt"):
13
+ sig = np.loadtxt(path, delimiter=',', unpack=True)
 
14
  elif path.endswith(".npy"):
15
  sig = np.load(path, allow_pickle=True)
16
  x = pywt.wavedec(sig[0], 'db6', level=2)[0]