3.backup
This commit is contained in:
parent
312685835e
commit
f8e91b39e2
@ -4,14 +4,11 @@ import glob
|
|||||||
import IPython
|
import IPython
|
||||||
from IPython import embed
|
from IPython import embed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def parse_dataset(dataset_name):
|
def parse_dataset(dataset_name):
|
||||||
assert(os.path.exists(dataset_name))
|
assert(os.path.exists(dataset_name))
|
||||||
f = open(dataset_name, 'r')
|
f = open(dataset_name, 'r')
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
f.close()
|
f.close()
|
||||||
print(type(lines))
|
|
||||||
|
|
||||||
time = []
|
time = []
|
||||||
frequency = []
|
frequency = []
|
||||||
@ -31,9 +28,9 @@ def parse_dataset(dataset_name):
|
|||||||
return time, frequency, amplitude
|
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)
|
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