3.backup
This commit is contained in:
parent
312685835e
commit
f8e91b39e2
@ -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()
|
||||
'''plt.plot(t, f)
|
||||
plt.show()'''
|
Loading…
Reference in New Issue
Block a user