Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1444269 Details for
Bug 1556236
python-pacpy: FTBFS in F28
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
build.log
build.log (text/plain), 59.88 KB, created by
Fedora Release Engineering
on 2018-05-28 22:08:51 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Fedora Release Engineering
Created:
2018-05-28 22:08:51 UTC
Size:
59.88 KB
patch
obsolete
>Mock Version: 1.3.4 >Mock Version: 1.3.4 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-pacpy.spec'], chrootPath='/var/lib/mock/f29-build-12552758-917934/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f70d4f22e10>timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-pacpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False >Building target platforms: noarch >Building for target noarch >Wrote: /builddir/build/SRPMS/python-pacpy-1.0.2-6.fc29.src.rpm >Child return code was: 0 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pacpy.spec'], chrootPath='/var/lib/mock/f29-build-12552758-917934/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f70d4f22e10>timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pacpy.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False >Building target platforms: noarch >Building for target noarch >Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.obTMgi >+ umask 022 >+ cd /builddir/build/BUILD >+ cd /builddir/build/BUILD >+ rm -rf pacpy-1.0.2 >+ /usr/bin/gzip -dc /builddir/build/SOURCES/pacpy-1.0.2.tar.gz >+ /usr/bin/tar -xof - >+ STATUS=0 >+ '[' 0 -ne 0 ']' >+ cd pacpy-1.0.2 >+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . >+ exit 0 >Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZqRsLa >+ umask 022 >+ cd /builddir/build/BUILD >+ cd pacpy-1.0.2 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' >running build >running build_py >creating build >creating build/lib >creating build/lib/pacpy >copying pacpy/filt.py -> build/lib/pacpy >copying pacpy/__init__.py -> build/lib/pacpy >copying pacpy/pac.py -> build/lib/pacpy >creating build/lib/pacpy/tests >copying pacpy/tests/exampledata.npy -> build/lib/pacpy/tests >copying pacpy/tests/test_filt.py -> build/lib/pacpy/tests >copying pacpy/tests/test_pac.py -> build/lib/pacpy/tests >+ sleep 1 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' >running build >running build_py >+ sleep 1 >+ exit 0 >Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.knJGg9 >+ umask 022 >+ cd /builddir/build/BUILD >+ '[' /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch '!=' / ']' >+ rm -rf /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch >++ dirname /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch >+ mkdir -p /builddir/build/BUILDROOT >+ mkdir /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch >+ cd pacpy-1.0.2 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7 >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy >copying build/lib/pacpy/filt.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy >copying build/lib/pacpy/__init__.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy >copying build/lib/pacpy/pac.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests >copying build/lib/pacpy/tests/exampledata.npy -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests >copying build/lib/pacpy/tests/test_filt.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests >copying build/lib/pacpy/tests/test_pac.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py to filt.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/__init__.py to __init__.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py to pac.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests/test_filt.py to test_filt.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/tests/test_pac.py to test_pac.pyc >writing byte-compilation script '/tmp/tmppiXEVl.py' >/usr/bin/python2 -O /tmp/tmppiXEVl.py >removing /tmp/tmppiXEVl.py >running install_egg_info >running egg_info >creating pacpy.egg-info >writing requirements to pacpy.egg-info/requires.txt >writing pacpy.egg-info/PKG-INFO >writing top-level names to pacpy.egg-info/top_level.txt >writing dependency_links to pacpy.egg-info/dependency_links.txt >writing manifest file 'pacpy.egg-info/SOURCES.txt' >reading manifest file 'pacpy.egg-info/SOURCES.txt' >writing manifest file 'pacpy.egg-info/SOURCES.txt' >Copying pacpy.egg-info to /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy-1.0.2-py2.7.egg-info >running install_scripts >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6 >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy >copying build/lib/pacpy/filt.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy >copying build/lib/pacpy/__init__.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy >copying build/lib/pacpy/pac.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy >creating /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests >copying build/lib/pacpy/tests/exampledata.npy -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests >copying build/lib/pacpy/tests/test_filt.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests >copying build/lib/pacpy/tests/test_pac.py -> /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/filt.py to filt.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/__init__.py to __init__.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/pac.py to pac.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests/test_filt.py to test_filt.cpython-36.pyc >byte-compiling /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy/tests/test_pac.py to test_pac.cpython-36.pyc >writing byte-compilation script '/tmp/tmp9n3xnh2d.py' >/usr/bin/python3 /tmp/tmp9n3xnh2d.py >removing /tmp/tmp9n3xnh2d.py >running install_egg_info >running egg_info >writing pacpy.egg-info/PKG-INFO >writing dependency_links to pacpy.egg-info/dependency_links.txt >writing requirements to pacpy.egg-info/requires.txt >writing top-level names to pacpy.egg-info/top_level.txt >reading manifest file 'pacpy.egg-info/SOURCES.txt' >writing manifest file 'pacpy.egg-info/SOURCES.txt' >Copying pacpy.egg-info to /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6/site-packages/pacpy-1.0.2-py3.6.egg-info >running install_scripts >+ /usr/lib/rpm/find-debuginfo.sh -j48 --strict-build-id -m -i --build-id-seed 1.0.2-6.fc29 --unique-debug-suffix -1.0.2-6.fc29.noarch --unique-debug-src-base python-pacpy-1.0.2-6.fc29.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pacpy-1.0.2 >find: 'debug': No such file or directory >+ /usr/lib/rpm/check-buildroot >+ /usr/lib/rpm/redhat/brp-ldconfig >/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory >+ /usr/lib/rpm/brp-compress >+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip >+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python3.6 using /usr/bin/python3.6 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7 using /usr/bin/python2.7 >+ /usr/lib/rpm/brp-python-hardlink >+ /usr/lib/rpm/redhat/brp-mangle-shebangs >Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.7WDJBa >+ umask 022 >+ cd /builddir/build/BUILD >+ cd pacpy-1.0.2 >~/build/BUILD/pacpy-1.0.2/pacpy/tests ~/build/BUILD/pacpy-1.0.2 >+ pushd pacpy/tests >+ PYTHONPATH=/builddir/build/BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages >+ py.test-2.7 -v >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.5.1, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python2 >cachedir: ../../.pytest_cache >rootdir: /builddir/build/BUILD/pacpy-1.0.2, inifile: >collecting ... collected 15 items >test_filt.py::test_firf FAILED [ 6%] >test_filt.py::test_firfls FAILED [ 13%] >test_filt.py::test_morletf PASSED [ 20%] >test_pac.py::test_plv FAILED [ 26%] >test_pac.py::test_glm FAILED [ 33%] >test_pac.py::test_mi_tort FAILED [ 40%] >test_pac.py::test_mi_canolty FAILED [ 46%] >test_pac.py::test_ozkurt FAILED [ 53%] >test_pac.py::test_otc PASSED [ 60%] >test_pac.py::test_peaktimes PASSED [ 66%] >test_pac.py::test_chunktime PASSED [ 73%] >test_pac.py::test_comod FAILED [ 80%] >test_pac.py::test_paseries FAILED [ 86%] >test_pac.py::test_padist FAILED [ 93%] >test_pac.py::test_raiseinputerrors PASSED [100%] >=================================== FAILURES =================================== >__________________________________ test_firf ___________________________________ > def test_firf(): > """ > Confirm consistency in FIR filtering > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > np.sum(np.abs(firf(data, (13, 30)))), 5517466.5857, atol=10 ** -5) >test_filt.py:13: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >_________________________________ test_firfls __________________________________ > def test_firfls(): > """ > Confirm consistency in FIR least-squares filtering > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > np.sum(np.abs(firfls(data, (13, 30)))), 6020360.04878, atol=10 ** -5) >test_filt.py:23: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:114: in firfls > taps = firwin2(Ntaps, f, m) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:625: in firwin2 > wind = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >___________________________________ test_plv ___________________________________ > def test_plv(): > """ > Test PAC function: PLV. > 1. Confirm consistency of output with example data > 2. Confirm consistency of output with example data using firfls filter > 3. Confirm PAC=1 when expected > 4. Confirm PAC=0 when expected > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > plv(data, data, (13, 30), (80, 200)), 0.25114, atol=10 ** -5) >test_pac.py:54: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:90: in plv > filter_kwargs=filter_kwargs, hi_phase=True) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >___________________________________ test_glm ___________________________________ > def test_glm(): > """ > Test PAC function: GLM > 1. Confirm consistency of output with example data > 2. Confirm PAC=1 when expected > 3. Confirm PAC=0 when expected > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > glm(data, data, (13, 30), (80, 200)), 0.03243, atol=10 ** -5) >test_pac.py:88: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:266: in glm > filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >_________________________________ test_mi_tort _________________________________ > def test_mi_tort(): > """ > Test PAC function: Tort MI > 1. Confirm consistency of output with example data > 2. Confirm PAC=1 when expected > 3. Confirm PAC=0 when expected > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > mi_tort(data, data, (13, 30), (80, 200)), 0.00363, atol=10 ** -5) >test_pac.py:108: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:181: in mi_tort > filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >_______________________________ test_mi_canolty ________________________________ > def test_mi_canolty(): > """ > Test PAC function: Canolty MI > 1. Confirm consistency of output with example data > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') > np.random.seed(0) >> assert np.allclose( > mi_canolty(data, data, (13, 30), (80, 200)), 22.08946, atol=10 ** -5) >test_pac.py:127: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:334: in mi_canolty > filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >_________________________________ test_ozkurt __________________________________ > def test_ozkurt(): > """ > Test PAC function: Ozkurt > 1. Confirm consistency of output with example data > 2. Confirm PAC=1 when expected > 3. Confirm PAC=0 when expected > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') >> assert np.allclose( > ozkurt(data, data, (13, 30), (80, 200)), 0.07658, atol=10 ** -5) >test_pac.py:140: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:399: in ozkurt > filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >__________________________________ test_comod __________________________________ > def test_comod(): > """ > Test comodulogram function > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') > p_range = [10, 21] > a_range = [50, 150] > dp = 5 > da = 50 >> a = comodulogram(data, data, p_range, a_range, dp, da) >test_pac.py:210: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:721: in comodulogram > filterfn=filterfn, filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:181: in mi_tort > filter_kwargs=filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 300.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >________________________________ test_paseries _________________________________ > def test_paseries(): > """ > Test calculation of phase and amplitude time series > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') > > # Confirm returns correct size >> p, a = pa_series(data, data, (13, 30), (80, 200)) >test_pac.py:224: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >_________________________________ test_padist __________________________________ > def test_padist(): > """ > Test calculation of amplitude distribution as a function of phase > """ > # Load data > data = np.load(os.path.dirname(pacpy.__file__) + '/tests/exampledata.npy') > > np.random.seed(0) > Nbins = np.random.randint(2, 20) >> pha, amp = pa_series(data, data, (13, 30), (80, 200)) >test_pac.py:238: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/pac.py:786: in pa_series > lo = filterfn(lo, f_lo, fs, **filter_kwargs) >../../../../BUILDROOT/python-pacpy-1.0.2-6.fc29.noarch/usr/lib/python2.7/site-packages/pacpy/filt.py:49: in firf > taps = firwin(Ntaps, np.array(f_range) / nyq, pass_zero=False) >/usr/lib/python2.7/site-packages/scipy/signal/fir_filter_design.py:430: in firwin > win = get_window(window, numtaps, fftbins=False) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1767: in get_window > return winfunc(*params) >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:1036: in hamming > w = _cos_win(M, [0.54, 0.46]) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >M = 230.0, a = [0.54, 0.46], sym = True > def _cos_win(M, a, sym=True): > r""" > Generic weighted sum of cosine terms window > > Parameters > ---------- > M : int > Number of points in the output window > a : array_like > Sequence of weighting coefficients. This uses the convention of being > centered on the origin, so these will typically all be positive > numbers, not alternating sign. > sym : bool, optional > When True (default), generates a symmetric window, for use in filter > design. > When False, generates a periodic window, for use in spectral analysis. > > References > ---------- > .. [1] A. Nuttall, "Some windows with very good sidelobe behavior," IEEE > Transactions on Acoustics, Speech, and Signal Processing, vol. 29, > no. 1, pp. 84-91, Feb 1981. :doi:`10.1109/TASSP.1981.1163506`. > .. [2] Heinzel G. et al., "Spectrum and spectral density estimation by the > Discrete Fourier transform (DFT), including a comprehensive list of > window functions and some new flat-top windows", February 15, 2002 > https://holometer.fnal.gov/GH_FFT.pdf > > Examples > -------- > Heinzel describes a flat-top window named "HFT90D" with formula: [2]_ > > .. math:: w_j = 1 - 1.942604 \cos(z) + 1.340318 \cos(2z) > - 0.440811 \cos(3z) + 0.043097 \cos(4z) > > where > > .. math:: z = \frac{2 \pi j}{N}, j = 0...N - 1 > > Since this uses the convention of starting at the origin, to reproduce the > window, we need to convert every other coefficient to a positive number: > > >>> HFT90D = [1, 1.942604, 1.340318, 0.440811, 0.043097] > > The paper states that the highest sidelobe is at -90.2 dB. Reproduce > Figure 42 by plotting the window and its frequency response, and confirm > the sidelobe level in red: > > >>> from scipy import signal > >>> from scipy.fftpack import fft, fftshift > >>> import matplotlib.pyplot as plt > > >>> window = signal._cos_win(1000, HFT90D, sym=False) > >>> plt.plot(window) > >>> plt.title("HFT90D window") > >>> plt.ylabel("Amplitude") > >>> plt.xlabel("Sample") > > >>> plt.figure() > >>> A = fft(window, 10000) / (len(window)/2.0) > >>> freq = np.linspace(-0.5, 0.5, len(A)) > >>> response = 20 * np.log10(np.abs(fftshift(A / abs(A).max()))) > >>> plt.plot(freq, response) > >>> plt.axis([-50/1000, 50/1000, -140, 0]) > >>> plt.title("Frequency response of the HFT90D window") > >>> plt.ylabel("Normalized magnitude [dB]") > >>> plt.xlabel("Normalized frequency [cycles per sample]") > >>> plt.axhline(-90.2, color='red') > > """ > if _len_guards(M): > return np.ones(M) > M, needs_trunc = _extend(M, sym) > > fac = np.linspace(-np.pi, np.pi, M) >> w = np.zeros(M) >E TypeError: 'numpy.float64' object cannot be interpreted as an index >/usr/lib/python2.7/site-packages/scipy/signal/windows.py:113: TypeError >===================== 10 failed, 5 passed in 2.05 seconds ====================== >RPM build errors: >error: Bad exit status from /var/tmp/rpm-tmp.7WDJBa (%check) > Bad exit status from /var/tmp/rpm-tmp.7WDJBa (%check) >Child return code was: 1 >EXCEPTION: [Error()] >Traceback (most recent call last): > File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace > result = func(*args, **kw) > File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 582, in do > raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) >mockbuild.exception.Error: Command failed. See logs for output. > # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pacpy.spec
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1556236
: 1444269 |
1444271
|
1444273