From a4700cfb0547ed2c08d967b4a0e845704e711b05 Mon Sep 17 00:00:00 2001 From: xaver Date: Wed, 24 Jun 2020 16:51:11 +0200 Subject: [PATCH] 3.backup --- second_try.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/second_try.py b/second_try.py index 1521804..a134737 100644 --- a/second_try.py +++ b/second_try.py @@ -19,7 +19,7 @@ def parse_dataset(dataset_name): l = lines[i].strip() if len(l) > 0 and l[0] is not '#': - temp = list(map(float, l.split(l))) + temp = list(map(float, l.split())) time.append(temp[0]) frequency.append(temp[1]) @@ -28,9 +28,9 @@ def parse_dataset(dataset_name): return time, frequency, amplitude -dataset = os.path.join('D:\\', 'jar_project', 'JAR', '2020-06-22-aa', 'beats-eod.dat') +dataset = os.path.join('D:\\', 'jar_project', 'JAR', '2020-06-22-ac', 'beats-eod.dat') t, f, a = parse_dataset(dataset) -'''plt.plot(t, f) -plt.show()''' \ No newline at end of file +plt.plot(t, f) +plt.show() \ No newline at end of file