3.backup
This commit is contained in:
parent
f8e91b39e2
commit
a4700cfb05
@ -19,7 +19,7 @@ def parse_dataset(dataset_name):
|
|||||||
l = lines[i].strip()
|
l = lines[i].strip()
|
||||||
|
|
||||||
if len(l) > 0 and l[0] is not '#':
|
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])
|
time.append(temp[0])
|
||||||
frequency.append(temp[1])
|
frequency.append(temp[1])
|
||||||
@ -28,9 +28,9 @@ def parse_dataset(dataset_name):
|
|||||||
return time, frequency, amplitude
|
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)
|
t, f, a = parse_dataset(dataset)
|
||||||
|
|
||||||
'''plt.plot(t, f)
|
plt.plot(t, f)
|
||||||
plt.show()'''
|
plt.show()
|
Loading…
Reference in New Issue
Block a user