Project

General

Profile

F0 IIR Simulations » History » Version 1

Alexis Jeandet, 05/11/2016 02:12 AM

1 1 Alexis Jeandet
# F0 IIR Simulations
2
3
4
```python
5
import numpy as np
6
import matplotlib.pyplot as plt
7
import glob 
8
import pandas as pds
9
```
10
11
12
```python
13
inputsig = pds.read_csv("./2016-11-05_01-35-28/input.txt",sep=" ",header=None)
14
inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])]
15
outputsig = pds.read_csv("./2016-11-05_01-35-28/output_fx.txt",sep=" ",header=None)
16
outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)]
17
18
```
19
20
21
```python
22
for folder in glob.glob("./2016*"):
23
    inputsig = pds.read_csv(folder+"/input.txt",sep=" ",header=None)
24
    inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])]
25
    outputsig = pds.read_csv(folder+"/output_fx.txt",sep=" ",header=None)
26
    outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)]
27
    f, axarr = plt.subplots(1,2,figsize=(14, 6))
28
    (outputsig.filter(regex="CH*")- inputsig*0.8912)[150:].plot(ax=axarr[0])
29
    axarr[0].legend(loc='upper right')
30
    (outputsig.filter(regex="CH*")[:100]/0.8912).plot(ax=axarr[1])
31
    axarr[1].legend(loc='upper right')
32
    plt.show()
33
```
34
35
36
![png](output_2_0.png)
37
38
39
40
![png](output_2_1.png)
41
42
43
44
![png](output_2_2.png)
45
46
47
48
![png](output_2_3.png)
49
50
51
52
![png](output_2_4.png)
53
54
55
56
![png](output_2_5.png)
57
58
59
60
![png](output_2_6.png)
61
62
63
64
![png](output_2_7.png)
65
66
67
68
![png](output_2_8.png)
69
70
71
72
![png](output_2_9.png)
73
74
75
76
![png](output_2_10.png)
77
78
79
80
![png](output_2_11.png)
81
82
83
84
![png](output_2_12.png)
85
86
87
88
![png](output_2_13.png)
89
90
91
92
![png](output_2_14.png)
93
94
95
96
![png](output_2_15.png)
97
98
99
100
![png](output_2_16.png)
101
102
103
104
![png](output_2_17.png)
105
106
107
108
![png](output_2_18.png)
109
110
111
112
![png](output_2_19.png)
113
114
115
116
![png](output_2_20.png)
117
118
119
120
![png](output_2_21.png)
121
122
123
124
![png](output_2_22.png)
125
126
127
128
![png](output_2_23.png)
129
130
131
132
![png](output_2_24.png)