-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_data_x.py
51 lines (37 loc) · 1.19 KB
/
test_data_x.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
import data_feed
import data_point
def ex1():
adata_feed = data_feed.Data_feed( "pressure_data.txt" )
for ix in range(0, 20):
#print ix
print adata_feed.next_feed()
#ex1()
def ex2():
adata_feed = data_feed.Data_feed( "pressure_data.txt" )
adata_point = data_point.Data_point( )
for ix in range(0, 20):
print ix
data = adata_feed.next_feed()
adata_point.parse( data )
#adata_point.printt()
print adata_point
#ex2()
#print float( "123" )
def ex3():
adata_feed = data_feed.Data_feed( "pressure_data.txt" )
adata_point = data_point.Data_point( )
for ix in range(0, 20):
print ix
data = adata_feed.next_feed()
adata_point.parse( data )
#adata_point.printt()
print adata_point
adata_point.reset()
for ix in range(20, 40):
print ix
data = adata_feed.next_feed()
adata_point.parse( data )
#adata_point.printt()
print adata_point
ex3()