Changeset 12842 for fact/tools/pyscripts/pyfact/pyfact.py
- Timestamp:
- 02/04/12 07:45:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/pyfact.py
r12841 r12842 6 6 from ctypes import * 7 7 import numpy as np 8 9 import scipy.signal as spsi 8 from scipy import signal 10 9 11 10 # get the ROOT stuff + my shared libs … … 149 148 a = np.zeros( windowSize ) 150 149 a[0] = len(b) 151 smoothData[:,:] = s psi.lfilter(b, a, smoothData[:,:])150 smoothData[:,:] = signal.lfilter(b, a, smoothData[:,:]) 152 151 153 152 self.smoothData = smoothData … … 170 169 b[length-1] = 1. 171 170 a[0] = 1. 172 cfdData[:,:] = s psi.lfilter(b, a, cfdData[:,:])171 cfdData[:,:] = signal.lfilter(b, a, cfdData[:,:]) 173 172 174 173 self.cfdData = cfdData
Note:
See TracChangeset
for help on using the changeset viewer.