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