Actions
F0 IIR Simulations » History » Revision 1
Revision 1/3
| Next »
Alexis Jeandet, 05/11/2016 02:12 AM
F0 IIR Simulations¶
import numpy as np
import matplotlib.pyplot as plt
import glob
import pandas as pds
inputsig = pds.read_csv("./2016-11-05_01-35-28/input.txt",sep=" ",header=None)
inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])]
outputsig = pds.read_csv("./2016-11-05_01-35-28/output_fx.txt",sep=" ",header=None)
outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)]
for folder in glob.glob("./2016*"):
inputsig = pds.read_csv(folder+"/input.txt",sep=" ",header=None)
inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])]
outputsig = pds.read_csv(folder+"/output_fx.txt",sep=" ",header=None)
outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)]
f, axarr = plt.subplots(1,2,figsize=(14, 6))
(outputsig.filter(regex="CH*")- inputsig*0.8912)[150:].plot(ax=axarr[0])
axarr[0].legend(loc='upper right')
(outputsig.filter(regex="CH*")[:100]/0.8912).plot(ax=axarr[1])
axarr[1].legend(loc='upper right')
plt.show()
Updated by Alexis Jeandet about 8 years ago · 1 revisions