From f8e91b39e2c500085a73d4f2466e3b593dda0e0f Mon Sep 17 00:00:00 2001 From: xaver Date: Wed, 24 Jun 2020 16:34:24 +0200 Subject: [PATCH] 3.backup --- second_try.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/second_try.py b/second_try.py index eb620fa..1521804 100644 --- a/second_try.py +++ b/second_try.py @@ -4,14 +4,11 @@ import glob import IPython from IPython import embed - - def parse_dataset(dataset_name): assert(os.path.exists(dataset_name)) f = open(dataset_name, 'r') lines = f.readlines() f.close() - print(type(lines)) time = [] frequency = [] @@ -31,9 +28,9 @@ def parse_dataset(dataset_name): return time, frequency, amplitude -dataset = 'D:\ jar project\ JAR\ 2020-06-22-aa\ beats-eod.dat' +dataset = os.path.join('D:\\', 'jar_project', 'JAR', '2020-06-22-aa', '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