This commit is contained in:
xaver 2020-06-24 16:51:11 +02:00
parent f8e91b39e2
commit a4700cfb05

View File

@ -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()'''
plt.plot(t, f)
plt.show()