0s autopkgtest [00:43:34]: starting date and time: 2025-02-21 00:43:34+0000 0s autopkgtest [00:43:34]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [00:43:34]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.p4m9gvqi/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:numpy,src:geophar,src:mpi4py,src:onnxruntime,src:petsc4py,src:pyinstaller,src:sympy,src:umap-learn --apt-upgrade python-dtcwt --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=numpy/1:2.2.3+ds-2 geophar/18.10+dfsg1-6 mpi4py/4.0.3-1ubuntu1 onnxruntime/1.20.1+dfsg-2 petsc4py/3.22.3-1 pyinstaller/6.12.0+ds-2 sympy/1.13.3-3 umap-learn/0.5.4+dfsg-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-5.secgroup --name adt-plucky-ppc64el-python-dtcwt-20250221-004334-juju-7f2275-prod-proposed-migration-environment-2-4519bbfc-7b3c-4db4-a674-a413212510ed --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 90s autopkgtest [00:45:04]: testbed dpkg architecture: ppc64el 90s autopkgtest [00:45:04]: testbed apt version: 2.9.30 91s autopkgtest [00:45:05]: @@@@@@@@@@@@@@@@@@@@ test bed setup 91s autopkgtest [00:45:05]: testbed release detected to be: None 92s autopkgtest [00:45:06]: updating testbed package index (apt update) 92s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 92s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 92s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 92s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 92s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 92s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [729 kB] 93s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.8 kB] 93s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [89.5 kB] 93s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [129 kB] 93s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted ppc64el Packages [760 B] 93s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [662 kB] 93s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [4908 B] 93s Fetched 1744 kB in 1s (1796 kB/s) 94s Reading package lists... 95s Reading package lists... 95s Building dependency tree... 95s Reading state information... 95s Calculating upgrade... 96s The following packages will be upgraded: 96s apt apt-utils binutils binutils-common binutils-powerpc64le-linux-gnu 96s cryptsetup-bin fwupd inetutils-telnet kbd libapt-pkg7.0 libbinutils 96s libcryptsetup12 libctf-nobfd0 libctf0 libfwupd3 libplymouth5 libsframe1 96s libssl3t64 openssl openssl-provider-legacy plymouth 96s plymouth-theme-ubuntu-text powerpc-ibm-utils powerpc-utils python3-requests 96s telnet 96s 26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 96s Need to get 16.0 MB of archives. 96s After this operation, 64.5 kB disk space will be freed. 96s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el openssl-provider-legacy ppc64el 3.4.1-1ubuntu1 [44.4 kB] 96s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libssl3t64 ppc64el 3.4.1-1ubuntu1 [2504 kB] 96s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libapt-pkg7.0 ppc64el 2.9.30ubuntu1 [1154 kB] 96s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt ppc64el 2.9.30ubuntu1 [1443 kB] 96s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el apt-utils ppc64el 2.9.30ubuntu1 [228 kB] 96s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el kbd ppc64el 2.7.1-2ubuntu1 [240 kB] 96s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el openssl ppc64el 3.4.1-1ubuntu1 [1204 kB] 96s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el powerpc-ibm-utils ppc64el 1.3.13-1 [263 kB] 96s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el powerpc-utils ppc64el 1.3.13-1 [1632 B] 96s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el inetutils-telnet ppc64el 2:2.5-6ubuntu1 [121 kB] 96s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el libplymouth5 ppc64el 24.004.60-2ubuntu5 [169 kB] 97s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el plymouth-theme-ubuntu-text ppc64el 24.004.60-2ubuntu5 [11.0 kB] 97s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el plymouth ppc64el 24.004.60-2ubuntu5 [152 kB] 97s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el telnet all 0.17+2.5-6ubuntu1 [3694 B] 97s Get:15 http://ftpmaster.internal/ubuntu plucky/main ppc64el libctf0 ppc64el 2.44-2ubuntu1 [113 kB] 97s Get:16 http://ftpmaster.internal/ubuntu plucky/main ppc64el libctf-nobfd0 ppc64el 2.44-2ubuntu1 [117 kB] 97s Get:17 http://ftpmaster.internal/ubuntu plucky/main ppc64el binutils-powerpc64le-linux-gnu ppc64el 2.44-2ubuntu1 [963 kB] 97s Get:18 http://ftpmaster.internal/ubuntu plucky/main ppc64el libbinutils ppc64el 2.44-2ubuntu1 [713 kB] 97s Get:19 http://ftpmaster.internal/ubuntu plucky/main ppc64el binutils ppc64el 2.44-2ubuntu1 [3238 B] 97s Get:20 http://ftpmaster.internal/ubuntu plucky/main ppc64el binutils-common ppc64el 2.44-2ubuntu1 [215 kB] 97s Get:21 http://ftpmaster.internal/ubuntu plucky/main ppc64el libsframe1 ppc64el 2.44-2ubuntu1 [16.2 kB] 97s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcryptsetup12 ppc64el 2:2.7.5-1ubuntu2 [386 kB] 97s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el cryptsetup-bin ppc64el 2:2.7.5-1ubuntu2 [234 kB] 97s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el fwupd ppc64el 2.0.6-3 [5481 kB] 97s Get:25 http://ftpmaster.internal/ubuntu plucky/main ppc64el libfwupd3 ppc64el 2.0.6-3 [137 kB] 97s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-requests all 2.32.3+dfsg-4ubuntu1 [52.9 kB] 98s Fetched 16.0 MB in 1s (11.2 MB/s) 98s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106370 files and directories currently installed.) 98s Preparing to unpack .../openssl-provider-legacy_3.4.1-1ubuntu1_ppc64el.deb ... 98s Unpacking openssl-provider-legacy (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 98s Setting up openssl-provider-legacy (3.4.1-1ubuntu1) ... 98s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106370 files and directories currently installed.) 98s Preparing to unpack .../libssl3t64_3.4.1-1ubuntu1_ppc64el.deb ... 98s Unpacking libssl3t64:ppc64el (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 98s Setting up libssl3t64:ppc64el (3.4.1-1ubuntu1) ... 98s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106369 files and directories currently installed.) 98s Preparing to unpack .../libapt-pkg7.0_2.9.30ubuntu1_ppc64el.deb ... 98s Unpacking libapt-pkg7.0:ppc64el (2.9.30ubuntu1) over (2.9.30) ... 98s Setting up libapt-pkg7.0:ppc64el (2.9.30ubuntu1) ... 98s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106369 files and directories currently installed.) 98s Preparing to unpack .../apt_2.9.30ubuntu1_ppc64el.deb ... 98s Unpacking apt (2.9.30ubuntu1) over (2.9.30) ... 99s Setting up apt (2.9.30ubuntu1) ... 100s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106369 files and directories currently installed.) 100s Preparing to unpack .../00-apt-utils_2.9.30ubuntu1_ppc64el.deb ... 100s Unpacking apt-utils (2.9.30ubuntu1) over (2.9.30) ... 100s Preparing to unpack .../01-kbd_2.7.1-2ubuntu1_ppc64el.deb ... 100s Unpacking kbd (2.7.1-2ubuntu1) over (2.6.4-2ubuntu3) ... 100s Preparing to unpack .../02-openssl_3.4.1-1ubuntu1_ppc64el.deb ... 100s Unpacking openssl (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 100s Preparing to unpack .../03-powerpc-ibm-utils_1.3.13-1_ppc64el.deb ... 100s Unpacking powerpc-ibm-utils (1.3.13-1) over (1.3.13-0ubuntu1) ... 100s Preparing to unpack .../04-powerpc-utils_1.3.13-1_ppc64el.deb ... 100s Unpacking powerpc-utils (1.3.13-1) over (1.3.13-0ubuntu1) ... 100s Preparing to unpack .../05-inetutils-telnet_2%3a2.5-6ubuntu1_ppc64el.deb ... 100s Unpacking inetutils-telnet (2:2.5-6ubuntu1) over (2:2.5-5ubuntu1) ... 100s Preparing to unpack .../06-libplymouth5_24.004.60-2ubuntu5_ppc64el.deb ... 100s Unpacking libplymouth5:ppc64el (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../07-plymouth-theme-ubuntu-text_24.004.60-2ubuntu5_ppc64el.deb ... 100s Unpacking plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../08-plymouth_24.004.60-2ubuntu5_ppc64el.deb ... 100s Unpacking plymouth (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../09-telnet_0.17+2.5-6ubuntu1_all.deb ... 100s Unpacking telnet (0.17+2.5-6ubuntu1) over (0.17+2.5-5ubuntu1) ... 100s Preparing to unpack .../10-libctf0_2.44-2ubuntu1_ppc64el.deb ... 100s Unpacking libctf0:ppc64el (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../11-libctf-nobfd0_2.44-2ubuntu1_ppc64el.deb ... 100s Unpacking libctf-nobfd0:ppc64el (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../12-binutils-powerpc64le-linux-gnu_2.44-2ubuntu1_ppc64el.deb ... 100s Unpacking binutils-powerpc64le-linux-gnu (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 101s Preparing to unpack .../13-libbinutils_2.44-2ubuntu1_ppc64el.deb ... 101s Unpacking libbinutils:ppc64el (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 101s Preparing to unpack .../14-binutils_2.44-2ubuntu1_ppc64el.deb ... 101s Unpacking binutils (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 101s Preparing to unpack .../15-binutils-common_2.44-2ubuntu1_ppc64el.deb ... 101s Unpacking binutils-common:ppc64el (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 101s Preparing to unpack .../16-libsframe1_2.44-2ubuntu1_ppc64el.deb ... 101s Unpacking libsframe1:ppc64el (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 101s Preparing to unpack .../17-libcryptsetup12_2%3a2.7.5-1ubuntu2_ppc64el.deb ... 101s Unpacking libcryptsetup12:ppc64el (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 101s Preparing to unpack .../18-cryptsetup-bin_2%3a2.7.5-1ubuntu2_ppc64el.deb ... 101s Unpacking cryptsetup-bin (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 101s Preparing to unpack .../19-fwupd_2.0.6-3_ppc64el.deb ... 101s Unpacking fwupd (2.0.6-3) over (2.0.5-1) ... 101s Preparing to unpack .../20-libfwupd3_2.0.6-3_ppc64el.deb ... 101s Unpacking libfwupd3:ppc64el (2.0.6-3) over (2.0.5-1) ... 101s Preparing to unpack .../21-python3-requests_2.32.3+dfsg-4ubuntu1_all.deb ... 101s /usr/bin/py3clean:101: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead. 101s for fn in glob1(directory, "%s.*" % fname): 101s Unpacking python3-requests (2.32.3+dfsg-4ubuntu1) over (2.32.3+dfsg-1ubuntu1) ... 101s Setting up apt-utils (2.9.30ubuntu1) ... 101s Setting up binutils-common:ppc64el (2.44-2ubuntu1) ... 101s Setting up inetutils-telnet (2:2.5-6ubuntu1) ... 101s Setting up libctf-nobfd0:ppc64el (2.44-2ubuntu1) ... 101s Setting up powerpc-ibm-utils (1.3.13-1) ... 101s Setting up libfwupd3:ppc64el (2.0.6-3) ... 101s Setting up libsframe1:ppc64el (2.44-2ubuntu1) ... 101s Setting up powerpc-utils (1.3.13-1) ... 101s Setting up python3-requests (2.32.3+dfsg-4ubuntu1) ... 102s Setting up libplymouth5:ppc64el (24.004.60-2ubuntu5) ... 102s Setting up libcryptsetup12:ppc64el (2:2.7.5-1ubuntu2) ... 102s Setting up kbd (2.7.1-2ubuntu1) ... 102s Setting up libbinutils:ppc64el (2.44-2ubuntu1) ... 102s Setting up openssl (3.4.1-1ubuntu1) ... 102s Setting up fwupd (2.0.6-3) ... 102s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 102s fwupd.service is a disabled or a static unit not running, not starting it. 102s Setting up libctf0:ppc64el (2.44-2ubuntu1) ... 102s Setting up cryptsetup-bin (2:2.7.5-1ubuntu2) ... 102s Setting up telnet (0.17+2.5-6ubuntu1) ... 102s Setting up plymouth (24.004.60-2ubuntu5) ... 102s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 103s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 103s Setting up binutils-powerpc64le-linux-gnu (2.44-2ubuntu1) ... 103s Setting up binutils (2.44-2ubuntu1) ... 103s Processing triggers for dbus (1.16.0-1ubuntu1) ... 103s Processing triggers for initramfs-tools (0.145ubuntu2) ... 103s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 103s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 113s Processing triggers for libc-bin (2.40-4ubuntu1) ... 113s Processing triggers for man-db (2.13.0-1) ... 115s Setting up plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) ... 115s Processing triggers for initramfs-tools (0.145ubuntu2) ... 115s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 115s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 125s Reading package lists... 126s Building dependency tree... 126s Reading state information... 126s Solving dependencies... 126s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 126s autopkgtest [00:45:40]: upgrading testbed (apt dist-upgrade and autopurge) 126s Reading package lists... 127s Building dependency tree... 127s Reading state information... 127s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 127s Starting 2 pkgProblemResolver with broken count: 0 127s Done 128s Entering ResolveByKeep 128s 129s Calculating upgrade... 129s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 129s Reading package lists... 129s Building dependency tree... 129s Reading state information... 130s Starting pkgProblemResolver with broken count: 0 130s Starting 2 pkgProblemResolver with broken count: 0 130s Done 130s Solving dependencies... 130s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 131s autopkgtest [00:45:45]: rebooting testbed after setup commands that affected boot 153s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 166s autopkgtest [00:46:20]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP Tue Feb 4 16:32:08 UTC 2025 168s autopkgtest [00:46:22]: @@@@@@@@@@@@@@@@@@@@ apt-source python-dtcwt 172s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (dsc) [2520 B] 172s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (tar) [7457 kB] 172s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (diff) [6792 B] 172s gpgv: Signature made Thu Jun 6 22:51:03 2024 UTC 172s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 172s gpgv: Can't check signature: No public key 172s dpkg-source: warning: cannot verify inline signature for ./python-dtcwt_0.12.0-5ubuntu1.dsc: no acceptable signature found 172s autopkgtest [00:46:26]: testing package python-dtcwt version 0.12.0-5ubuntu1 173s autopkgtest [00:46:27]: build not needed 173s autopkgtest [00:46:27]: test command1: preparing testbed 174s Reading package lists... 174s Building dependency tree... 174s Reading state information... 174s Starting pkgProblemResolver with broken count: 0 175s Starting 2 pkgProblemResolver with broken count: 0 175s Done 175s The following NEW packages will be installed: 175s libblas3 libgfortran5 liblapack3 liblbfgsb0 python3-all python3-decorator 175s python3-dtcwt python3-iniconfig python3-numpy python3-numpy-dev 175s python3-packaging python3-pluggy python3-pytest python3-scipy python3-six 175s python3.12 python3.12-minimal 175s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 175s Need to get 35.5 MB of archives. 175s After this operation, 204 MB of additional disk space will be used. 175s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12-minimal ppc64el 3.12.9-1 [2465 kB] 176s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-numpy-dev ppc64el 1:2.2.3+ds-2 [153 kB] 176s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libblas3 ppc64el 3.12.1-2 [239 kB] 176s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgfortran5 ppc64el 15-20250213-1ubuntu1 [613 kB] 176s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblapack3 ppc64el 3.12.1-2 [2813 kB] 176s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-numpy ppc64el 1:2.2.3+ds-2 [5467 kB] 176s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3.12 ppc64el 3.12.9-1 [671 kB] 176s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el liblbfgsb0 ppc64el 3.0+dfsg.4-1build1 [33.0 kB] 176s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.1-1~exp2 [896 B] 176s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-decorator all 5.1.1-5 [10.1 kB] 176s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-six all 1.17.0-1 [13.2 kB] 176s Get:12 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-dtcwt all 0.12.0-5ubuntu1 [54.6 kB] 176s Get:13 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 176s Get:14 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 176s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 176s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.4-1 [252 kB] 176s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-scipy ppc64el 1.14.1-4ubuntu1 [22.7 MB] 177s Fetched 35.5 MB in 2s (20.1 MB/s) 177s Selecting previously unselected package python3.12-minimal. 177s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 106366 files and directories currently installed.) 177s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_ppc64el.deb ... 177s Unpacking python3.12-minimal (3.12.9-1) ... 177s Selecting previously unselected package python3-numpy-dev:ppc64el. 177s Preparing to unpack .../01-python3-numpy-dev_1%3a2.2.3+ds-2_ppc64el.deb ... 177s Unpacking python3-numpy-dev:ppc64el (1:2.2.3+ds-2) ... 177s Selecting previously unselected package libblas3:ppc64el. 177s Preparing to unpack .../02-libblas3_3.12.1-2_ppc64el.deb ... 178s Unpacking libblas3:ppc64el (3.12.1-2) ... 178s Selecting previously unselected package libgfortran5:ppc64el. 178s Preparing to unpack .../03-libgfortran5_15-20250213-1ubuntu1_ppc64el.deb ... 178s Unpacking libgfortran5:ppc64el (15-20250213-1ubuntu1) ... 178s Selecting previously unselected package liblapack3:ppc64el. 178s Preparing to unpack .../04-liblapack3_3.12.1-2_ppc64el.deb ... 178s Unpacking liblapack3:ppc64el (3.12.1-2) ... 178s Selecting previously unselected package python3-numpy. 178s Preparing to unpack .../05-python3-numpy_1%3a2.2.3+ds-2_ppc64el.deb ... 178s Unpacking python3-numpy (1:2.2.3+ds-2) ... 178s Selecting previously unselected package python3.12. 178s Preparing to unpack .../06-python3.12_3.12.9-1_ppc64el.deb ... 178s Unpacking python3.12 (3.12.9-1) ... 178s Selecting previously unselected package liblbfgsb0:ppc64el. 178s Preparing to unpack .../07-liblbfgsb0_3.0+dfsg.4-1build1_ppc64el.deb ... 178s Unpacking liblbfgsb0:ppc64el (3.0+dfsg.4-1build1) ... 178s Selecting previously unselected package python3-all. 178s Preparing to unpack .../08-python3-all_3.13.1-1~exp2_ppc64el.deb ... 178s Unpacking python3-all (3.13.1-1~exp2) ... 178s Selecting previously unselected package python3-decorator. 178s Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ... 178s Unpacking python3-decorator (5.1.1-5) ... 178s Selecting previously unselected package python3-six. 178s Preparing to unpack .../10-python3-six_1.17.0-1_all.deb ... 178s Unpacking python3-six (1.17.0-1) ... 178s Selecting previously unselected package python3-dtcwt. 178s Preparing to unpack .../11-python3-dtcwt_0.12.0-5ubuntu1_all.deb ... 178s Unpacking python3-dtcwt (0.12.0-5ubuntu1) ... 178s Selecting previously unselected package python3-iniconfig. 178s Preparing to unpack .../12-python3-iniconfig_1.1.1-2_all.deb ... 178s Unpacking python3-iniconfig (1.1.1-2) ... 178s Selecting previously unselected package python3-packaging. 178s Preparing to unpack .../13-python3-packaging_24.2-1_all.deb ... 178s Unpacking python3-packaging (24.2-1) ... 178s Selecting previously unselected package python3-pluggy. 178s Preparing to unpack .../14-python3-pluggy_1.5.0-1_all.deb ... 178s Unpacking python3-pluggy (1.5.0-1) ... 178s Selecting previously unselected package python3-pytest. 178s Preparing to unpack .../15-python3-pytest_8.3.4-1_all.deb ... 178s Unpacking python3-pytest (8.3.4-1) ... 178s Selecting previously unselected package python3-scipy. 178s Preparing to unpack .../16-python3-scipy_1.14.1-4ubuntu1_ppc64el.deb ... 178s Unpacking python3-scipy (1.14.1-4ubuntu1) ... 179s Setting up python3-iniconfig (1.1.1-2) ... 179s Setting up python3.12-minimal (3.12.9-1) ... 180s Setting up python3.12 (3.12.9-1) ... 182s Setting up python3-all (3.13.1-1~exp2) ... 182s Setting up python3-six (1.17.0-1) ... 182s Setting up python3-decorator (5.1.1-5) ... 182s Setting up libblas3:ppc64el (3.12.1-2) ... 182s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/blas/libblas.so.3 to provide /usr/lib/powerpc64le-linux-gnu/libblas.so.3 (libblas.so.3-powerpc64le-linux-gnu) in auto mode 182s Setting up python3-packaging (24.2-1) ... 183s Setting up python3-numpy-dev:ppc64el (1:2.2.3+ds-2) ... 183s Setting up libgfortran5:ppc64el (15-20250213-1ubuntu1) ... 183s Setting up python3-pluggy (1.5.0-1) ... 183s Setting up liblapack3:ppc64el (3.12.1-2) ... 183s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/powerpc64le-linux-gnu/liblapack.so.3 (liblapack.so.3-powerpc64le-linux-gnu) in auto mode 183s Setting up python3-pytest (8.3.4-1) ... 184s Setting up python3-numpy (1:2.2.3+ds-2) ... 188s Setting up liblbfgsb0:ppc64el (3.0+dfsg.4-1build1) ... 188s Setting up python3-dtcwt (0.12.0-5ubuntu1) ... 188s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 188s """Return a resampled version of *im* scaled to *shape*. 188s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 188s """ 188s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 188s """Return a resampled version of *im* scaled to *shape*. 188s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 188s """ 189s Setting up python3-scipy (1.14.1-4ubuntu1) ... 197s Processing triggers for systemd (257.2-3ubuntu1) ... 197s Processing triggers for man-db (2.13.0-1) ... 198s Processing triggers for libc-bin (2.40-4ubuntu1) ... 199s autopkgtest [00:46:53]: test command1: set -e ; cp -r tests $AUTOPKGTEST_TMP ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -m pytest -v tests ; done 199s autopkgtest [00:46:53]: test command1: [----------------------- 200s Testing with python3.12: 200s ============================= test session starts ============================== 200s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12 200s cachedir: .pytest_cache 200s rootdir: /tmp/autopkgtest.gPxww6/autopkgtest_tmp 200s plugins: typeguard-4.4.1 201s collecting ... collected 339 items 201s 201s tests/test_againstmatlab.py::test_mandrill_loaded PASSED [ 0%] 201s tests/test_againstmatlab.py::test_coldfilt FAILED [ 0%] 201s tests/test_againstmatlab.py::test_dtwavexfm2 FAILED [ 0%] 201s tests/test_againstmatlab.py::test_dtwavexfm2b FAILED [ 1%] 201s tests/test_againstmatlab.py::test_rescale_highpass FAILED [ 1%] 202s tests/test_againstmatlab.py::test_transform3d_numpy FAILED [ 1%] 202s tests/test_coeffs.py::test_antonini PASSED [ 2%] 202s tests/test_coeffs.py::test_legall PASSED [ 2%] 202s tests/test_coeffs.py::test_near_sym_a PASSED [ 2%] 202s tests/test_coeffs.py::test_qshift_06 PASSED [ 2%] 202s tests/test_coeffs.py::test_qshift_a PASSED [ 3%] 202s tests/test_coeffs.py::test_qshift_b PASSED [ 3%] 202s tests/test_coeffs.py::test_qshift_c PASSED [ 3%] 202s tests/test_coeffs.py::test_qshift_d PASSED [ 4%] 202s tests/test_coeffs.py::test_non_exist_biort PASSED [ 4%] 202s tests/test_coeffs.py::test_non_exist_qshift PASSED [ 4%] 202s tests/test_coeffs.py::test_wrong_type_a PASSED [ 5%] 202s tests/test_coeffs.py::test_wrong_type_b PASSED [ 5%] 202s tests/test_coldfilt.py::test_mandrill_loaded PASSED [ 5%] 202s tests/test_coldfilt.py::test_odd_filter FAILED [ 5%] 202s tests/test_coldfilt.py::test_different_size FAILED [ 6%] 202s tests/test_coldfilt.py::test_bad_input_size FAILED [ 6%] 202s tests/test_coldfilt.py::test_good_input_size FAILED [ 6%] 202s tests/test_coldfilt.py::test_good_input_size_non_orthogonal FAILED [ 7%] 202s tests/test_coldfilt.py::test_output_size FAILED [ 7%] 202s tests/test_colfilter.py::test_mandrill_loaded PASSED [ 7%] 202s tests/test_colfilter.py::test_odd_size FAILED [ 7%] 202s tests/test_colfilter.py::test_even_size FAILED [ 8%] 202s tests/test_colfilter.py::test_qshift FAILED [ 8%] 202s tests/test_colfilter.py::test_biort FAILED [ 8%] 202s tests/test_colfilter.py::test_odd_size_non_array FAILED [ 9%] 202s tests/test_colfilter.py::test_even_size_non_array FAILED [ 9%] 202s tests/test_colifilt.py::test_mandrill_loaded PASSED [ 9%] 202s tests/test_colifilt.py::test_odd_filter FAILED [ 10%] 202s tests/test_colifilt.py::test_different_size_h FAILED [ 10%] 202s tests/test_colifilt.py::test_zero_input FAILED [ 10%] 202s tests/test_colifilt.py::test_bad_input_size FAILED [ 10%] 202s tests/test_colifilt.py::test_good_input_size FAILED [ 11%] 202s tests/test_colifilt.py::test_output_size FAILED [ 11%] 202s tests/test_colifilt.py::test_non_orthogonal_input FAILED [ 11%] 202s tests/test_colifilt.py::test_output_size_non_mult_4 FAILED [ 12%] 202s tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 FAILED [ 12%] 202s tests/test_ifm1.py::test_reconstruct FAILED [ 12%] 202s tests/test_ifm1.py::test_reconstruct_2d FAILED [ 12%] 202s tests/test_ifm1.py::test_float32_input FAILED [ 13%] 202s tests/test_ifm2.py::test_mandrill_loaded PASSED [ 13%] 202s tests/test_ifm2.py::test_reconstruct FAILED [ 13%] 202s tests/test_ifm2.py::test_reconstruct_crop FAILED [ 14%] 202s tests/test_ifm2.py::test_reconstruct_custom_filter FAILED [ 14%] 202s tests/test_ifm2.py::test_float32_input FAILED [ 14%] 202s tests/test_import.py::test PASSED [ 15%] 202s tests/test_openclcoldfilt.py::test_mandrill_loaded PASSED [ 15%] 202s tests/test_openclcoldfilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 15%] 202s tests/test_openclcoldfilt.py::test_different_size SKIPPED (OpenCL no...) [ 15%] 202s tests/test_openclcoldfilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 16%] 202s tests/test_openclcoldfilt.py::test_real_wavelet SKIPPED (OpenCL not ...) [ 16%] 202s tests/test_openclcoldfilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 16%] 202s tests/test_openclcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 17%] 202s tests/test_openclcoldfilt.py::test_output_size SKIPPED (OpenCL not p...) [ 17%] 202s tests/test_openclcoldfilt.py::test_qshift SKIPPED (OpenCL not present) [ 17%] 202s tests/test_openclcolfilter.py::test_mandrill_loaded PASSED [ 17%] 202s tests/test_openclcolfilter.py::test_odd_size SKIPPED (OpenCL not pre...) [ 18%] 202s tests/test_openclcolfilter.py::test_even_size SKIPPED (OpenCL not pr...) [ 18%] 202s tests/test_openclcolfilter.py::test_qshift SKIPPED (OpenCL not present) [ 18%] 202s tests/test_openclcolfilter.py::test_biort SKIPPED (OpenCL not present) [ 19%] 202s tests/test_openclcolfilter.py::test_odd_size_non_array SKIPPED (Open...) [ 19%] 202s tests/test_openclcolfilter.py::test_even_size_non_array SKIPPED (Ope...) [ 19%] 202s tests/test_openclcolifilt.py::test_mandrill_loaded PASSED [ 20%] 202s tests/test_openclcolifilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 20%] 202s tests/test_openclcolifilt.py::test_different_size_h SKIPPED (OpenCL ...) [ 20%] 202s tests/test_openclcolifilt.py::test_zero_input SKIPPED (OpenCL not pr...) [ 20%] 203s tests/test_openclcolifilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 21%] 203s tests/test_openclcolifilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 21%] 203s tests/test_openclcolifilt.py::test_output_size SKIPPED (OpenCL not p...) [ 21%] 203s tests/test_openclcolifilt.py::test_non_orthogonal_input SKIPPED (Ope...) [ 22%] 203s tests/test_openclcolifilt.py::test_output_size_non_mult_4 SKIPPED (O...) [ 22%] 203s tests/test_openclcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 22%] 203s tests/test_openclcolifilt.py::test_qshift SKIPPED (OpenCL not present) [ 23%] 203s tests/test_openclcolifilt.py::test_qshift_odd_len_input_2 SKIPPED (O...) [ 23%] 203s tests/test_openclcolifilt.py::test_qshift_even_input SKIPPED (OpenCL...) [ 23%] 203s tests/test_openclxfm2.py::test_mandrill_loaded PASSED [ 23%] 203s tests/test_openclxfm2.py::test_simple SKIPPED (OpenCL not present) [ 24%] 203s tests/test_openclxfm2.py::test_specific_wavelet SKIPPED (OpenCL not ...) [ 24%] 203s tests/test_openclxfm2.py::test_1d SKIPPED (OpenCL not present) [ 24%] 203s tests/test_openclxfm2.py::test_3d SKIPPED (OpenCL not present) [ 25%] 203s tests/test_openclxfm2.py::test_simple_w_scale SKIPPED (OpenCL not pr...) [ 25%] 203s tests/test_openclxfm2.py::test_odd_rows SKIPPED (OpenCL not present) [ 25%] 203s tests/test_openclxfm2.py::test_odd_cols SKIPPED (OpenCL not present) [ 25%] 203s tests/test_openclxfm2.py::test_odd_rows_and_cols SKIPPED (OpenCL not...) [ 26%] 203s tests/test_openclxfm2.py::test_0_levels SKIPPED (OpenCL not present) [ 26%] 203s tests/test_openclxfm2.py::test_modified SKIPPED (OpenCL not present) [ 26%] 203s tests/test_reflect.py::test_linear_ramp_boundaries PASSED [ 27%] 203s tests/test_reflect.py::test_linear_ramp_values PASSED [ 27%] 203s tests/test_reflect.py::test_non_array_input PASSED [ 27%] 203s tests/test_registration.py::test_frames_loaded PASSED [ 28%] 203s tests/test_registration.py::test_estimatereg FAILED [ 28%] 203s tests/test_sampling.py::test_rescale_lanczos PASSED [ 28%] 203s tests/test_sampling.py::test_rescale_bilinear PASSED [ 28%] 203s tests/test_sampling.py::test_rescale_nearest PASSED [ 29%] 203s tests/test_switchbackends.py::TestSwitchBackends::test_default_backend PASSED [ 29%] 203s tests/test_switchbackends.py::TestSwitchBackends::test_no_pop_default_backend PASSED [ 29%] 203s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_invalid PASSED [ 30%] 203s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_numpy PASSED [ 30%] 203s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_opencl SKIPPED [ 30%] 203s tests/test_switchbackends.py::test_backend_with_guard PASSED [ 30%] 203s tests/test_switchbackends.py::test_backend_with_guard_and_exception PASSED [ 31%] 203s tests/test_tfTransform1d.py::test_simple SKIPPED (Tensorflow not pre...) [ 31%] 203s tests/test_tfTransform1d.py::test_simple_with_no_levels SKIPPED (Ten...) [ 31%] 203s tests/test_tfTransform1d.py::test_simple_with_scale SKIPPED (Tensorf...) [ 32%] 203s tests/test_tfTransform1d.py::test_simple_with_scale_and_no_levels SKIPPED [ 32%] 203s tests/test_tfTransform1d.py::test_perfect_recon SKIPPED (Tensorflow ...) [ 32%] 203s tests/test_tfTransform1d.py::test_simple_custom_filter SKIPPED (Tens...) [ 33%] 203s tests/test_tfTransform1d.py::test_single_level SKIPPED (Tensorflow n...) [ 33%] 203s tests/test_tfTransform1d.py::test_non_multiple_of_two SKIPPED (Tenso...) [ 33%] 203s tests/test_tfTransform1d.py::test_2d SKIPPED (Tensorflow not present) [ 33%] 203s tests/test_tfTransform1d.py::test_integer_input SKIPPED (Tensorflow ...) [ 34%] 203s tests/test_tfTransform1d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 34%] 203s tests/test_tfTransform1d.py::test_float32_input SKIPPED (Tensorflow ...) [ 34%] 203s tests/test_tfTransform1d.py::test_reconstruct SKIPPED (Tensorflow no...) [ 35%] 203s tests/test_tfTransform1d.py::test_reconstruct_2d SKIPPED (Tensorflow...) [ 35%] 203s tests/test_tfTransform1d.py::test_float32_input_inv SKIPPED (Tensorf...) [ 35%] 203s tests/test_tfTransform1d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 35%] 203s tests/test_tfTransform1d.py::test_numpy_in_batch SKIPPED (Tensorflow...) [ 36%] 203s tests/test_tfTransform1d.py::test_1d_input SKIPPED (Tensorflow not p...) [ 36%] 203s tests/test_tfTransform1d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 36%] 203s tests/test_tfTransform1d.py::test_3d_input SKIPPED (Tensorflow not p...) [ 37%] 203s tests/test_tfTransform1d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 37%] 203s tests/test_tfTransform1d.py::test_return_type SKIPPED (Tensorflow no...) [ 37%] 203s tests/test_tfTransform1d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 38%] 203s tests/test_tfTransform1d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 38%] 203s tests/test_tfTransform1d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 38%] 203s tests/test_tfTransform1d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 38%] 203s tests/test_tfTransform1d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 39%] 203s tests/test_tfTransform1d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 39%] 203s tests/test_tfTransform1d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 39%] 203s tests/test_tfTransform1d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 40%] 203s tests/test_tfTransform1d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 40%] 203s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 40%] 203s tests/test_tfTransform1d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 41%] 203s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 41%] 203s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 41%] 203s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 41%] 203s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 42%] 203s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 42%] 203s tests/test_tfTransform2d.py::test_mandrill_loaded SKIPPED (Tensorflo...) [ 42%] 203s tests/test_tfTransform2d.py::test_simple SKIPPED (Tensorflow not pre...) [ 43%] 203s tests/test_tfTransform2d.py::test_specific_wavelet SKIPPED (Tensorfl...) [ 43%] 203s tests/test_tfTransform2d.py::test_1d SKIPPED (Tensorflow not present) [ 43%] 203s tests/test_tfTransform2d.py::test_3d SKIPPED (Tensorflow not present) [ 43%] 203s tests/test_tfTransform2d.py::test_simple_w_scale SKIPPED (Tensorflow...) [ 44%] 203s tests/test_tfTransform2d.py::test_odd_rows SKIPPED (Tensorflow not p...) [ 44%] 203s tests/test_tfTransform2d.py::test_odd_rows_w_scale SKIPPED (Tensorfl...) [ 44%] 203s tests/test_tfTransform2d.py::test_odd_cols SKIPPED (Tensorflow not p...) [ 45%] 203s tests/test_tfTransform2d.py::test_odd_cols_w_scale SKIPPED (Tensorfl...) [ 45%] 203s tests/test_tfTransform2d.py::test_odd_rows_and_cols SKIPPED (Tensorf...) [ 45%] 203s tests/test_tfTransform2d.py::test_odd_rows_and_cols_w_scale SKIPPED [ 46%] 203s tests/test_tfTransform2d.py::test_rot_symm_modified SKIPPED (Tensorf...) [ 46%] 203s tests/test_tfTransform2d.py::test_0_levels SKIPPED (Tensorflow not p...) [ 46%] 203s tests/test_tfTransform2d.py::test_0_levels_w_scale SKIPPED (Tensorfl...) [ 46%] 203s tests/test_tfTransform2d.py::test_integer_input SKIPPED (Tensorflow ...) [ 47%] 203s tests/test_tfTransform2d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 47%] 203s tests/test_tfTransform2d.py::test_mandrill_perfect_recon SKIPPED (Te...) [ 47%] 203s tests/test_tfTransform2d.py::test_float32_input SKIPPED (Tensorflow ...) [ 48%] 203s tests/test_tfTransform2d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 48%] 203s tests/test_tfTransform2d.py::test_numpy_in_batch[nhw] SKIPPED (Tenso...) [ 48%] 203s tests/test_tfTransform2d.py::test_numpy_in_batch[chw] SKIPPED (Tenso...) [ 48%] 203s tests/test_tfTransform2d.py::test_numpy_in_batch[hwn] SKIPPED (Tenso...) [ 49%] 203s tests/test_tfTransform2d.py::test_numpy_in_batch[hwc] SKIPPED (Tenso...) [ 49%] 203s tests/test_tfTransform2d.py::test_numpy_batch_ch[nhwc] SKIPPED (Tens...) [ 49%] 203s tests/test_tfTransform2d.py::test_numpy_batch_ch[nchw] SKIPPED (Tens...) [ 50%] 203s tests/test_tfTransform2d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 50%] 203s tests/test_tfTransform2d.py::test_3d_input[nhw] SKIPPED (Tensorflow ...) [ 50%] 203s tests/test_tfTransform2d.py::test_3d_input[hwn] SKIPPED (Tensorflow ...) [ 51%] 203s tests/test_tfTransform2d.py::test_4d_input[nhwc] SKIPPED (Tensorflow...) [ 51%] 203s tests/test_tfTransform2d.py::test_4d_input[nchw] SKIPPED (Tensorflow...) [ 51%] 203s tests/test_tfTransform2d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 51%] 203s tests/test_tfTransform2d.py::test_3d_input_ph SKIPPED (Tensorflow no...) [ 52%] 203s tests/test_tfTransform2d.py::test_4d_input_ph SKIPPED (Tensorflow no...) [ 52%] 203s tests/test_tfTransform2d.py::test_return_type SKIPPED (Tensorflow no...) [ 52%] 203s tests/test_tfTransform2d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 53%] 203s tests/test_tfTransform2d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 53%] 203s tests/test_tfTransform2d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 53%] 203s tests/test_tfTransform2d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 53%] 203s tests/test_tfTransform2d.py::test_results_match[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 54%] 203s tests/test_tfTransform2d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 54%] 203s tests/test_tfTransform2d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 54%] 203s tests/test_tfTransform2d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 55%] 203s tests/test_tfTransform2d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 55%] 203s tests/test_tfTransform2d.py::test_results_match_inverse[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 55%] 203s tests/test_tfTransform2d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 56%] 203s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 56%] 203s tests/test_tfTransform2d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 56%] 203s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 56%] 203s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b_bp-qshift_b_bp-gain_mask4] SKIPPED [ 57%] 203s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 57%] 203s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 57%] 203s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 58%] 203s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 58%] 203s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 58%] 203s tests/test_tfTransform2d.py::test_forward_channels[nhwc] SKIPPED (Te...) [ 58%] 203s tests/test_tfTransform2d.py::test_forward_channels[nchw] SKIPPED (Te...) [ 59%] 203s tests/test_tfTransform2d.py::test_inverse_channels[nhwc] SKIPPED (Te...) [ 59%] 203s tests/test_tfTransform2d.py::test_inverse_channels[nchw] SKIPPED (Te...) [ 59%] 203s tests/test_tfcoldfilt.py::test_setup SKIPPED (Tensorflow not present) [ 60%] 203s tests/test_tfcoldfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 60%] 203s tests/test_tfcoldfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 60%] 203s tests/test_tfcoldfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 61%] 203s tests/test_tfcoldfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 61%] 203s tests/test_tfcoldfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 61%] 203s tests/test_tfcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 61%] 203s tests/test_tfcoldfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 62%] 203s tests/test_tfcoldfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 62%] 203s tests/test_tfcoldfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 62%] 203s tests/test_tfcoldfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 63%] 203s tests/test_tfcolfilter.py::test_setup SKIPPED (Tensorflow not present) [ 63%] 203s tests/test_tfcolfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 63%] 203s tests/test_tfcolfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 64%] 203s tests/test_tfcolfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 64%] 203s tests/test_tfcolfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 64%] 203s tests/test_tfcolfilter.py::test_biort SKIPPED (Tensorflow not present) [ 64%] 203s tests/test_tfcolfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 65%] 203s tests/test_tfcolfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 65%] 203s tests/test_tfcolfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 65%] 203s tests/test_tfcolfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 66%] 203s tests/test_tfcolfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 66%] 203s tests/test_tfcolfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 66%] 203s tests/test_tfcolifilt.py::test_setup SKIPPED (Tensorflow not present) [ 66%] 203s tests/test_tfcolifilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 67%] 203s tests/test_tfcolifilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 67%] 203s tests/test_tfcolifilt.py::test_different_size_h SKIPPED (Tensorflow ...) [ 67%] 203s tests/test_tfcolifilt.py::test_zero_input SKIPPED (Tensorflow not pr...) [ 68%] 203s tests/test_tfcolifilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 68%] 203s tests/test_tfcolifilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 68%] 203s tests/test_tfcolifilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 69%] 203s tests/test_tfcolifilt.py::test_non_orthogonal_input SKIPPED (Tensorf...) [ 69%] 203s tests/test_tfcolifilt.py::test_output_size_non_mult_4 SKIPPED (Tenso...) [ 69%] 203s tests/test_tfcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 69%] 203s tests/test_tfcolifilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 70%] 203s tests/test_tfcolifilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 70%] 203s tests/test_tfcolifilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 70%] 203s tests/test_tfinputshapes.py::test_scales[2-False] SKIPPED (Tensorflo...) [ 71%] 203s tests/test_tfinputshapes.py::test_scales[2-True] SKIPPED (Tensorflow...) [ 71%] 203s tests/test_tfinputshapes.py::test_scales[4-False] SKIPPED (Tensorflo...) [ 71%] 203s tests/test_tfinputshapes.py::test_scales[3-True] SKIPPED (Tensorflow...) [ 71%] 203s tests/test_tfinputshapes.py::test_2d_input_tuple[2-False] SKIPPED (T...) [ 72%] 203s tests/test_tfinputshapes.py::test_2d_input_tuple[2-True] SKIPPED (Te...) [ 72%] 203s tests/test_tfinputshapes.py::test_2d_input_tuple[4-False] SKIPPED (T...) [ 72%] 203s tests/test_tfinputshapes.py::test_2d_input_tuple[3-True] SKIPPED (Te...) [ 73%] 203s tests/test_tfinputshapes.py::test_batch_input[2-False-None] SKIPPED [ 73%] 203s tests/test_tfinputshapes.py::test_batch_input[2-True-10] SKIPPED (Te...) [ 73%] 203s tests/test_tfinputshapes.py::test_batch_input[4-False-None] SKIPPED [ 74%] 203s tests/test_tfinputshapes.py::test_batch_input[3-True-2] SKIPPED (Ten...) [ 74%] 203s tests/test_tfinputshapes.py::test_batch_input_tuple[2-False-None] SKIPPED [ 74%] 203s tests/test_tfinputshapes.py::test_batch_input_tuple[2-True-10] SKIPPED [ 74%] 203s tests/test_tfinputshapes.py::test_batch_input_tuple[4-False-None] SKIPPED [ 75%] 203s tests/test_tfinputshapes.py::test_batch_input_tuple[3-True-2] SKIPPED [ 75%] 203s tests/test_tfinputshapes.py::test_multichannel[2-5] SKIPPED (Tensorf...) [ 75%] 203s tests/test_tfinputshapes.py::test_multichannel[2-2] SKIPPED (Tensorf...) [ 76%] 203s tests/test_tfinputshapes.py::test_multichannel[4-10] SKIPPED (Tensor...) [ 76%] 203s tests/test_tfinputshapes.py::test_multichannel[3-6] SKIPPED (Tensorf...) [ 76%] 203s tests/test_tfrowdfilt.py::test_setup SKIPPED (Tensorflow not present) [ 76%] 203s tests/test_tfrowdfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 77%] 203s tests/test_tfrowdfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 77%] 203s tests/test_tfrowdfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 77%] 203s tests/test_tfrowdfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 78%] 203s tests/test_tfrowdfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 78%] 203s tests/test_tfrowdfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 78%] 203s tests/test_tfrowdfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 79%] 203s tests/test_tfrowdfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 79%] 203s tests/test_tfrowdfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 79%] 203s tests/test_tfrowdfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 79%] 203s tests/test_tfrowfilter.py::test_setup SKIPPED (Tensorflow not present) [ 80%] 203s tests/test_tfrowfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 80%] 203s tests/test_tfrowfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 80%] 203s tests/test_tfrowfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 81%] 203s tests/test_tfrowfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 81%] 203s tests/test_tfrowfilter.py::test_biort SKIPPED (Tensorflow not present) [ 81%] 203s tests/test_tfrowfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 82%] 203s tests/test_tfrowfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 82%] 203s tests/test_tfrowfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 82%] 203s tests/test_tfrowfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 82%] 203s tests/test_tfrowfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 83%] 203s tests/test_tfrowfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 83%] 203s tests/test_utils.py::test_complex_type_for_complex FAILED [ 83%] 203s tests/test_utils.py::test_complex_type_for_float FAILED [ 84%] 203s tests/test_utils.py::test_draw_circ PASSED [ 84%] 203s tests/test_utils.py::test_draw_edge PASSED [ 84%] 203s tests/test_utils.py::test_stacked_2d_matrix_vector_product PASSED [ 84%] 203s tests/test_utils.py::test_stacked_2d_vector_matrix_product PASSED [ 85%] 203s tests/test_utils.py::test_stacked_2d_matrix_matrix_product PASSED [ 85%] 203s tests/test_xfm1.py::test_simple FAILED [ 85%] 203s tests/test_xfm1.py::test_simple_with_no_levels FAILED [ 86%] 203s tests/test_xfm1.py::test_simple_with_scale FAILED [ 86%] 203s tests/test_xfm1.py::test_simple_with_scale_and_no_levels FAILED [ 86%] 203s tests/test_xfm1.py::test_perfect_recon FAILED [ 87%] 203s tests/test_xfm1.py::test_simple_custom_filter FAILED [ 87%] 203s tests/test_xfm1.py::test_single_level FAILED [ 87%] 203s tests/test_xfm1.py::test_non_multiple_of_two FAILED [ 87%] 203s tests/test_xfm1.py::test_2d FAILED [ 88%] 203s tests/test_xfm1.py::test_integer_input FAILED [ 88%] 203s tests/test_xfm1.py::test_integer_perfect_recon FAILED [ 88%] 203s tests/test_xfm1.py::test_float32_input FAILED [ 89%] 203s tests/test_xfm2.py::test_mandrill_loaded PASSED [ 89%] 203s tests/test_xfm2.py::test_simple FAILED [ 89%] 203s tests/test_xfm2.py::test_specific_wavelet FAILED [ 89%] 203s tests/test_xfm2.py::test_1d FAILED [ 90%] 204s tests/test_xfm2.py::test_3d FAILED [ 90%] 204s tests/test_xfm2.py::test_simple_w_scale FAILED [ 90%] 204s tests/test_xfm2.py::test_odd_rows FAILED [ 91%] 204s tests/test_xfm2.py::test_odd_rows_w_scale FAILED [ 91%] 204s tests/test_xfm2.py::test_odd_cols FAILED [ 91%] 204s tests/test_xfm2.py::test_odd_cols_w_scale FAILED [ 92%] 204s tests/test_xfm2.py::test_odd_rows_and_cols FAILED [ 92%] 204s tests/test_xfm2.py::test_odd_rows_and_cols_w_scale FAILED [ 92%] 204s tests/test_xfm2.py::test_rot_symm_modified FAILED [ 92%] 204s tests/test_xfm2.py::test_0_levels FAILED [ 93%] 204s tests/test_xfm2.py::test_0_levels_w_scale FAILED [ 93%] 204s tests/test_xfm2.py::test_integer_input FAILED [ 93%] 204s tests/test_xfm2.py::test_integer_perfect_recon FAILED [ 94%] 204s tests/test_xfm2.py::test_float32_input FAILED [ 94%] 204s tests/test_xfm3.py::test_ellipsoid PASSED [ 94%] 204s tests/test_xfm3.py::test_simple_level_1_xfm FAILED [ 94%] 204s tests/test_xfm3.py::test_simple_level_1_recon FAILED [ 95%] 204s tests/test_xfm3.py::test_simple_level_1_recon_haar FAILED [ 95%] 204s tests/test_xfm3.py::test_simple_level_2_xfm FAILED [ 95%] 204s tests/test_xfm3.py::test_simple_level_2_recon FAILED [ 96%] 204s tests/test_xfm3.py::test_simple_level_4_xfm FAILED [ 96%] 204s tests/test_xfm3.py::test_simple_level_4_recon FAILED [ 96%] 204s tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets FAILED [ 97%] 205s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 FAILED [ 97%] 205s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 FAILED [ 97%] 205s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 FAILED [ 97%] 205s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 FAILED [ 98%] 205s tests/test_xfm3.py::test_integer_input FAILED [ 98%] 205s tests/test_xfm3.py::test_integer_perfect_recon FAILED [ 98%] 205s tests/test_xfm3.py::test_float32_input FAILED [ 99%] 205s tests/test_xfm3.py::test_float32_recon FAILED [ 99%] 205s tests/test_xfm3.py::test_level_4_recon_discarding_level_1 FAILED [ 99%] 205s tests/test_xfm3.py::test_level_4_discarding_level_1 FAILED [100%] 205s 205s =================================== FAILURES =================================== 205s ________________________________ test_coldfilt _________________________________ 205s 205s def test_coldfilt(): 205s h0o, g0o, h1o, g1o = biort('near_sym_b') 205s h0a, h0b, g0a, g0b, h1a, h1b, g1a, g1b = qshift('qshift_d') 205s > A = colifilt(mandrill, g0b, g0a) 205s 205s tests/test_againstmatlab.py:81: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_dtwavexfm2 ________________________________ 205s 205s def test_dtwavexfm2(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill, 4, 'near_sym_a', 'qshift_a', include_scale=True) 205s 205s tests/test_againstmatlab.py:85: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_dtwavexfm2b _______________________________ 205s 205s def test_dtwavexfm2b(): 205s > Yl, Yh, Yscale = dtwavexfm2b(mandrill, 4, 'near_sym_b_bp', 'qshift_b_bp', include_scale=True) 205s 205s tests/test_againstmatlab.py:95: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_rescale_highpass _____________________________ 205s 205s def test_rescale_highpass(): 205s # N.B we can only test bilinear rescaling since cpxinterb2b doesn't support Lanczos 205s > Yl, Yh = dtwavexfm2b(mandrill, 3, 'near_sym_a', 'qshift_a') 205s 205s tests/test_againstmatlab.py:106: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_transform3d_numpy ____________________________ 205s 205s def test_transform3d_numpy(): 205s transform = Transform3d(biort='near_sym_b',qshift='qshift_b') 205s > td_signal = transform.forward(qbgn, nlevels=3, include_scale=True, discard_level_1=False) 205s 205s tests/test_againstmatlab.py:117: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_odd_filter ________________________________ 205s 205s def test_odd_filter(): 205s with raises(ValueError): 205s > coldfilt(mandrill, (-1,2,-1), (-1,2,1)) 205s 205s tests/test_coldfilt.py:22: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_different_size ______________________________ 205s 205s def test_different_size(): 205s with raises(ValueError): 205s > coldfilt(mandrill, (-0.5,-1,2,1,0.5), (-1,2,-1)) 205s 205s tests/test_coldfilt.py:26: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_bad_input_size ______________________________ 205s 205s def test_bad_input_size(): 205s with raises(ValueError): 205s > coldfilt(mandrill[:511,:], (-1,1), (1,-1)) 205s 205s tests/test_coldfilt.py:30: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_good_input_size _____________________________ 205s 205s def test_good_input_size(): 205s > coldfilt(mandrill[:,:511], (-1,1), (1,-1)) 205s 205s tests/test_coldfilt.py:33: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________ test_good_input_size_non_orthogonal ______________________ 205s 205s def test_good_input_size_non_orthogonal(): 205s > coldfilt(mandrill[:,:511], (1,1), (1,1)) 205s 205s tests/test_coldfilt.py:36: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_output_size _______________________________ 205s 205s def test_output_size(): 205s > Y = coldfilt(mandrill, (-1,1), (1,-1)) 205s 205s tests/test_coldfilt.py:39: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________________ test_odd_size _________________________________ 205s 205s def test_odd_size(): 205s > y = colfilter(mandrill, (-1,2,-1)) 205s 205s tests/test_colfilter.py:28: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________________ test_even_size ________________________________ 205s 205s def test_even_size(): 205s > y = colfilter(np.zeros_like(mandrill), (-1,1)) 205s 205s tests/test_colfilter.py:40: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _________________________________ test_qshift __________________________________ 205s 205s def test_qshift(): 205s > y = colfilter(mandrill, qshift('qshift_a')[0]) 205s 205s tests/test_colfilter.py:32: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________________ test_biort __________________________________ 205s 205s def test_biort(): 205s > y = colfilter(mandrill, biort('antonini')[0]) 205s 205s tests/test_colfilter.py:36: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_odd_size_non_array ____________________________ 205s 205s def test_odd_size_non_array(): 205s > y = colfilter(mandrill.tolist(), (-1,2,-1)) 205s 205s tests/test_colfilter.py:45: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_even_size_non_array ___________________________ 205s 205s def test_even_size_non_array(): 205s > y = colfilter(mandrill.tolist(), (-1,1)) 205s 205s tests/test_colfilter.py:49: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_odd_filter ________________________________ 205s 205s def test_odd_filter(): 205s with raises(ValueError): 205s > colifilt(mandrill, (-1,2,-1), (-1,2,1)) 205s 205s tests/test_colifilt.py:22: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_different_size_h _____________________________ 205s 205s def test_different_size_h(): 205s with raises(ValueError): 205s > colifilt(mandrill, (-1,2,1), (-0.5,-1,2,-1,0.5)) 205s 205s tests/test_colifilt.py:26: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_zero_input ________________________________ 205s 205s def test_zero_input(): 205s > Y = colifilt(np.zeros_like(mandrill), (-1,1), (1,-1)) 205s 205s tests/test_colifilt.py:29: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_bad_input_size ______________________________ 205s 205s def test_bad_input_size(): 205s with raises(ValueError): 205s > colifilt(mandrill[:511,:], (-1,1), (1,-1)) 205s 205s tests/test_colifilt.py:34: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_good_input_size _____________________________ 205s 205s def test_good_input_size(): 205s > colifilt(mandrill[:,:511], (-1,1), (1,-1)) 205s 205s tests/test_colifilt.py:37: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_output_size _______________________________ 205s 205s def test_output_size(): 205s > Y = colifilt(mandrill, (-1,1), (1,-1)) 205s 205s tests/test_colifilt.py:40: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_non_orthogonal_input ___________________________ 205s 205s def test_non_orthogonal_input(): 205s > Y = colifilt(mandrill, (1,1), (1,1)) 205s 205s tests/test_colifilt.py:44: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _________________________ test_output_size_non_mult_4 __________________________ 205s 205s def test_output_size_non_mult_4(): 205s > Y = colifilt(mandrill, (-1,0,0,1), (1,0,0,-1)) 205s 205s tests/test_colifilt.py:48: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________ test_non_orthogonal_input_non_mult_4 _____________________ 205s 205s def test_non_orthogonal_input_non_mult_4(): 205s > Y = colifilt(mandrill, (1,0,0,1), (1,0,0,1)) 205s 205s tests/test_colifilt.py:52: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_reconstruct _______________________________ 205s 205s def test_reconstruct(): 205s # Reconstruction up to tolerance 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec) 205s 205s tests/test_ifm1.py:12: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_reconstruct_2d ______________________________ 205s 205s def test_reconstruct_2d(): 205s # Reconstruction up to tolerance 205s vec = np.random.rand(630, 20) 205s > Yl, Yh = dtwavexfm(vec) 205s 205s tests/test_ifm1.py:19: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_input ______________________________ 205s 205s def test_float32_input(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm(np.array([1, 2, 3, 4]).astype(np.float32)) 205s 205s tests/test_ifm1.py:25: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_reconstruct _______________________________ 205s 205s def test_reconstruct(): 205s # Reconstruction up to tolerance 205s > Yl, Yh = dtwavexfm2(mandrill) 205s 205s tests/test_ifm2.py:23: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_reconstruct_crop _____________________________ 205s 205s def test_reconstruct_crop(): 205s # Reconstruction up to tolerance 205s > Yl_crop, Yh_crop = dtwavexfm2(mandrill_crop) 205s 205s tests/test_ifm2.py:29: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________ test_reconstruct_custom_filter ________________________ 205s 205s def test_reconstruct_custom_filter(): 205s # Reconstruction up to tolerance 205s > Yl, Yh = dtwavexfm2(mandrill, 4, biort('legall'), qshift('qshift_06')) 205s 205s tests/test_ifm2.py:35: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_input ______________________________ 205s 205s def test_float32_input(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 205s 205s tests/test_ifm2.py:41: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________________ test_estimatereg _______________________________ 205s 205s def test_estimatereg(): 205s nlevels = 6 205s trans = Transform2d() 205s > t1 = trans.forward(f1, nlevels=nlevels) 205s 205s tests/test_registration.py:29: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________ test_complex_type_for_complex _________________________ 205s 205s def test_complex_type_for_complex(): 205s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.complex64)), np.complex64) 205s 205s tests/test_utils.py:8: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'issubsctype' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _________________________ test_complex_type_for_float __________________________ 205s 205s def test_complex_type_for_float(): 205s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.float32)), np.complex64) 205s 205s tests/test_utils.py:12: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'issubsctype' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _________________________________ test_simple __________________________________ 205s 205s def test_simple(): 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec, 3) 205s 205s tests/test_xfm1.py:12: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_simple_with_no_levels __________________________ 205s 205s def test_simple_with_no_levels(): 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec, 0) 205s 205s tests/test_xfm1.py:17: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_simple_with_scale ____________________________ 205s 205s def test_simple_with_scale(): 205s vec = np.random.rand(630) 205s > Yl, Yh, Yscale = dtwavexfm(vec, 3, include_scale=True) 205s 205s tests/test_xfm1.py:22: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________ test_simple_with_scale_and_no_levels _____________________ 205s 205s def test_simple_with_scale_and_no_levels(): 205s vec = np.random.rand(630) 205s > Yl, Yh, Yscale = dtwavexfm(vec, 0, include_scale=True) 205s 205s tests/test_xfm1.py:28: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_perfect_recon ______________________________ 205s 205s def test_perfect_recon(): 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec) 205s 205s tests/test_xfm1.py:34: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_simple_custom_filter ___________________________ 205s 205s def test_simple_custom_filter(): 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec, 4, biort('legall'), qshift('qshift_06')) 205s 205s tests/test_xfm1.py:40: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_single_level _______________________________ 205s 205s def test_single_level(): 205s vec = np.random.rand(630) 205s > Yl, Yh = dtwavexfm(vec, 1) 205s 205s tests/test_xfm1.py:46: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_non_multiple_of_two ___________________________ 205s 205s def test_non_multiple_of_two(): 205s vec = np.random.rand(631) 205s with raises(ValueError): 205s > Yl, Yh = dtwavexfm(vec, 1) 205s 205s tests/test_xfm1.py:51: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________________ test_2d ____________________________________ 205s 205s def test_2d(): 205s > Yl, Yh = dtwavexfm(np.random.rand(10,10)) 205s 205s tests/test_xfm1.py:54: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_integer_input ______________________________ 205s 205s def test_integer_input(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array 205s > Yl, Yh = dtwavexfm([1,2,3,4]) 205s 205s tests/test_xfm1.py:59: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_integer_perfect_recon __________________________ 205s 205s def test_integer_perfect_recon(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array and reconstructed 205s A = np.array([1,2,3,4], dtype=np.int32) 205s > Yl, Yh = dtwavexfm(A) 205s 205s tests/test_xfm1.py:66: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_input ______________________________ 205s 205s def test_float32_input(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm(np.array([1,2,3,4]).astype(np.float32)) 205s 205s tests/test_xfm1.py:72: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 205s X = asfarray(X) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _________________________________ test_simple __________________________________ 205s 205s def test_simple(): 205s > Yl, Yh = dtwavexfm2(mandrill) 205s 205s tests/test_xfm2.py:22: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_specific_wavelet _____________________________ 205s 205s def test_specific_wavelet(): 205s > Yl, Yh = dtwavexfm2(mandrill, biort=biort('antonini'), qshift=qshift('qshift_06')) 205s 205s tests/test_xfm2.py:25: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________________ test_1d ____________________________________ 205s 205s def test_1d(): 205s > Yl, Yh = dtwavexfm2(mandrill[0,:]) 205s 205s tests/test_xfm2.py:28: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________________ test_3d ____________________________________ 205s 205s def test_3d(): 205s with raises(ValueError): 205s > Yl, Yh = dtwavexfm2(np.dstack((mandrill, mandrill))) 205s 205s tests/test_xfm2.py:32: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________________ test_simple_w_scale ______________________________ 205s 205s def test_simple_w_scale(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill, include_scale=True) 205s 205s tests/test_xfm2.py:35: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________________ test_odd_rows _________________________________ 205s 205s def test_odd_rows(): 205s > Yl, Yh = dtwavexfm2(mandrill[:509,:]) 205s 205s tests/test_xfm2.py:42: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_odd_rows_w_scale _____________________________ 205s 205s def test_odd_rows_w_scale(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:], include_scale=True) 205s 205s tests/test_xfm2.py:45: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________________ test_odd_cols _________________________________ 205s 205s def test_odd_cols(): 205s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 205s 205s tests/test_xfm2.py:48: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_odd_cols_w_scale _____________________________ 205s 205s def test_odd_cols_w_scale(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 205s 205s tests/test_xfm2.py:51: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_odd_rows_and_cols ____________________________ 205s 205s def test_odd_rows_and_cols(): 205s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 205s 205s tests/test_xfm2.py:54: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________ test_odd_rows_and_cols_w_scale ________________________ 205s 205s def test_odd_rows_and_cols_w_scale(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 205s 205s tests/test_xfm2.py:57: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_rot_symm_modified ____________________________ 205s 205s def test_rot_symm_modified(): 205s # This test only checks there is no error running these functions, not that they work 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill, biort='near_sym_b_bp', qshift='qshift_b_bp', include_scale=True) 205s 205s tests/test_xfm2.py:61: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________________ test_0_levels _________________________________ 205s 205s def test_0_levels(): 205s > Yl, Yh = dtwavexfm2(mandrill, nlevels=0) 205s 205s tests/test_xfm2.py:65: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________________ test_0_levels_w_scale _____________________________ 205s 205s def test_0_levels_w_scale(): 205s > Yl, Yh, Yscale = dtwavexfm2(mandrill, nlevels=0, include_scale=True) 205s 205s tests/test_xfm2.py:70: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_integer_input ______________________________ 205s 205s def test_integer_input(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array 205s > Yl, Yh = dtwavexfm2([[1,2,3,4], [1,2,3,4]]) 205s 205s tests/test_xfm2.py:78: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_integer_perfect_recon __________________________ 205s 205s def test_integer_perfect_recon(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array and reconstructed 205s A = np.array([[1,2,3,4], [5,6,7,8]], dtype=np.int32) 205s > Yl, Yh = dtwavexfm2(A) 205s 205s tests/test_xfm2.py:85: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_input ______________________________ 205s 205s def test_float32_input(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 205s 205s tests/test_xfm2.py:91: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 205s res = trans.forward(X, nlevels, include_scale) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 205s X = np.atleast_2d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_simple_level_1_xfm ____________________________ 205s 205s def test_simple_level_1_xfm(): 205s # Just tests that the transform broadly works and gives expected size output 205s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 205s 205s tests/test_xfm3.py:31: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_simple_level_1_recon ___________________________ 205s 205s def test_simple_level_1_recon(): 205s # Test for perfect reconstruction with 1 level 205s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 205s 205s tests/test_xfm3.py:37: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ________________________ test_simple_level_1_recon_haar ________________________ 205s 205s def test_simple_level_1_recon_haar(): 205s # Test for perfect reconstruction with 1 level and Haar wavelets 205s 205s # Form Haar wavelets 205s h0 = np.array((1.0, 1.0)) 205s g0 = h0 205s h0 = h0 / np.sum(h0) 205s g0 = g0 / np.sum(g0) 205s h1 = g0 * np.cumprod(-np.ones_like(g0)) 205s g1 = -h0 * np.cumprod(-np.ones_like(h0)) 205s 205s haar = (h0, g0, h1, g1) 205s 205s > Yl, Yh = dtwavexfm3(ellipsoid, 1, biort=haar) 205s 205s tests/test_xfm3.py:55: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_simple_level_2_xfm ____________________________ 205s 205s def test_simple_level_2_xfm(): 205s # Just tests that the transform broadly works and gives expected size output 205s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 205s 205s tests/test_xfm3.py:62: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_simple_level_2_recon ___________________________ 205s 205s def test_simple_level_2_recon(): 205s # Test for perfect reconstruction with 2 levels 205s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 205s 205s tests/test_xfm3.py:68: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ___________________________ test_simple_level_4_xfm ____________________________ 205s 205s def test_simple_level_4_xfm(): 205s # Just tests that the transform broadly works and gives expected size output 205s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 205s 205s tests/test_xfm3.py:75: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_simple_level_4_recon ___________________________ 205s 205s def test_simple_level_4_recon(): 205s # Test for perfect reconstruction with 3 levels 205s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 205s 205s tests/test_xfm3.py:81: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________ test_simple_level_4_recon_custom_wavelets ___________________ 205s 205s def test_simple_level_4_recon_custom_wavelets(): 205s # Test for perfect reconstruction with 3 levels 205s b = biort('legall') 205s q = qshift('qshift_06') 205s > Yl, Yh = dtwavexfm3(ellipsoid, 4, biort=b, qshift=q) 205s 205s tests/test_xfm3.py:90: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________ test_simple_level_4_xfm_ext_mode_8 ______________________ 205s 205s def test_simple_level_4_xfm_ext_mode_8(): 205s # Just tests that the transform broadly works and gives expected size output 205s crop_ellipsoid = ellipsoid[:62,:58,:54] 205s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 205s 205s tests/test_xfm3.py:98: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________ test_simple_level_4_recon_ext_mode_8 _____________________ 205s 205s def test_simple_level_4_recon_ext_mode_8(): 205s # Test for perfect reconstruction with 3 levels 205s crop_ellipsoid = ellipsoid[:62,:58,:54] 205s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 205s 205s tests/test_xfm3.py:104: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________ test_simple_level_4_xfm_ext_mode_4 ______________________ 205s 205s def test_simple_level_4_xfm_ext_mode_4(): 205s # Just tests that the transform broadly works and gives expected size output 205s crop_ellipsoid = ellipsoid[:62,:54,:58] 205s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 205s 205s tests/test_xfm3.py:112: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _____________________ test_simple_level_4_recon_ext_mode_4 _____________________ 205s 205s def test_simple_level_4_recon_ext_mode_4(): 205s # Test for perfect reconstruction with 3 levels 205s crop_ellipsoid = ellipsoid[:62,:54,:58] 205s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 205s 205s tests/test_xfm3.py:118: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_integer_input ______________________________ 205s 205s def test_integer_input(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array 205s > Yl, Yh = dtwavexfm3(np.ones((4,4,4), dtype=int)) 205s 205s tests/test_xfm3.py:126: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s __________________________ test_integer_perfect_recon __________________________ 205s 205s def test_integer_perfect_recon(): 205s # Check that an integer input is correctly coerced into a floating point 205s # array and reconstructed 205s A = (np.random.random((4,4,4)) * 5).astype(np.int32) 205s > Yl, Yh = dtwavexfm3(A) 205s 205s tests/test_xfm3.py:133: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_input ______________________________ 205s 205s def test_float32_input(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 205s 205s tests/test_xfm3.py:139: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ______________________________ test_float32_recon ______________________________ 205s 205s def test_float32_recon(): 205s # Check that an float32 input is correctly output as float32 205s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 205s 205s tests/test_xfm3.py:145: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s ____________________ test_level_4_recon_discarding_level_1 _____________________ 205s 205s def test_level_4_recon_discarding_level_1(): 205s # Test for non-perfect but reasonable reconstruction 205s > Yl, Yh = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 205s 205s tests/test_xfm3.py:154: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s _______________________ test_level_4_discarding_level_1 ________________________ 205s 205s def test_level_4_discarding_level_1(): 205s # Test that level >= 2 highpasses are identical 205s > Yl1, Yh1 = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 205s 205s tests/test_xfm3.py:163: 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 205s res = trans.forward(X, nlevels, include_scale, discard_level_1) 205s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 205s X = np.atleast_3d(asfarray(X)) 205s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 205s return np.asfarray(X, dtype=X.dtype) 205s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 205s 205s attr = 'asfarray' 205s 205s def __getattr__(attr): 205s # Warn for expired attributes 205s import warnings 205s 205s if attr == "linalg": 205s import numpy.linalg as linalg 205s return linalg 205s elif attr == "fft": 205s import numpy.fft as fft 205s return fft 205s elif attr == "dtypes": 205s import numpy.dtypes as dtypes 205s return dtypes 205s elif attr == "random": 205s import numpy.random as random 205s return random 205s elif attr == "polynomial": 205s import numpy.polynomial as polynomial 205s return polynomial 205s elif attr == "ma": 205s import numpy.ma as ma 205s return ma 205s elif attr == "ctypeslib": 205s import numpy.ctypeslib as ctypeslib 205s return ctypeslib 205s elif attr == "exceptions": 205s import numpy.exceptions as exceptions 205s return exceptions 205s elif attr == "testing": 205s import numpy.testing as testing 205s return testing 205s elif attr == "matlib": 205s import numpy.matlib as matlib 205s return matlib 205s elif attr == "f2py": 205s import numpy.f2py as f2py 205s return f2py 205s elif attr == "typing": 205s import numpy.typing as typing 205s return typing 205s elif attr == "rec": 205s import numpy.rec as rec 205s return rec 205s elif attr == "char": 205s import numpy.char as char 205s return char 205s elif attr == "array_api": 205s raise AttributeError("`numpy.array_api` is not available from " 205s "numpy 2.0 onwards", name=None) 205s elif attr == "core": 205s import numpy.core as core 205s return core 205s elif attr == "strings": 205s import numpy.strings as strings 205s return strings 205s elif attr == "distutils": 205s if 'distutils' in __numpy_submodules__: 205s import numpy.distutils as distutils 205s return distutils 205s else: 205s raise AttributeError("`numpy.distutils` is not available from " 205s "Python 3.12 onwards", name=None) 205s 205s if attr in __future_scalars__: 205s # And future warnings for those that will change, but also give 205s # the AttributeError 205s warnings.warn( 205s f"In the future `np.{attr}` will be defined as the " 205s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 205s 205s if attr in __former_attrs__: 205s raise AttributeError(__former_attrs__[attr], name=None) 205s 205s if attr in __expired_attributes__: 205s > raise AttributeError( 205s f"`np.{attr}` was removed in the NumPy 2.0 release. " 205s f"{__expired_attributes__[attr]}", 205s name=None 205s ) 205s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 205s 205s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 205s =========================== short test summary info ============================ 205s FAILED tests/test_againstmatlab.py::test_coldfilt - AttributeError: `np.asfar... 205s FAILED tests/test_againstmatlab.py::test_dtwavexfm2 - AttributeError: `np.asf... 205s FAILED tests/test_againstmatlab.py::test_dtwavexfm2b - AttributeError: `np.as... 205s FAILED tests/test_againstmatlab.py::test_rescale_highpass - AttributeError: `... 205s FAILED tests/test_againstmatlab.py::test_transform3d_numpy - AttributeError: ... 205s FAILED tests/test_coldfilt.py::test_odd_filter - AttributeError: `np.asfarray... 205s FAILED tests/test_coldfilt.py::test_different_size - AttributeError: `np.asfa... 205s FAILED tests/test_coldfilt.py::test_bad_input_size - AttributeError: `np.asfa... 205s FAILED tests/test_coldfilt.py::test_good_input_size - AttributeError: `np.asf... 205s FAILED tests/test_coldfilt.py::test_good_input_size_non_orthogonal - Attribut... 205s FAILED tests/test_coldfilt.py::test_output_size - AttributeError: `np.asfarra... 205s FAILED tests/test_colfilter.py::test_odd_size - AttributeError: `np.asfarray`... 205s FAILED tests/test_colfilter.py::test_even_size - AttributeError: `np.asfarray... 205s FAILED tests/test_colfilter.py::test_qshift - AttributeError: `np.asfarray` w... 205s FAILED tests/test_colfilter.py::test_biort - AttributeError: `np.asfarray` wa... 205s FAILED tests/test_colfilter.py::test_odd_size_non_array - AttributeError: `np... 205s FAILED tests/test_colfilter.py::test_even_size_non_array - AttributeError: `n... 205s FAILED tests/test_colifilt.py::test_odd_filter - AttributeError: `np.asfarray... 205s FAILED tests/test_colifilt.py::test_different_size_h - AttributeError: `np.as... 205s FAILED tests/test_colifilt.py::test_zero_input - AttributeError: `np.asfarray... 205s FAILED tests/test_colifilt.py::test_bad_input_size - AttributeError: `np.asfa... 205s FAILED tests/test_colifilt.py::test_good_input_size - AttributeError: `np.asf... 205s FAILED tests/test_colifilt.py::test_output_size - AttributeError: `np.asfarra... 205s FAILED tests/test_colifilt.py::test_non_orthogonal_input - AttributeError: `n... 205s FAILED tests/test_colifilt.py::test_output_size_non_mult_4 - AttributeError: ... 205s FAILED tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 - Attribu... 205s FAILED tests/test_ifm1.py::test_reconstruct - AttributeError: `np.asfarray` w... 205s FAILED tests/test_ifm1.py::test_reconstruct_2d - AttributeError: `np.asfarray... 205s FAILED tests/test_ifm1.py::test_float32_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_ifm2.py::test_reconstruct - AttributeError: `np.asfarray` w... 205s FAILED tests/test_ifm2.py::test_reconstruct_crop - AttributeError: `np.asfarr... 205s FAILED tests/test_ifm2.py::test_reconstruct_custom_filter - AttributeError: `... 205s FAILED tests/test_ifm2.py::test_float32_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_registration.py::test_estimatereg - AttributeError: `np.asf... 205s FAILED tests/test_utils.py::test_complex_type_for_complex - AttributeError: `... 205s FAILED tests/test_utils.py::test_complex_type_for_float - AttributeError: `np... 205s FAILED tests/test_xfm1.py::test_simple - AttributeError: `np.asfarray` was re... 205s FAILED tests/test_xfm1.py::test_simple_with_no_levels - AttributeError: `np.a... 205s FAILED tests/test_xfm1.py::test_simple_with_scale - AttributeError: `np.asfar... 205s FAILED tests/test_xfm1.py::test_simple_with_scale_and_no_levels - AttributeEr... 205s FAILED tests/test_xfm1.py::test_perfect_recon - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm1.py::test_simple_custom_filter - AttributeError: `np.as... 205s FAILED tests/test_xfm1.py::test_single_level - AttributeError: `np.asfarray` ... 205s FAILED tests/test_xfm1.py::test_non_multiple_of_two - AttributeError: `np.asf... 205s FAILED tests/test_xfm1.py::test_2d - AttributeError: `np.asfarray` was remove... 205s FAILED tests/test_xfm1.py::test_integer_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm1.py::test_integer_perfect_recon - AttributeError: `np.a... 205s FAILED tests/test_xfm1.py::test_float32_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm2.py::test_simple - AttributeError: `np.asfarray` was re... 205s FAILED tests/test_xfm2.py::test_specific_wavelet - AttributeError: `np.asfarr... 205s FAILED tests/test_xfm2.py::test_1d - AttributeError: `np.asfarray` was remove... 205s FAILED tests/test_xfm2.py::test_3d - AttributeError: `np.asfarray` was remove... 205s FAILED tests/test_xfm2.py::test_simple_w_scale - AttributeError: `np.asfarray... 205s FAILED tests/test_xfm2.py::test_odd_rows - AttributeError: `np.asfarray` was ... 205s FAILED tests/test_xfm2.py::test_odd_rows_w_scale - AttributeError: `np.asfarr... 205s FAILED tests/test_xfm2.py::test_odd_cols - AttributeError: `np.asfarray` was ... 205s FAILED tests/test_xfm2.py::test_odd_cols_w_scale - AttributeError: `np.asfarr... 205s FAILED tests/test_xfm2.py::test_odd_rows_and_cols - AttributeError: `np.asfar... 205s FAILED tests/test_xfm2.py::test_odd_rows_and_cols_w_scale - AttributeError: `... 205s FAILED tests/test_xfm2.py::test_rot_symm_modified - AttributeError: `np.asfar... 205s FAILED tests/test_xfm2.py::test_0_levels - AttributeError: `np.asfarray` was ... 205s FAILED tests/test_xfm2.py::test_0_levels_w_scale - AttributeError: `np.asfarr... 205s FAILED tests/test_xfm2.py::test_integer_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm2.py::test_integer_perfect_recon - AttributeError: `np.a... 205s FAILED tests/test_xfm2.py::test_float32_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm3.py::test_simple_level_1_xfm - AttributeError: `np.asfa... 205s FAILED tests/test_xfm3.py::test_simple_level_1_recon - AttributeError: `np.as... 205s FAILED tests/test_xfm3.py::test_simple_level_1_recon_haar - AttributeError: `... 205s FAILED tests/test_xfm3.py::test_simple_level_2_xfm - AttributeError: `np.asfa... 205s FAILED tests/test_xfm3.py::test_simple_level_2_recon - AttributeError: `np.as... 205s FAILED tests/test_xfm3.py::test_simple_level_4_xfm - AttributeError: `np.asfa... 205s FAILED tests/test_xfm3.py::test_simple_level_4_recon - AttributeError: `np.as... 205s FAILED tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets - Attrib... 205s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 - AttributeErro... 205s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 - AttributeEr... 205s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 - AttributeErro... 205s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 - AttributeEr... 205s FAILED tests/test_xfm3.py::test_integer_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm3.py::test_integer_perfect_recon - AttributeError: `np.a... 205s FAILED tests/test_xfm3.py::test_float32_input - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm3.py::test_float32_recon - AttributeError: `np.asfarray`... 205s FAILED tests/test_xfm3.py::test_level_4_recon_discarding_level_1 - AttributeE... 205s FAILED tests/test_xfm3.py::test_level_4_discarding_level_1 - AttributeError: ... 205s ================== 83 failed, 42 passed, 214 skipped in 5.09s ================== 206s autopkgtest [00:47:00]: test command1: -----------------------] 206s autopkgtest [00:47:00]: test command1: - - - - - - - - - - results - - - - - - - - - - 206s command1 FAIL non-zero exit status 1 206s autopkgtest [00:47:00]: @@@@@@@@@@@@@@@@@@@@ summary 206s command1 FAIL non-zero exit status 1 212s nova [W] Using flock in prodstack6-ppc64el 212s Creating nova instance adt-plucky-ppc64el-python-dtcwt-20250221-004334-juju-7f2275-prod-proposed-migration-environment-2-4519bbfc-7b3c-4db4-a674-a413212510ed from image adt/ubuntu-plucky-ppc64el-server-20250220.img (UUID 8cc835a1-8e62-4357-a4cf-395725ecab4d)... 212s nova [W] Timed out waiting for 4eab90fd-dabb-45c7-ac39-0994948e1595 to get deleted.