0s autopkgtest [00:08:22]: starting date and time: 2025-02-21 00:08:22+0000 0s autopkgtest [00:08:22]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [00:08:22]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.zqvpfau1/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-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-10.secgroup --name adt-plucky-s390x-python-dtcwt-20250221-000822-juju-7f2275-prod-proposed-migration-environment-20-32c343c7-82e6-48be-b2b4-8ad13e718942 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -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/ 93s autopkgtest [00:09:55]: testbed dpkg architecture: s390x 93s autopkgtest [00:09:55]: testbed apt version: 2.9.30 94s autopkgtest [00:09:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 94s autopkgtest [00:09:56]: testbed release detected to be: None 95s autopkgtest [00:09:57]: updating testbed package index (apt update) 95s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 95s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 95s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 95s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 95s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 95s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [729 kB] 96s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.8 kB] 96s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [89.5 kB] 96s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [129 kB] 96s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted s390x Packages [760 B] 96s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [653 kB] 96s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [4436 B] 96s Fetched 1734 kB in 1s (1941 kB/s) 96s Reading package lists... 97s Reading package lists... 97s Building dependency tree... 97s Reading state information... 97s Calculating upgrade... 97s The following packages were automatically installed and are no longer required: 97s libnsl2 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 97s linux-headers-6.11.0-8 linux-headers-6.11.0-8-generic 97s linux-modules-6.11.0-8-generic linux-tools-6.11.0-8 97s linux-tools-6.11.0-8-generic 97s Use 'sudo apt autoremove' to remove them. 97s The following packages will be upgraded: 97s apt apt-utils binutils binutils-common binutils-s390x-linux-gnu 97s cryptsetup-bin inetutils-telnet kbd libapt-pkg7.0 libbinutils 97s libcryptsetup12 libctf-nobfd0 libctf0 libplymouth5 libsframe1 libssl3t64 97s openssl openssl-provider-legacy plymouth plymouth-theme-ubuntu-text 97s python3-requests sysconfig-hardware telnet 98s 23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 98s Need to get 8879 kB of archives. 98s After this operation, 25.6 kB of additional disk space will be used. 98s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x openssl-provider-legacy s390x 3.4.1-1ubuntu1 [37.9 kB] 98s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libssl3t64 s390x 3.4.1-1ubuntu1 [1889 kB] 98s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x libapt-pkg7.0 s390x 2.9.30ubuntu1 [1105 kB] 98s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x apt s390x 2.9.30ubuntu1 [1424 kB] 98s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x apt-utils s390x 2.9.30ubuntu1 [215 kB] 98s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x kbd s390x 2.7.1-2ubuntu1 [239 kB] 98s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x openssl s390x 3.4.1-1ubuntu1 [1184 kB] 98s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x inetutils-telnet s390x 2:2.5-6ubuntu1 [111 kB] 98s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libplymouth5 s390x 24.004.60-2ubuntu5 [150 kB] 98s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x plymouth-theme-ubuntu-text s390x 24.004.60-2ubuntu5 [10.1 kB] 98s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x plymouth s390x 24.004.60-2ubuntu5 [144 kB] 98s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x telnet all 0.17+2.5-6ubuntu1 [3694 B] 98s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x libctf0 s390x 2.44-2ubuntu1 [101 kB] 98s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x libctf-nobfd0 s390x 2.44-2ubuntu1 [102 kB] 98s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x binutils-s390x-linux-gnu s390x 2.44-2ubuntu1 [907 kB] 98s Get:16 http://ftpmaster.internal/ubuntu plucky/main s390x libbinutils s390x 2.44-2ubuntu1 [482 kB] 98s Get:17 http://ftpmaster.internal/ubuntu plucky/main s390x binutils s390x 2.44-2ubuntu1 [3206 B] 98s Get:18 http://ftpmaster.internal/ubuntu plucky/main s390x binutils-common s390x 2.44-2ubuntu1 [215 kB] 98s Get:19 http://ftpmaster.internal/ubuntu plucky/main s390x libsframe1 s390x 2.44-2ubuntu1 [14.2 kB] 98s Get:20 http://ftpmaster.internal/ubuntu plucky/main s390x libcryptsetup12 s390x 2:2.7.5-1ubuntu2 [269 kB] 98s Get:21 http://ftpmaster.internal/ubuntu plucky/main s390x cryptsetup-bin s390x 2:2.7.5-1ubuntu2 [216 kB] 98s Get:22 http://ftpmaster.internal/ubuntu plucky/main s390x python3-requests all 2.32.3+dfsg-4ubuntu1 [52.9 kB] 98s Get:23 http://ftpmaster.internal/ubuntu plucky/main s390x sysconfig-hardware s390x 0.0.14+nmu2ubuntu1 [4884 B] 99s Fetched 8879 kB in 1s (8570 kB/s) 99s (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 ... 81029 files and directories currently installed.) 99s Preparing to unpack .../openssl-provider-legacy_3.4.1-1ubuntu1_s390x.deb ... 99s Unpacking openssl-provider-legacy (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 99s Setting up openssl-provider-legacy (3.4.1-1ubuntu1) ... 99s (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 ... 81029 files and directories currently installed.) 99s Preparing to unpack .../libssl3t64_3.4.1-1ubuntu1_s390x.deb ... 99s Unpacking libssl3t64:s390x (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 99s Setting up libssl3t64:s390x (3.4.1-1ubuntu1) ... 99s (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 ... 81028 files and directories currently installed.) 99s Preparing to unpack .../libapt-pkg7.0_2.9.30ubuntu1_s390x.deb ... 99s Unpacking libapt-pkg7.0:s390x (2.9.30ubuntu1) over (2.9.30) ... 99s Setting up libapt-pkg7.0:s390x (2.9.30ubuntu1) ... 99s (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 ... 81028 files and directories currently installed.) 99s Preparing to unpack .../apt_2.9.30ubuntu1_s390x.deb ... 99s 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 ... 81028 files and directories currently installed.) 100s Preparing to unpack .../00-apt-utils_2.9.30ubuntu1_s390x.deb ... 100s Unpacking apt-utils (2.9.30ubuntu1) over (2.9.30) ... 100s Preparing to unpack .../01-kbd_2.7.1-2ubuntu1_s390x.deb ... 100s Unpacking kbd (2.7.1-2ubuntu1) over (2.6.4-2ubuntu3) ... 100s Preparing to unpack .../02-openssl_3.4.1-1ubuntu1_s390x.deb ... 100s Unpacking openssl (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 100s Preparing to unpack .../03-inetutils-telnet_2%3a2.5-6ubuntu1_s390x.deb ... 100s Unpacking inetutils-telnet (2:2.5-6ubuntu1) over (2:2.5-5ubuntu1) ... 100s Preparing to unpack .../04-libplymouth5_24.004.60-2ubuntu5_s390x.deb ... 100s Unpacking libplymouth5:s390x (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../05-plymouth-theme-ubuntu-text_24.004.60-2ubuntu5_s390x.deb ... 100s Unpacking plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../06-plymouth_24.004.60-2ubuntu5_s390x.deb ... 100s Unpacking plymouth (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 100s Preparing to unpack .../07-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 .../08-libctf0_2.44-2ubuntu1_s390x.deb ... 100s Unpacking libctf0:s390x (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../09-libctf-nobfd0_2.44-2ubuntu1_s390x.deb ... 100s Unpacking libctf-nobfd0:s390x (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../10-binutils-s390x-linux-gnu_2.44-2ubuntu1_s390x.deb ... 100s Unpacking binutils-s390x-linux-gnu (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../11-libbinutils_2.44-2ubuntu1_s390x.deb ... 100s Unpacking libbinutils:s390x (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../12-binutils_2.44-2ubuntu1_s390x.deb ... 100s Unpacking binutils (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../13-binutils-common_2.44-2ubuntu1_s390x.deb ... 100s Unpacking binutils-common:s390x (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../14-libsframe1_2.44-2ubuntu1_s390x.deb ... 100s Unpacking libsframe1:s390x (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 100s Preparing to unpack .../15-libcryptsetup12_2%3a2.7.5-1ubuntu2_s390x.deb ... 100s Unpacking libcryptsetup12:s390x (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 100s Preparing to unpack .../16-cryptsetup-bin_2%3a2.7.5-1ubuntu2_s390x.deb ... 100s Unpacking cryptsetup-bin (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 100s Preparing to unpack .../17-python3-requests_2.32.3+dfsg-4ubuntu1_all.deb ... 100s /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. 100s for fn in glob1(directory, "%s.*" % fname): 100s Unpacking python3-requests (2.32.3+dfsg-4ubuntu1) over (2.32.3+dfsg-1ubuntu1) ... 100s Preparing to unpack .../18-sysconfig-hardware_0.0.14+nmu2ubuntu1_s390x.deb ... 100s Unpacking sysconfig-hardware (0.0.14+nmu2ubuntu1) over (0.0.14ubuntu3) ... 100s Setting up apt-utils (2.9.30ubuntu1) ... 100s Setting up binutils-common:s390x (2.44-2ubuntu1) ... 100s Setting up inetutils-telnet (2:2.5-6ubuntu1) ... 100s Setting up libctf-nobfd0:s390x (2.44-2ubuntu1) ... 100s Setting up sysconfig-hardware (0.0.14+nmu2ubuntu1) ... 100s Setting up libsframe1:s390x (2.44-2ubuntu1) ... 100s Setting up python3-requests (2.32.3+dfsg-4ubuntu1) ... 100s Setting up libplymouth5:s390x (24.004.60-2ubuntu5) ... 100s Setting up libcryptsetup12:s390x (2:2.7.5-1ubuntu2) ... 100s Setting up kbd (2.7.1-2ubuntu1) ... 100s Setting up libbinutils:s390x (2.44-2ubuntu1) ... 100s Setting up openssl (3.4.1-1ubuntu1) ... 100s Setting up libctf0:s390x (2.44-2ubuntu1) ... 100s Setting up cryptsetup-bin (2:2.7.5-1ubuntu2) ... 100s Setting up binutils-s390x-linux-gnu (2.44-2ubuntu1) ... 100s Setting up telnet (0.17+2.5-6ubuntu1) ... 100s Setting up plymouth (24.004.60-2ubuntu5) ... 100s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 101s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 101s Setting up binutils (2.44-2ubuntu1) ... 101s Processing triggers for initramfs-tools (0.145ubuntu2) ... 101s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 101s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 105s Using config file '/etc/zipl.conf' 105s Building bootmap in '/boot' 105s Adding IPL section 'ubuntu' (default) 105s Preparing boot device for LD-IPL: vda (0000). 105s Done. 105s Processing triggers for libc-bin (2.40-4ubuntu1) ... 105s Processing triggers for man-db (2.13.0-1) ... 106s Setting up plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) ... 106s Processing triggers for initramfs-tools (0.145ubuntu2) ... 106s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 106s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 110s Using config file '/etc/zipl.conf' 110s Building bootmap in '/boot' 110s Adding IPL section 'ubuntu' (default) 110s Preparing boot device for LD-IPL: vda (0000). 110s Done. 111s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s Solving dependencies... 111s The following packages will be REMOVED: 111s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64* 111s linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic* 111s linux-modules-6.11.0-8-generic* linux-tools-6.11.0-8* 111s linux-tools-6.11.0-8-generic* 112s 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded. 112s After this operation, 167 MB disk space will be freed. 112s (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 ... 81025 files and directories currently installed.) 112s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ... 112s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ... 112s Removing libpython3.12t64:s390x (3.12.9-1) ... 112s Removing libpython3.12-stdlib:s390x (3.12.9-1) ... 112s Removing libnsl2:s390x (1.3.0-3build3) ... 112s Removing libpython3.12-minimal:s390x (3.12.9-1) ... 112s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ... 112s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ... 113s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 113s Processing triggers for libc-bin (2.40-4ubuntu1) ... 113s (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 ... 55925 files and directories currently installed.) 113s Purging configuration files for libpython3.12-minimal:s390x (3.12.9-1) ... 113s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 113s autopkgtest [00:10:15]: upgrading testbed (apt dist-upgrade and autopurge) 113s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 113s Starting 2 pkgProblemResolver with broken count: 0 113s Done 114s Entering ResolveByKeep 114s 114s Calculating upgrade... 114s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Reading package lists... 114s Building dependency tree... 114s Reading state information... 114s Starting pkgProblemResolver with broken count: 0 114s Starting 2 pkgProblemResolver with broken count: 0 114s Done 114s Solving dependencies... 114s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s autopkgtest [00:10:17]: rebooting testbed after setup commands that affected boot 133s autopkgtest [00:10:35]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP Tue Feb 4 15:05:57 UTC 2025 136s autopkgtest [00:10:38]: @@@@@@@@@@@@@@@@@@@@ apt-source python-dtcwt 138s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (dsc) [2520 B] 138s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (tar) [7457 kB] 138s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (diff) [6792 B] 139s gpgv: Signature made Thu Jun 6 22:51:03 2024 UTC 139s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 139s gpgv: Can't check signature: No public key 139s dpkg-source: warning: cannot verify inline signature for ./python-dtcwt_0.12.0-5ubuntu1.dsc: no acceptable signature found 139s autopkgtest [00:10:41]: testing package python-dtcwt version 0.12.0-5ubuntu1 139s autopkgtest [00:10:41]: build not needed 140s autopkgtest [00:10:42]: test command1: preparing testbed 140s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Starting pkgProblemResolver with broken count: 0 140s Starting 2 pkgProblemResolver with broken count: 0 140s Done 140s The following NEW packages will be installed: 140s libblas3 libgfortran5 liblapack3 liblbfgsb0 libnsl2 libpython3.12-minimal 140s libpython3.12-stdlib python3-all python3-decorator python3-dtcwt 140s python3-iniconfig python3-numpy python3-numpy-dev python3-packaging 140s python3-pluggy python3-pytest python3-scipy python3-six python3.12 140s python3.12-minimal 141s 0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded. 141s Need to get 36.7 MB of archives. 141s After this operation, 182 MB of additional disk space will be used. 141s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-minimal s390x 3.12.9-1 [836 kB] 141s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12-minimal s390x 3.12.9-1 [2403 kB] 141s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-numpy-dev s390x 1:2.2.3+ds-2 [146 kB] 141s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libblas3 s390x 3.12.1-2 [252 kB] 141s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x libgfortran5 s390x 15-20250213-1ubuntu1 [620 kB] 141s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x liblapack3 s390x 3.12.1-2 [2971 kB] 141s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-numpy s390x 1:2.2.3+ds-2 [5031 kB] 142s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libnsl2 s390x 1.3.0-3build3 [44.1 kB] 142s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-stdlib s390x 3.12.9-1 [2071 kB] 142s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12 s390x 3.12.9-1 [671 kB] 142s Get:11 http://ftpmaster.internal/ubuntu plucky/universe s390x liblbfgsb0 s390x 3.0+dfsg.4-1build1 [32.4 kB] 142s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x python3-all s390x 3.13.1-1~exp2 [898 B] 142s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x python3-decorator all 5.1.1-5 [10.1 kB] 142s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x python3-six all 1.17.0-1 [13.2 kB] 142s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-dtcwt all 0.12.0-5ubuntu1 [54.6 kB] 142s Get:16 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 142s Get:17 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.2-1 [51.5 kB] 142s Get:18 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 142s Get:19 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.4-1 [252 kB] 142s Get:20 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-scipy s390x 1.14.1-4ubuntu1 [21.2 MB] 143s Fetched 36.7 MB in 2s (15.0 MB/s) 143s Selecting previously unselected package libpython3.12-minimal:s390x. 143s (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 ... 55923 files and directories currently installed.) 143s Preparing to unpack .../00-libpython3.12-minimal_3.12.9-1_s390x.deb ... 143s Unpacking libpython3.12-minimal:s390x (3.12.9-1) ... 143s Selecting previously unselected package python3.12-minimal. 143s Preparing to unpack .../01-python3.12-minimal_3.12.9-1_s390x.deb ... 143s Unpacking python3.12-minimal (3.12.9-1) ... 143s Selecting previously unselected package python3-numpy-dev:s390x. 143s Preparing to unpack .../02-python3-numpy-dev_1%3a2.2.3+ds-2_s390x.deb ... 143s Unpacking python3-numpy-dev:s390x (1:2.2.3+ds-2) ... 143s Selecting previously unselected package libblas3:s390x. 143s Preparing to unpack .../03-libblas3_3.12.1-2_s390x.deb ... 143s Unpacking libblas3:s390x (3.12.1-2) ... 143s Selecting previously unselected package libgfortran5:s390x. 143s Preparing to unpack .../04-libgfortran5_15-20250213-1ubuntu1_s390x.deb ... 143s Unpacking libgfortran5:s390x (15-20250213-1ubuntu1) ... 143s Selecting previously unselected package liblapack3:s390x. 143s Preparing to unpack .../05-liblapack3_3.12.1-2_s390x.deb ... 143s Unpacking liblapack3:s390x (3.12.1-2) ... 143s Selecting previously unselected package python3-numpy. 143s Preparing to unpack .../06-python3-numpy_1%3a2.2.3+ds-2_s390x.deb ... 143s Unpacking python3-numpy (1:2.2.3+ds-2) ... 144s Selecting previously unselected package libnsl2:s390x. 144s Preparing to unpack .../07-libnsl2_1.3.0-3build3_s390x.deb ... 144s Unpacking libnsl2:s390x (1.3.0-3build3) ... 144s Selecting previously unselected package libpython3.12-stdlib:s390x. 144s Preparing to unpack .../08-libpython3.12-stdlib_3.12.9-1_s390x.deb ... 144s Unpacking libpython3.12-stdlib:s390x (3.12.9-1) ... 144s Selecting previously unselected package python3.12. 144s Preparing to unpack .../09-python3.12_3.12.9-1_s390x.deb ... 144s Unpacking python3.12 (3.12.9-1) ... 144s Selecting previously unselected package liblbfgsb0:s390x. 144s Preparing to unpack .../10-liblbfgsb0_3.0+dfsg.4-1build1_s390x.deb ... 144s Unpacking liblbfgsb0:s390x (3.0+dfsg.4-1build1) ... 144s Selecting previously unselected package python3-all. 144s Preparing to unpack .../11-python3-all_3.13.1-1~exp2_s390x.deb ... 144s Unpacking python3-all (3.13.1-1~exp2) ... 144s Selecting previously unselected package python3-decorator. 144s Preparing to unpack .../12-python3-decorator_5.1.1-5_all.deb ... 144s Unpacking python3-decorator (5.1.1-5) ... 144s Selecting previously unselected package python3-six. 144s Preparing to unpack .../13-python3-six_1.17.0-1_all.deb ... 144s Unpacking python3-six (1.17.0-1) ... 144s Selecting previously unselected package python3-dtcwt. 144s Preparing to unpack .../14-python3-dtcwt_0.12.0-5ubuntu1_all.deb ... 144s Unpacking python3-dtcwt (0.12.0-5ubuntu1) ... 144s Selecting previously unselected package python3-iniconfig. 144s Preparing to unpack .../15-python3-iniconfig_1.1.1-2_all.deb ... 144s Unpacking python3-iniconfig (1.1.1-2) ... 144s Selecting previously unselected package python3-packaging. 144s Preparing to unpack .../16-python3-packaging_24.2-1_all.deb ... 144s Unpacking python3-packaging (24.2-1) ... 144s Selecting previously unselected package python3-pluggy. 144s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 144s Unpacking python3-pluggy (1.5.0-1) ... 144s Selecting previously unselected package python3-pytest. 144s Preparing to unpack .../18-python3-pytest_8.3.4-1_all.deb ... 144s Unpacking python3-pytest (8.3.4-1) ... 144s Selecting previously unselected package python3-scipy. 144s Preparing to unpack .../19-python3-scipy_1.14.1-4ubuntu1_s390x.deb ... 144s Unpacking python3-scipy (1.14.1-4ubuntu1) ... 144s Setting up python3-iniconfig (1.1.1-2) ... 144s Setting up libpython3.12-minimal:s390x (3.12.9-1) ... 144s Setting up python3-six (1.17.0-1) ... 145s Setting up python3-decorator (5.1.1-5) ... 145s Setting up libblas3:s390x (3.12.1-2) ... 145s update-alternatives: using /usr/lib/s390x-linux-gnu/blas/libblas.so.3 to provide /usr/lib/s390x-linux-gnu/libblas.so.3 (libblas.so.3-s390x-linux-gnu) in auto mode 145s Setting up python3-packaging (24.2-1) ... 145s Setting up python3-numpy-dev:s390x (1:2.2.3+ds-2) ... 145s Setting up libgfortran5:s390x (15-20250213-1ubuntu1) ... 145s Setting up python3-pluggy (1.5.0-1) ... 145s Setting up libnsl2:s390x (1.3.0-3build3) ... 145s Setting up python3.12-minimal (3.12.9-1) ... 146s Setting up liblapack3:s390x (3.12.1-2) ... 146s update-alternatives: using /usr/lib/s390x-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/s390x-linux-gnu/liblapack.so.3 (liblapack.so.3-s390x-linux-gnu) in auto mode 146s Setting up libpython3.12-stdlib:s390x (3.12.9-1) ... 146s Setting up python3-pytest (8.3.4-1) ... 146s Setting up python3.12 (3.12.9-1) ... 147s Setting up python3-all (3.13.1-1~exp2) ... 147s Setting up python3-numpy (1:2.2.3+ds-2) ... 151s Setting up liblbfgsb0:s390x (3.0+dfsg.4-1build1) ... 151s Setting up python3-dtcwt (0.12.0-5ubuntu1) ... 151s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 151s """Return a resampled version of *im* scaled to *shape*. 151s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 151s """ 151s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 151s """Return a resampled version of *im* scaled to *shape*. 151s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 151s """ 151s Setting up python3-scipy (1.14.1-4ubuntu1) ... 157s Processing triggers for systemd (257.2-3ubuntu1) ... 157s Processing triggers for man-db (2.13.0-1) ... 157s Processing triggers for libc-bin (2.40-4ubuntu1) ... 158s autopkgtest [00:11:00]: 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 158s autopkgtest [00:11:00]: test command1: [----------------------- 159s Testing with python3.12: 159s ============================= test session starts ============================== 159s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12 159s cachedir: .pytest_cache 159s rootdir: /tmp/autopkgtest.bxyhwq/autopkgtest_tmp 159s plugins: typeguard-4.4.1 159s collecting ... collected 339 items 159s 159s tests/test_againstmatlab.py::test_mandrill_loaded PASSED [ 0%] 160s tests/test_againstmatlab.py::test_coldfilt FAILED [ 0%] 160s tests/test_againstmatlab.py::test_dtwavexfm2 FAILED [ 0%] 160s tests/test_againstmatlab.py::test_dtwavexfm2b FAILED [ 1%] 160s tests/test_againstmatlab.py::test_rescale_highpass FAILED [ 1%] 160s tests/test_againstmatlab.py::test_transform3d_numpy FAILED [ 1%] 160s tests/test_coeffs.py::test_antonini PASSED [ 2%] 160s tests/test_coeffs.py::test_legall PASSED [ 2%] 160s tests/test_coeffs.py::test_near_sym_a PASSED [ 2%] 160s tests/test_coeffs.py::test_qshift_06 PASSED [ 2%] 160s tests/test_coeffs.py::test_qshift_a PASSED [ 3%] 160s tests/test_coeffs.py::test_qshift_b PASSED [ 3%] 160s tests/test_coeffs.py::test_qshift_c PASSED [ 3%] 160s tests/test_coeffs.py::test_qshift_d PASSED [ 4%] 160s tests/test_coeffs.py::test_non_exist_biort PASSED [ 4%] 160s tests/test_coeffs.py::test_non_exist_qshift PASSED [ 4%] 160s tests/test_coeffs.py::test_wrong_type_a PASSED [ 5%] 160s tests/test_coeffs.py::test_wrong_type_b PASSED [ 5%] 160s tests/test_coldfilt.py::test_mandrill_loaded FAILED [ 5%] 160s tests/test_coldfilt.py::test_odd_filter FAILED [ 5%] 160s tests/test_coldfilt.py::test_different_size FAILED [ 6%] 160s tests/test_coldfilt.py::test_bad_input_size FAILED [ 6%] 160s tests/test_coldfilt.py::test_good_input_size FAILED [ 6%] 160s tests/test_coldfilt.py::test_good_input_size_non_orthogonal FAILED [ 7%] 160s tests/test_coldfilt.py::test_output_size FAILED [ 7%] 160s tests/test_colfilter.py::test_mandrill_loaded FAILED [ 7%] 160s tests/test_colfilter.py::test_odd_size FAILED [ 7%] 160s tests/test_colfilter.py::test_even_size FAILED [ 8%] 160s tests/test_colfilter.py::test_qshift FAILED [ 8%] 160s tests/test_colfilter.py::test_biort FAILED [ 8%] 160s tests/test_colfilter.py::test_odd_size_non_array FAILED [ 9%] 160s tests/test_colfilter.py::test_even_size_non_array FAILED [ 9%] 160s tests/test_colifilt.py::test_mandrill_loaded FAILED [ 9%] 160s tests/test_colifilt.py::test_odd_filter FAILED [ 10%] 160s tests/test_colifilt.py::test_different_size_h FAILED [ 10%] 160s tests/test_colifilt.py::test_zero_input FAILED [ 10%] 160s tests/test_colifilt.py::test_bad_input_size FAILED [ 10%] 160s tests/test_colifilt.py::test_good_input_size FAILED [ 11%] 160s tests/test_colifilt.py::test_output_size FAILED [ 11%] 160s tests/test_colifilt.py::test_non_orthogonal_input FAILED [ 11%] 160s tests/test_colifilt.py::test_output_size_non_mult_4 FAILED [ 12%] 160s tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 FAILED [ 12%] 160s tests/test_ifm1.py::test_reconstruct FAILED [ 12%] 160s tests/test_ifm1.py::test_reconstruct_2d FAILED [ 12%] 160s tests/test_ifm1.py::test_float32_input FAILED [ 13%] 160s tests/test_ifm2.py::test_mandrill_loaded PASSED [ 13%] 160s tests/test_ifm2.py::test_reconstruct FAILED [ 13%] 160s tests/test_ifm2.py::test_reconstruct_crop FAILED [ 14%] 160s tests/test_ifm2.py::test_reconstruct_custom_filter FAILED [ 14%] 160s tests/test_ifm2.py::test_float32_input FAILED [ 14%] 160s tests/test_import.py::test PASSED [ 15%] 160s tests/test_openclcoldfilt.py::test_mandrill_loaded FAILED [ 15%] 160s tests/test_openclcoldfilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 15%] 160s tests/test_openclcoldfilt.py::test_different_size SKIPPED (OpenCL no...) [ 15%] 160s tests/test_openclcoldfilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 16%] 160s tests/test_openclcoldfilt.py::test_real_wavelet SKIPPED (OpenCL not ...) [ 16%] 160s tests/test_openclcoldfilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 16%] 160s tests/test_openclcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 17%] 160s tests/test_openclcoldfilt.py::test_output_size SKIPPED (OpenCL not p...) [ 17%] 160s tests/test_openclcoldfilt.py::test_qshift SKIPPED (OpenCL not present) [ 17%] 160s tests/test_openclcolfilter.py::test_mandrill_loaded FAILED [ 17%] 160s tests/test_openclcolfilter.py::test_odd_size SKIPPED (OpenCL not pre...) [ 18%] 160s tests/test_openclcolfilter.py::test_even_size SKIPPED (OpenCL not pr...) [ 18%] 160s tests/test_openclcolfilter.py::test_qshift SKIPPED (OpenCL not present) [ 18%] 160s tests/test_openclcolfilter.py::test_biort SKIPPED (OpenCL not present) [ 19%] 160s tests/test_openclcolfilter.py::test_odd_size_non_array SKIPPED (Open...) [ 19%] 160s tests/test_openclcolfilter.py::test_even_size_non_array SKIPPED (Ope...) [ 19%] 160s tests/test_openclcolifilt.py::test_mandrill_loaded FAILED [ 20%] 160s tests/test_openclcolifilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 20%] 160s tests/test_openclcolifilt.py::test_different_size_h SKIPPED (OpenCL ...) [ 20%] 160s tests/test_openclcolifilt.py::test_zero_input SKIPPED (OpenCL not pr...) [ 20%] 160s tests/test_openclcolifilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 21%] 160s tests/test_openclcolifilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 21%] 160s tests/test_openclcolifilt.py::test_output_size SKIPPED (OpenCL not p...) [ 21%] 160s tests/test_openclcolifilt.py::test_non_orthogonal_input SKIPPED (Ope...) [ 22%] 160s tests/test_openclcolifilt.py::test_output_size_non_mult_4 SKIPPED (O...) [ 22%] 160s tests/test_openclcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 22%] 160s tests/test_openclcolifilt.py::test_qshift SKIPPED (OpenCL not present) [ 23%] 160s tests/test_openclcolifilt.py::test_qshift_odd_len_input_2 SKIPPED (O...) [ 23%] 160s tests/test_openclcolifilt.py::test_qshift_even_input SKIPPED (OpenCL...) [ 23%] 160s tests/test_openclxfm2.py::test_mandrill_loaded FAILED [ 23%] 160s tests/test_openclxfm2.py::test_simple SKIPPED (OpenCL not present) [ 24%] 160s tests/test_openclxfm2.py::test_specific_wavelet SKIPPED (OpenCL not ...) [ 24%] 160s tests/test_openclxfm2.py::test_1d SKIPPED (OpenCL not present) [ 24%] 160s tests/test_openclxfm2.py::test_3d SKIPPED (OpenCL not present) [ 25%] 160s tests/test_openclxfm2.py::test_simple_w_scale SKIPPED (OpenCL not pr...) [ 25%] 160s tests/test_openclxfm2.py::test_odd_rows SKIPPED (OpenCL not present) [ 25%] 160s tests/test_openclxfm2.py::test_odd_cols SKIPPED (OpenCL not present) [ 25%] 160s tests/test_openclxfm2.py::test_odd_rows_and_cols SKIPPED (OpenCL not...) [ 26%] 160s tests/test_openclxfm2.py::test_0_levels SKIPPED (OpenCL not present) [ 26%] 160s tests/test_openclxfm2.py::test_modified SKIPPED (OpenCL not present) [ 26%] 160s tests/test_reflect.py::test_linear_ramp_boundaries PASSED [ 27%] 160s tests/test_reflect.py::test_linear_ramp_values PASSED [ 27%] 160s tests/test_reflect.py::test_non_array_input PASSED [ 27%] 160s tests/test_registration.py::test_frames_loaded FAILED [ 28%] 160s tests/test_registration.py::test_estimatereg FAILED [ 28%] 160s tests/test_sampling.py::test_rescale_lanczos PASSED [ 28%] 160s tests/test_sampling.py::test_rescale_bilinear PASSED [ 28%] 160s tests/test_sampling.py::test_rescale_nearest PASSED [ 29%] 160s tests/test_switchbackends.py::TestSwitchBackends::test_default_backend PASSED [ 29%] 160s tests/test_switchbackends.py::TestSwitchBackends::test_no_pop_default_backend PASSED [ 29%] 160s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_invalid PASSED [ 30%] 160s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_numpy PASSED [ 30%] 160s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_opencl SKIPPED [ 30%] 160s tests/test_switchbackends.py::test_backend_with_guard PASSED [ 30%] 160s tests/test_switchbackends.py::test_backend_with_guard_and_exception PASSED [ 31%] 160s tests/test_tfTransform1d.py::test_simple SKIPPED (Tensorflow not pre...) [ 31%] 160s tests/test_tfTransform1d.py::test_simple_with_no_levels SKIPPED (Ten...) [ 31%] 160s tests/test_tfTransform1d.py::test_simple_with_scale SKIPPED (Tensorf...) [ 32%] 160s tests/test_tfTransform1d.py::test_simple_with_scale_and_no_levels SKIPPED [ 32%] 160s tests/test_tfTransform1d.py::test_perfect_recon SKIPPED (Tensorflow ...) [ 32%] 160s tests/test_tfTransform1d.py::test_simple_custom_filter SKIPPED (Tens...) [ 33%] 160s tests/test_tfTransform1d.py::test_single_level SKIPPED (Tensorflow n...) [ 33%] 160s tests/test_tfTransform1d.py::test_non_multiple_of_two SKIPPED (Tenso...) [ 33%] 160s tests/test_tfTransform1d.py::test_2d SKIPPED (Tensorflow not present) [ 33%] 160s tests/test_tfTransform1d.py::test_integer_input SKIPPED (Tensorflow ...) [ 34%] 160s tests/test_tfTransform1d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 34%] 160s tests/test_tfTransform1d.py::test_float32_input SKIPPED (Tensorflow ...) [ 34%] 160s tests/test_tfTransform1d.py::test_reconstruct SKIPPED (Tensorflow no...) [ 35%] 160s tests/test_tfTransform1d.py::test_reconstruct_2d SKIPPED (Tensorflow...) [ 35%] 160s tests/test_tfTransform1d.py::test_float32_input_inv SKIPPED (Tensorf...) [ 35%] 160s tests/test_tfTransform1d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 35%] 160s tests/test_tfTransform1d.py::test_numpy_in_batch SKIPPED (Tensorflow...) [ 36%] 160s tests/test_tfTransform1d.py::test_1d_input SKIPPED (Tensorflow not p...) [ 36%] 160s tests/test_tfTransform1d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 36%] 160s tests/test_tfTransform1d.py::test_3d_input SKIPPED (Tensorflow not p...) [ 37%] 160s tests/test_tfTransform1d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 37%] 160s tests/test_tfTransform1d.py::test_return_type SKIPPED (Tensorflow no...) [ 37%] 160s tests/test_tfTransform1d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 38%] 160s tests/test_tfTransform1d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 38%] 160s tests/test_tfTransform1d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 38%] 160s tests/test_tfTransform1d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 38%] 160s tests/test_tfTransform1d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 39%] 160s tests/test_tfTransform1d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 39%] 160s tests/test_tfTransform1d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 39%] 160s tests/test_tfTransform1d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 40%] 160s tests/test_tfTransform1d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 40%] 160s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 40%] 160s tests/test_tfTransform1d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 41%] 160s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 41%] 160s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 41%] 160s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 41%] 160s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 42%] 160s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 42%] 160s tests/test_tfTransform2d.py::test_mandrill_loaded SKIPPED (Tensorflo...) [ 42%] 160s tests/test_tfTransform2d.py::test_simple SKIPPED (Tensorflow not pre...) [ 43%] 160s tests/test_tfTransform2d.py::test_specific_wavelet SKIPPED (Tensorfl...) [ 43%] 160s tests/test_tfTransform2d.py::test_1d SKIPPED (Tensorflow not present) [ 43%] 160s tests/test_tfTransform2d.py::test_3d SKIPPED (Tensorflow not present) [ 43%] 160s tests/test_tfTransform2d.py::test_simple_w_scale SKIPPED (Tensorflow...) [ 44%] 160s tests/test_tfTransform2d.py::test_odd_rows SKIPPED (Tensorflow not p...) [ 44%] 160s tests/test_tfTransform2d.py::test_odd_rows_w_scale SKIPPED (Tensorfl...) [ 44%] 160s tests/test_tfTransform2d.py::test_odd_cols SKIPPED (Tensorflow not p...) [ 45%] 160s tests/test_tfTransform2d.py::test_odd_cols_w_scale SKIPPED (Tensorfl...) [ 45%] 160s tests/test_tfTransform2d.py::test_odd_rows_and_cols SKIPPED (Tensorf...) [ 45%] 160s tests/test_tfTransform2d.py::test_odd_rows_and_cols_w_scale SKIPPED [ 46%] 160s tests/test_tfTransform2d.py::test_rot_symm_modified SKIPPED (Tensorf...) [ 46%] 160s tests/test_tfTransform2d.py::test_0_levels SKIPPED (Tensorflow not p...) [ 46%] 160s tests/test_tfTransform2d.py::test_0_levels_w_scale SKIPPED (Tensorfl...) [ 46%] 160s tests/test_tfTransform2d.py::test_integer_input SKIPPED (Tensorflow ...) [ 47%] 160s tests/test_tfTransform2d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 47%] 160s tests/test_tfTransform2d.py::test_mandrill_perfect_recon SKIPPED (Te...) [ 47%] 160s tests/test_tfTransform2d.py::test_float32_input SKIPPED (Tensorflow ...) [ 48%] 160s tests/test_tfTransform2d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 48%] 160s tests/test_tfTransform2d.py::test_numpy_in_batch[nhw] SKIPPED (Tenso...) [ 48%] 160s tests/test_tfTransform2d.py::test_numpy_in_batch[chw] SKIPPED (Tenso...) [ 48%] 160s tests/test_tfTransform2d.py::test_numpy_in_batch[hwn] SKIPPED (Tenso...) [ 49%] 160s tests/test_tfTransform2d.py::test_numpy_in_batch[hwc] SKIPPED (Tenso...) [ 49%] 160s tests/test_tfTransform2d.py::test_numpy_batch_ch[nhwc] SKIPPED (Tens...) [ 49%] 160s tests/test_tfTransform2d.py::test_numpy_batch_ch[nchw] SKIPPED (Tens...) [ 50%] 160s tests/test_tfTransform2d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 50%] 160s tests/test_tfTransform2d.py::test_3d_input[nhw] SKIPPED (Tensorflow ...) [ 50%] 160s tests/test_tfTransform2d.py::test_3d_input[hwn] SKIPPED (Tensorflow ...) [ 51%] 160s tests/test_tfTransform2d.py::test_4d_input[nhwc] SKIPPED (Tensorflow...) [ 51%] 160s tests/test_tfTransform2d.py::test_4d_input[nchw] SKIPPED (Tensorflow...) [ 51%] 160s tests/test_tfTransform2d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 51%] 160s tests/test_tfTransform2d.py::test_3d_input_ph SKIPPED (Tensorflow no...) [ 52%] 160s tests/test_tfTransform2d.py::test_4d_input_ph SKIPPED (Tensorflow no...) [ 52%] 160s tests/test_tfTransform2d.py::test_return_type SKIPPED (Tensorflow no...) [ 52%] 160s tests/test_tfTransform2d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 53%] 160s tests/test_tfTransform2d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 53%] 160s tests/test_tfTransform2d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 53%] 160s tests/test_tfTransform2d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 53%] 160s tests/test_tfTransform2d.py::test_results_match[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 54%] 160s tests/test_tfTransform2d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 54%] 160s tests/test_tfTransform2d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 54%] 160s tests/test_tfTransform2d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 55%] 160s tests/test_tfTransform2d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 55%] 160s tests/test_tfTransform2d.py::test_results_match_inverse[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 55%] 160s tests/test_tfTransform2d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 56%] 160s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 56%] 160s tests/test_tfTransform2d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 56%] 160s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 56%] 160s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b_bp-qshift_b_bp-gain_mask4] SKIPPED [ 57%] 160s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 57%] 160s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 57%] 160s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 58%] 160s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 58%] 160s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 58%] 160s tests/test_tfTransform2d.py::test_forward_channels[nhwc] SKIPPED (Te...) [ 58%] 160s tests/test_tfTransform2d.py::test_forward_channels[nchw] SKIPPED (Te...) [ 59%] 160s tests/test_tfTransform2d.py::test_inverse_channels[nhwc] SKIPPED (Te...) [ 59%] 160s tests/test_tfTransform2d.py::test_inverse_channels[nchw] SKIPPED (Te...) [ 59%] 160s tests/test_tfcoldfilt.py::test_setup SKIPPED (Tensorflow not present) [ 60%] 160s tests/test_tfcoldfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 60%] 160s tests/test_tfcoldfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 60%] 160s tests/test_tfcoldfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 61%] 160s tests/test_tfcoldfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 61%] 160s tests/test_tfcoldfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 61%] 160s tests/test_tfcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 61%] 160s tests/test_tfcoldfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 62%] 160s tests/test_tfcoldfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 62%] 160s tests/test_tfcoldfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 62%] 160s tests/test_tfcoldfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 63%] 160s tests/test_tfcolfilter.py::test_setup SKIPPED (Tensorflow not present) [ 63%] 160s tests/test_tfcolfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 63%] 160s tests/test_tfcolfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 64%] 160s tests/test_tfcolfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 64%] 160s tests/test_tfcolfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 64%] 160s tests/test_tfcolfilter.py::test_biort SKIPPED (Tensorflow not present) [ 64%] 160s tests/test_tfcolfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 65%] 160s tests/test_tfcolfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 65%] 160s tests/test_tfcolfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 65%] 160s tests/test_tfcolfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 66%] 160s tests/test_tfcolfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 66%] 160s tests/test_tfcolfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 66%] 160s tests/test_tfcolifilt.py::test_setup SKIPPED (Tensorflow not present) [ 66%] 160s tests/test_tfcolifilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 67%] 160s tests/test_tfcolifilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 67%] 160s tests/test_tfcolifilt.py::test_different_size_h SKIPPED (Tensorflow ...) [ 67%] 160s tests/test_tfcolifilt.py::test_zero_input SKIPPED (Tensorflow not pr...) [ 68%] 160s tests/test_tfcolifilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 68%] 160s tests/test_tfcolifilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 68%] 160s tests/test_tfcolifilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 69%] 160s tests/test_tfcolifilt.py::test_non_orthogonal_input SKIPPED (Tensorf...) [ 69%] 160s tests/test_tfcolifilt.py::test_output_size_non_mult_4 SKIPPED (Tenso...) [ 69%] 160s tests/test_tfcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 69%] 160s tests/test_tfcolifilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 70%] 160s tests/test_tfcolifilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 70%] 160s tests/test_tfcolifilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 70%] 160s tests/test_tfinputshapes.py::test_scales[2-False] SKIPPED (Tensorflo...) [ 71%] 160s tests/test_tfinputshapes.py::test_scales[2-True] SKIPPED (Tensorflow...) [ 71%] 160s tests/test_tfinputshapes.py::test_scales[4-False] SKIPPED (Tensorflo...) [ 71%] 160s tests/test_tfinputshapes.py::test_scales[3-True] SKIPPED (Tensorflow...) [ 71%] 160s tests/test_tfinputshapes.py::test_2d_input_tuple[2-False] SKIPPED (T...) [ 72%] 160s tests/test_tfinputshapes.py::test_2d_input_tuple[2-True] SKIPPED (Te...) [ 72%] 160s tests/test_tfinputshapes.py::test_2d_input_tuple[4-False] SKIPPED (T...) [ 72%] 160s tests/test_tfinputshapes.py::test_2d_input_tuple[3-True] SKIPPED (Te...) [ 73%] 160s tests/test_tfinputshapes.py::test_batch_input[2-False-None] SKIPPED [ 73%] 160s tests/test_tfinputshapes.py::test_batch_input[2-True-10] SKIPPED (Te...) [ 73%] 160s tests/test_tfinputshapes.py::test_batch_input[4-False-None] SKIPPED [ 74%] 160s tests/test_tfinputshapes.py::test_batch_input[3-True-2] SKIPPED (Ten...) [ 74%] 160s tests/test_tfinputshapes.py::test_batch_input_tuple[2-False-None] SKIPPED [ 74%] 160s tests/test_tfinputshapes.py::test_batch_input_tuple[2-True-10] SKIPPED [ 74%] 160s tests/test_tfinputshapes.py::test_batch_input_tuple[4-False-None] SKIPPED [ 75%] 160s tests/test_tfinputshapes.py::test_batch_input_tuple[3-True-2] SKIPPED [ 75%] 160s tests/test_tfinputshapes.py::test_multichannel[2-5] SKIPPED (Tensorf...) [ 75%] 160s tests/test_tfinputshapes.py::test_multichannel[2-2] SKIPPED (Tensorf...) [ 76%] 160s tests/test_tfinputshapes.py::test_multichannel[4-10] SKIPPED (Tensor...) [ 76%] 160s tests/test_tfinputshapes.py::test_multichannel[3-6] SKIPPED (Tensorf...) [ 76%] 160s tests/test_tfrowdfilt.py::test_setup SKIPPED (Tensorflow not present) [ 76%] 160s tests/test_tfrowdfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 77%] 160s tests/test_tfrowdfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 77%] 160s tests/test_tfrowdfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 77%] 160s tests/test_tfrowdfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 78%] 160s tests/test_tfrowdfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 78%] 160s tests/test_tfrowdfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 78%] 160s tests/test_tfrowdfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 79%] 160s tests/test_tfrowdfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 79%] 160s tests/test_tfrowdfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 79%] 160s tests/test_tfrowdfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 79%] 160s tests/test_tfrowfilter.py::test_setup SKIPPED (Tensorflow not present) [ 80%] 160s tests/test_tfrowfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 80%] 160s tests/test_tfrowfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 80%] 160s tests/test_tfrowfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 81%] 160s tests/test_tfrowfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 81%] 160s tests/test_tfrowfilter.py::test_biort SKIPPED (Tensorflow not present) [ 81%] 160s tests/test_tfrowfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 82%] 160s tests/test_tfrowfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 82%] 160s tests/test_tfrowfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 82%] 160s tests/test_tfrowfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 82%] 160s tests/test_tfrowfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 83%] 160s tests/test_tfrowfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 83%] 160s tests/test_utils.py::test_complex_type_for_complex FAILED [ 83%] 160s tests/test_utils.py::test_complex_type_for_float FAILED [ 84%] 160s tests/test_utils.py::test_draw_circ PASSED [ 84%] 160s tests/test_utils.py::test_draw_edge PASSED [ 84%] 160s tests/test_utils.py::test_stacked_2d_matrix_vector_product PASSED [ 84%] 160s tests/test_utils.py::test_stacked_2d_vector_matrix_product PASSED [ 85%] 161s tests/test_utils.py::test_stacked_2d_matrix_matrix_product PASSED [ 85%] 161s tests/test_xfm1.py::test_simple FAILED [ 85%] 161s tests/test_xfm1.py::test_simple_with_no_levels FAILED [ 86%] 161s tests/test_xfm1.py::test_simple_with_scale FAILED [ 86%] 161s tests/test_xfm1.py::test_simple_with_scale_and_no_levels FAILED [ 86%] 161s tests/test_xfm1.py::test_perfect_recon FAILED [ 87%] 161s tests/test_xfm1.py::test_simple_custom_filter FAILED [ 87%] 161s tests/test_xfm1.py::test_single_level FAILED [ 87%] 161s tests/test_xfm1.py::test_non_multiple_of_two FAILED [ 87%] 161s tests/test_xfm1.py::test_2d FAILED [ 88%] 161s tests/test_xfm1.py::test_integer_input FAILED [ 88%] 161s tests/test_xfm1.py::test_integer_perfect_recon FAILED [ 88%] 161s tests/test_xfm1.py::test_float32_input FAILED [ 89%] 161s tests/test_xfm2.py::test_mandrill_loaded FAILED [ 89%] 161s tests/test_xfm2.py::test_simple FAILED [ 89%] 161s tests/test_xfm2.py::test_specific_wavelet FAILED [ 89%] 161s tests/test_xfm2.py::test_1d FAILED [ 90%] 161s tests/test_xfm2.py::test_3d FAILED [ 90%] 161s tests/test_xfm2.py::test_simple_w_scale FAILED [ 90%] 161s tests/test_xfm2.py::test_odd_rows FAILED [ 91%] 161s tests/test_xfm2.py::test_odd_rows_w_scale FAILED [ 91%] 161s tests/test_xfm2.py::test_odd_cols FAILED [ 91%] 161s tests/test_xfm2.py::test_odd_cols_w_scale FAILED [ 92%] 161s tests/test_xfm2.py::test_odd_rows_and_cols FAILED [ 92%] 161s tests/test_xfm2.py::test_odd_rows_and_cols_w_scale FAILED [ 92%] 161s tests/test_xfm2.py::test_rot_symm_modified FAILED [ 92%] 161s tests/test_xfm2.py::test_0_levels FAILED [ 93%] 161s tests/test_xfm2.py::test_0_levels_w_scale FAILED [ 93%] 161s tests/test_xfm2.py::test_integer_input FAILED [ 93%] 161s tests/test_xfm2.py::test_integer_perfect_recon FAILED [ 94%] 161s tests/test_xfm2.py::test_float32_input FAILED [ 94%] 161s tests/test_xfm3.py::test_ellipsoid PASSED [ 94%] 161s tests/test_xfm3.py::test_simple_level_1_xfm FAILED [ 94%] 161s tests/test_xfm3.py::test_simple_level_1_recon FAILED [ 95%] 161s tests/test_xfm3.py::test_simple_level_1_recon_haar FAILED [ 95%] 161s tests/test_xfm3.py::test_simple_level_2_xfm FAILED [ 95%] 161s tests/test_xfm3.py::test_simple_level_2_recon FAILED [ 96%] 161s tests/test_xfm3.py::test_simple_level_4_xfm FAILED [ 96%] 161s tests/test_xfm3.py::test_simple_level_4_recon FAILED [ 96%] 161s tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets FAILED [ 97%] 161s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 FAILED [ 97%] 161s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 FAILED [ 97%] 161s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 FAILED [ 97%] 161s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 FAILED [ 98%] 161s tests/test_xfm3.py::test_integer_input FAILED [ 98%] 161s tests/test_xfm3.py::test_integer_perfect_recon FAILED [ 98%] 161s tests/test_xfm3.py::test_float32_input FAILED [ 99%] 161s tests/test_xfm3.py::test_float32_recon FAILED [ 99%] 161s tests/test_xfm3.py::test_level_4_recon_discarding_level_1 FAILED [ 99%] 161s tests/test_xfm3.py::test_level_4_discarding_level_1 FAILED [100%] 161s 161s =================================== FAILURES =================================== 161s ________________________________ test_coldfilt _________________________________ 161s 161s def test_coldfilt(): 161s h0o, g0o, h1o, g1o = biort('near_sym_b') 161s h0a, h0b, g0a, g0b, h1a, h1b, g1a, g1b = qshift('qshift_d') 161s > A = colifilt(mandrill, g0b, g0a) 161s 161s tests/test_againstmatlab.py:81: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _______________________________ test_dtwavexfm2 ________________________________ 161s 161s def test_dtwavexfm2(): 161s > Yl, Yh, Yscale = dtwavexfm2(mandrill, 4, 'near_sym_a', 'qshift_a', include_scale=True) 161s 161s tests/test_againstmatlab.py:85: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 161s res = trans.forward(X, nlevels, include_scale) 161s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 161s X = np.atleast_2d(asfarray(X)) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _______________________________ test_dtwavexfm2b _______________________________ 161s 161s def test_dtwavexfm2b(): 161s > Yl, Yh, Yscale = dtwavexfm2b(mandrill, 4, 'near_sym_b_bp', 'qshift_b_bp', include_scale=True) 161s 161s tests/test_againstmatlab.py:95: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 161s res = trans.forward(X, nlevels, include_scale) 161s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 161s X = np.atleast_2d(asfarray(X)) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ____________________________ test_rescale_highpass _____________________________ 161s 161s def test_rescale_highpass(): 161s # N.B we can only test bilinear rescaling since cpxinterb2b doesn't support Lanczos 161s > Yl, Yh = dtwavexfm2b(mandrill, 3, 'near_sym_a', 'qshift_a') 161s 161s tests/test_againstmatlab.py:106: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 161s res = trans.forward(X, nlevels, include_scale) 161s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 161s X = np.atleast_2d(asfarray(X)) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ____________________________ test_transform3d_numpy ____________________________ 161s 161s def test_transform3d_numpy(): 161s transform = Transform3d(biort='near_sym_b',qshift='qshift_b') 161s > td_signal = transform.forward(qbgn, nlevels=3, include_scale=True, discard_level_1=False) 161s 161s tests/test_againstmatlab.py:117: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 161s X = np.atleast_3d(asfarray(X)) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_mandrill_loaded _____________________________ 161s 161s def test_mandrill_loaded(): 161s assert mandrill.shape == (512, 512) 161s assert mandrill.min() >= 0 161s assert mandrill.max() <= 1 161s > assert mandrill.dtype == np.float32 161s E AssertionError: assert dtype(' 161s E + where dtype(' = np.float32 161s 161s tests/test_coldfilt.py:18: AssertionError 161s _______________________________ test_odd_filter ________________________________ 161s 161s def test_odd_filter(): 161s with raises(ValueError): 161s > coldfilt(mandrill, (-1,2,-1), (-1,2,1)) 161s 161s tests/test_coldfilt.py:22: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_different_size ______________________________ 161s 161s def test_different_size(): 161s with raises(ValueError): 161s > coldfilt(mandrill, (-0.5,-1,2,1,0.5), (-1,2,-1)) 161s 161s tests/test_coldfilt.py:26: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_bad_input_size ______________________________ 161s 161s def test_bad_input_size(): 161s with raises(ValueError): 161s > coldfilt(mandrill[:511,:], (-1,1), (1,-1)) 161s 161s tests/test_coldfilt.py:30: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_good_input_size _____________________________ 161s 161s def test_good_input_size(): 161s > coldfilt(mandrill[:,:511], (-1,1), (1,-1)) 161s 161s tests/test_coldfilt.py:33: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________ test_good_input_size_non_orthogonal ______________________ 161s 161s def test_good_input_size_non_orthogonal(): 161s > coldfilt(mandrill[:,:511], (1,1), (1,1)) 161s 161s tests/test_coldfilt.py:36: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _______________________________ test_output_size _______________________________ 161s 161s def test_output_size(): 161s > Y = coldfilt(mandrill, (-1,1), (1,-1)) 161s 161s tests/test_coldfilt.py:39: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_mandrill_loaded _____________________________ 161s 161s def test_mandrill_loaded(): 161s assert mandrill.shape == (512, 512) 161s assert mandrill.min() >= 0 161s assert mandrill.max() <= 1 161s > assert mandrill.dtype == np.float32 161s E AssertionError: assert dtype(' 161s E + where dtype(' = np.float32 161s 161s tests/test_colfilter.py:17: AssertionError 161s ________________________________ test_odd_size _________________________________ 161s 161s def test_odd_size(): 161s > y = colfilter(mandrill, (-1,2,-1)) 161s 161s tests/test_colfilter.py:28: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ________________________________ test_even_size ________________________________ 161s 161s def test_even_size(): 161s > y = colfilter(np.zeros_like(mandrill), (-1,1)) 161s 161s tests/test_colfilter.py:40: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _________________________________ test_qshift __________________________________ 161s 161s def test_qshift(): 161s > y = colfilter(mandrill, qshift('qshift_a')[0]) 161s 161s tests/test_colfilter.py:32: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s __________________________________ test_biort __________________________________ 161s 161s def test_biort(): 161s > y = colfilter(mandrill, biort('antonini')[0]) 161s 161s tests/test_colfilter.py:36: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ___________________________ test_odd_size_non_array ____________________________ 161s 161s def test_odd_size_non_array(): 161s > y = colfilter(mandrill.tolist(), (-1,2,-1)) 161s 161s tests/test_colfilter.py:45: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ___________________________ test_even_size_non_array ___________________________ 161s 161s def test_even_size_non_array(): 161s > y = colfilter(mandrill.tolist(), (-1,1)) 161s 161s tests/test_colfilter.py:49: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_mandrill_loaded _____________________________ 161s 161s def test_mandrill_loaded(): 161s assert mandrill.shape == (512, 512) 161s assert mandrill.min() >= 0 161s assert mandrill.max() <= 1 161s > assert mandrill.dtype == np.float32 161s E AssertionError: assert dtype(' 161s E + where dtype(' = np.float32 161s 161s tests/test_colifilt.py:18: AssertionError 161s _______________________________ test_odd_filter ________________________________ 161s 161s def test_odd_filter(): 161s with raises(ValueError): 161s > colifilt(mandrill, (-1,2,-1), (-1,2,1)) 161s 161s tests/test_colifilt.py:22: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s ____________________________ test_different_size_h _____________________________ 161s 161s def test_different_size_h(): 161s with raises(ValueError): 161s > colifilt(mandrill, (-1,2,1), (-0.5,-1,2,-1,0.5)) 161s 161s tests/test_colifilt.py:26: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _______________________________ test_zero_input ________________________________ 161s 161s def test_zero_input(): 161s > Y = colifilt(np.zeros_like(mandrill), (-1,1), (1,-1)) 161s 161s tests/test_colifilt.py:29: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_bad_input_size ______________________________ 161s 161s def test_bad_input_size(): 161s with raises(ValueError): 161s > colifilt(mandrill[:511,:], (-1,1), (1,-1)) 161s 161s tests/test_colifilt.py:34: 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 161s X = asfarray(X) 161s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 161s return np.asfarray(X, dtype=X.dtype) 161s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 161s 161s attr = 'asfarray' 161s 161s def __getattr__(attr): 161s # Warn for expired attributes 161s import warnings 161s 161s if attr == "linalg": 161s import numpy.linalg as linalg 161s return linalg 161s elif attr == "fft": 161s import numpy.fft as fft 161s return fft 161s elif attr == "dtypes": 161s import numpy.dtypes as dtypes 161s return dtypes 161s elif attr == "random": 161s import numpy.random as random 161s return random 161s elif attr == "polynomial": 161s import numpy.polynomial as polynomial 161s return polynomial 161s elif attr == "ma": 161s import numpy.ma as ma 161s return ma 161s elif attr == "ctypeslib": 161s import numpy.ctypeslib as ctypeslib 161s return ctypeslib 161s elif attr == "exceptions": 161s import numpy.exceptions as exceptions 161s return exceptions 161s elif attr == "testing": 161s import numpy.testing as testing 161s return testing 161s elif attr == "matlib": 161s import numpy.matlib as matlib 161s return matlib 161s elif attr == "f2py": 161s import numpy.f2py as f2py 161s return f2py 161s elif attr == "typing": 161s import numpy.typing as typing 161s return typing 161s elif attr == "rec": 161s import numpy.rec as rec 161s return rec 161s elif attr == "char": 161s import numpy.char as char 161s return char 161s elif attr == "array_api": 161s raise AttributeError("`numpy.array_api` is not available from " 161s "numpy 2.0 onwards", name=None) 161s elif attr == "core": 161s import numpy.core as core 161s return core 161s elif attr == "strings": 161s import numpy.strings as strings 161s return strings 161s elif attr == "distutils": 161s if 'distutils' in __numpy_submodules__: 161s import numpy.distutils as distutils 161s return distutils 161s else: 161s raise AttributeError("`numpy.distutils` is not available from " 161s "Python 3.12 onwards", name=None) 161s 161s if attr in __future_scalars__: 161s # And future warnings for those that will change, but also give 161s # the AttributeError 161s warnings.warn( 161s f"In the future `np.{attr}` will be defined as the " 161s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 161s 161s if attr in __former_attrs__: 161s raise AttributeError(__former_attrs__[attr], name=None) 161s 161s if attr in __expired_attributes__: 161s > raise AttributeError( 161s f"`np.{attr}` was removed in the NumPy 2.0 release. " 161s f"{__expired_attributes__[attr]}", 161s name=None 161s ) 161s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 161s 161s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 161s _____________________________ test_good_input_size _____________________________ 161s 161s def test_good_input_size(): 161s > colifilt(mandrill[:,:511], (-1,1), (1,-1)) 161s 162s tests/test_colifilt.py:37: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _______________________________ test_output_size _______________________________ 162s 162s def test_output_size(): 162s > Y = colifilt(mandrill, (-1,1), (1,-1)) 162s 162s tests/test_colifilt.py:40: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_non_orthogonal_input ___________________________ 162s 162s def test_non_orthogonal_input(): 162s > Y = colifilt(mandrill, (1,1), (1,1)) 162s 162s tests/test_colifilt.py:44: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _________________________ test_output_size_non_mult_4 __________________________ 162s 162s def test_output_size_non_mult_4(): 162s > Y = colifilt(mandrill, (-1,0,0,1), (1,0,0,-1)) 162s 162s tests/test_colifilt.py:48: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________ test_non_orthogonal_input_non_mult_4 _____________________ 162s 162s def test_non_orthogonal_input_non_mult_4(): 162s > Y = colifilt(mandrill, (1,0,0,1), (1,0,0,1)) 162s 162s tests/test_colifilt.py:52: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _______________________________ test_reconstruct _______________________________ 162s 162s def test_reconstruct(): 162s # Reconstruction up to tolerance 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec) 162s 162s tests/test_ifm1.py:12: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________________ test_reconstruct_2d ______________________________ 162s 162s def test_reconstruct_2d(): 162s # Reconstruction up to tolerance 162s vec = np.random.rand(630, 20) 162s > Yl, Yh = dtwavexfm(vec) 162s 162s tests/test_ifm1.py:19: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_input ______________________________ 162s 162s def test_float32_input(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm(np.array([1, 2, 3, 4]).astype(np.float32)) 162s 162s tests/test_ifm1.py:25: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _______________________________ test_reconstruct _______________________________ 162s 162s def test_reconstruct(): 162s # Reconstruction up to tolerance 162s > Yl, Yh = dtwavexfm2(mandrill) 162s 162s tests/test_ifm2.py:23: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_reconstruct_crop _____________________________ 162s 162s def test_reconstruct_crop(): 162s # Reconstruction up to tolerance 162s > Yl_crop, Yh_crop = dtwavexfm2(mandrill_crop) 162s 162s tests/test_ifm2.py:29: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________ test_reconstruct_custom_filter ________________________ 162s 162s def test_reconstruct_custom_filter(): 162s # Reconstruction up to tolerance 162s > Yl, Yh = dtwavexfm2(mandrill, 4, biort('legall'), qshift('qshift_06')) 162s 162s tests/test_ifm2.py:35: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_input ______________________________ 162s 162s def test_float32_input(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 162s 162s tests/test_ifm2.py:41: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________________ test_mandrill_loaded _____________________________ 162s 162s def test_mandrill_loaded(): 162s assert mandrill.shape == (512, 512) 162s assert mandrill.min() >= 0 162s assert mandrill.max() <= 1 162s > assert mandrill.dtype == np.float32 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float32 162s 162s tests/test_openclcoldfilt.py:21: AssertionError 162s _____________________________ test_mandrill_loaded _____________________________ 162s 162s def test_mandrill_loaded(): 162s assert mandrill.shape == (512, 512) 162s assert mandrill.min() >= 0 162s assert mandrill.max() <= 1 162s > assert mandrill.dtype == np.float32 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float32 162s 162s tests/test_openclcolfilter.py:19: AssertionError 162s _____________________________ test_mandrill_loaded _____________________________ 162s 162s def test_mandrill_loaded(): 162s assert mandrill.shape == (512, 512) 162s assert mandrill.min() >= 0 162s assert mandrill.max() <= 1 162s > assert mandrill.dtype == np.float32 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float32 162s 162s tests/test_openclcolifilt.py:21: AssertionError 162s _____________________________ test_mandrill_loaded _____________________________ 162s 162s def test_mandrill_loaded(): 162s assert mandrill.shape == (512, 512) 162s assert mandrill.min() >= 0 162s assert mandrill.max() <= 1 162s > assert mandrill.dtype == np.float32 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float32 162s 162s tests/test_openclxfm2.py:23: AssertionError 162s ______________________________ test_frames_loaded ______________________________ 162s 162s def test_frames_loaded(): 162s assert f1.shape == (576, 768) 162s assert f1.min() >= 0 162s assert f1.max() <= 1 162s > assert f1.dtype == np.float64 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float64 162s 162s tests/test_registration.py:19: AssertionError 162s _______________________________ test_estimatereg _______________________________ 162s 162s def test_estimatereg(): 162s nlevels = 6 162s trans = Transform2d() 162s > t1 = trans.forward(f1, nlevels=nlevels) 162s 162s tests/test_registration.py:29: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________ test_complex_type_for_complex _________________________ 162s 162s def test_complex_type_for_complex(): 162s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.complex64)), np.complex64) 162s 162s tests/test_utils.py:8: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'issubsctype' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _________________________ test_complex_type_for_float __________________________ 162s 162s def test_complex_type_for_float(): 162s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.float32)), np.complex64) 162s 162s tests/test_utils.py:12: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'issubsctype' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _________________________________ test_simple __________________________________ 162s 162s def test_simple(): 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec, 3) 162s 162s tests/test_xfm1.py:12: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_simple_with_no_levels __________________________ 162s 162s def test_simple_with_no_levels(): 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec, 0) 162s 162s tests/test_xfm1.py:17: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_simple_with_scale ____________________________ 162s 162s def test_simple_with_scale(): 162s vec = np.random.rand(630) 162s > Yl, Yh, Yscale = dtwavexfm(vec, 3, include_scale=True) 162s 162s tests/test_xfm1.py:22: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________ test_simple_with_scale_and_no_levels _____________________ 162s 162s def test_simple_with_scale_and_no_levels(): 162s vec = np.random.rand(630) 162s > Yl, Yh, Yscale = dtwavexfm(vec, 0, include_scale=True) 162s 162s tests/test_xfm1.py:28: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_perfect_recon ______________________________ 162s 162s def test_perfect_recon(): 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec) 162s 162s tests/test_xfm1.py:34: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_simple_custom_filter ___________________________ 162s 162s def test_simple_custom_filter(): 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec, 4, biort('legall'), qshift('qshift_06')) 162s 162s tests/test_xfm1.py:40: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_single_level _______________________________ 162s 162s def test_single_level(): 162s vec = np.random.rand(630) 162s > Yl, Yh = dtwavexfm(vec, 1) 162s 162s tests/test_xfm1.py:46: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________ test_non_multiple_of_two ___________________________ 162s 162s def test_non_multiple_of_two(): 162s vec = np.random.rand(631) 162s with raises(ValueError): 162s > Yl, Yh = dtwavexfm(vec, 1) 162s 162s tests/test_xfm1.py:51: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________________ test_2d ____________________________________ 162s 162s def test_2d(): 162s > Yl, Yh = dtwavexfm(np.random.rand(10,10)) 162s 162s tests/test_xfm1.py:54: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_integer_input ______________________________ 162s 162s def test_integer_input(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array 162s > Yl, Yh = dtwavexfm([1,2,3,4]) 162s 162s tests/test_xfm1.py:59: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_integer_perfect_recon __________________________ 162s 162s def test_integer_perfect_recon(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array and reconstructed 162s A = np.array([1,2,3,4], dtype=np.int32) 162s > Yl, Yh = dtwavexfm(A) 162s 162s tests/test_xfm1.py:66: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_input ______________________________ 162s 162s def test_float32_input(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm(np.array([1,2,3,4]).astype(np.float32)) 162s 162s tests/test_xfm1.py:72: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 162s X = asfarray(X) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________________ test_mandrill_loaded _____________________________ 162s 162s def test_mandrill_loaded(): 162s assert mandrill.shape == (512, 512) 162s assert mandrill.min() >= 0 162s assert mandrill.max() <= 1 162s > assert mandrill.dtype == np.float32 162s E AssertionError: assert dtype(' 162s E + where dtype(' = np.float32 162s 162s tests/test_xfm2.py:19: AssertionError 162s _________________________________ test_simple __________________________________ 162s 162s def test_simple(): 162s > Yl, Yh = dtwavexfm2(mandrill) 162s 162s tests/test_xfm2.py:22: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_specific_wavelet _____________________________ 162s 162s def test_specific_wavelet(): 162s > Yl, Yh = dtwavexfm2(mandrill, biort=biort('antonini'), qshift=qshift('qshift_06')) 162s 162s tests/test_xfm2.py:25: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________________ test_1d ____________________________________ 162s 162s def test_1d(): 162s > Yl, Yh = dtwavexfm2(mandrill[0,:]) 162s 162s tests/test_xfm2.py:28: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________________ test_3d ____________________________________ 162s 162s def test_3d(): 162s with raises(ValueError): 162s > Yl, Yh = dtwavexfm2(np.dstack((mandrill, mandrill))) 162s 162s tests/test_xfm2.py:32: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________________ test_simple_w_scale ______________________________ 162s 162s def test_simple_w_scale(): 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill, include_scale=True) 162s 162s tests/test_xfm2.py:35: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________________ test_odd_rows _________________________________ 162s 162s def test_odd_rows(): 162s > Yl, Yh = dtwavexfm2(mandrill[:509,:]) 162s 162s tests/test_xfm2.py:42: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_odd_rows_w_scale _____________________________ 162s 162s def test_odd_rows_w_scale(): 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:], include_scale=True) 162s 162s tests/test_xfm2.py:45: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________________ test_odd_cols _________________________________ 162s 162s def test_odd_cols(): 162s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 162s 162s tests/test_xfm2.py:48: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_odd_cols_w_scale _____________________________ 162s 162s def test_odd_cols_w_scale(): 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 162s 162s tests/test_xfm2.py:51: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_odd_rows_and_cols ____________________________ 162s 162s def test_odd_rows_and_cols(): 162s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 162s 162s tests/test_xfm2.py:54: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________ test_odd_rows_and_cols_w_scale ________________________ 162s 162s def test_odd_rows_and_cols_w_scale(): 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 162s 162s tests/test_xfm2.py:57: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_rot_symm_modified ____________________________ 162s 162s def test_rot_symm_modified(): 162s # This test only checks there is no error running these functions, not that they work 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill, biort='near_sym_b_bp', qshift='qshift_b_bp', include_scale=True) 162s 162s tests/test_xfm2.py:61: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________________ test_0_levels _________________________________ 162s 162s def test_0_levels(): 162s > Yl, Yh = dtwavexfm2(mandrill, nlevels=0) 162s 162s tests/test_xfm2.py:65: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________________ test_0_levels_w_scale _____________________________ 162s 162s def test_0_levels_w_scale(): 162s > Yl, Yh, Yscale = dtwavexfm2(mandrill, nlevels=0, include_scale=True) 162s 162s tests/test_xfm2.py:70: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_integer_input ______________________________ 162s 162s def test_integer_input(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array 162s > Yl, Yh = dtwavexfm2([[1,2,3,4], [1,2,3,4]]) 162s 162s tests/test_xfm2.py:78: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_integer_perfect_recon __________________________ 162s 162s def test_integer_perfect_recon(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array and reconstructed 162s A = np.array([[1,2,3,4], [5,6,7,8]], dtype=np.int32) 162s > Yl, Yh = dtwavexfm2(A) 162s 162s tests/test_xfm2.py:85: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_input ______________________________ 162s 162s def test_float32_input(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 162s 162s tests/test_xfm2.py:91: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 162s res = trans.forward(X, nlevels, include_scale) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 162s X = np.atleast_2d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________ test_simple_level_1_xfm ____________________________ 162s 162s def test_simple_level_1_xfm(): 162s # Just tests that the transform broadly works and gives expected size output 162s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 162s 162s tests/test_xfm3.py:31: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_simple_level_1_recon ___________________________ 162s 162s def test_simple_level_1_recon(): 162s # Test for perfect reconstruction with 1 level 162s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 162s 162s tests/test_xfm3.py:37: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ________________________ test_simple_level_1_recon_haar ________________________ 162s 162s def test_simple_level_1_recon_haar(): 162s # Test for perfect reconstruction with 1 level and Haar wavelets 162s 162s # Form Haar wavelets 162s h0 = np.array((1.0, 1.0)) 162s g0 = h0 162s h0 = h0 / np.sum(h0) 162s g0 = g0 / np.sum(g0) 162s h1 = g0 * np.cumprod(-np.ones_like(g0)) 162s g1 = -h0 * np.cumprod(-np.ones_like(h0)) 162s 162s haar = (h0, g0, h1, g1) 162s 162s > Yl, Yh = dtwavexfm3(ellipsoid, 1, biort=haar) 162s 162s tests/test_xfm3.py:55: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________ test_simple_level_2_xfm ____________________________ 162s 162s def test_simple_level_2_xfm(): 162s # Just tests that the transform broadly works and gives expected size output 162s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 162s 162s tests/test_xfm3.py:62: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_simple_level_2_recon ___________________________ 162s 162s def test_simple_level_2_recon(): 162s # Test for perfect reconstruction with 2 levels 162s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 162s 162s tests/test_xfm3.py:68: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ___________________________ test_simple_level_4_xfm ____________________________ 162s 162s def test_simple_level_4_xfm(): 162s # Just tests that the transform broadly works and gives expected size output 162s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 162s 162s tests/test_xfm3.py:75: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_simple_level_4_recon ___________________________ 162s 162s def test_simple_level_4_recon(): 162s # Test for perfect reconstruction with 3 levels 162s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 162s 162s tests/test_xfm3.py:81: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________ test_simple_level_4_recon_custom_wavelets ___________________ 162s 162s def test_simple_level_4_recon_custom_wavelets(): 162s # Test for perfect reconstruction with 3 levels 162s b = biort('legall') 162s q = qshift('qshift_06') 162s > Yl, Yh = dtwavexfm3(ellipsoid, 4, biort=b, qshift=q) 162s 162s tests/test_xfm3.py:90: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________ test_simple_level_4_xfm_ext_mode_8 ______________________ 162s 162s def test_simple_level_4_xfm_ext_mode_8(): 162s # Just tests that the transform broadly works and gives expected size output 162s crop_ellipsoid = ellipsoid[:62,:58,:54] 162s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 162s 162s tests/test_xfm3.py:98: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________ test_simple_level_4_recon_ext_mode_8 _____________________ 162s 162s def test_simple_level_4_recon_ext_mode_8(): 162s # Test for perfect reconstruction with 3 levels 162s crop_ellipsoid = ellipsoid[:62,:58,:54] 162s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 162s 162s tests/test_xfm3.py:104: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________ test_simple_level_4_xfm_ext_mode_4 ______________________ 162s 162s def test_simple_level_4_xfm_ext_mode_4(): 162s # Just tests that the transform broadly works and gives expected size output 162s crop_ellipsoid = ellipsoid[:62,:54,:58] 162s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 162s 162s tests/test_xfm3.py:112: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _____________________ test_simple_level_4_recon_ext_mode_4 _____________________ 162s 162s def test_simple_level_4_recon_ext_mode_4(): 162s # Test for perfect reconstruction with 3 levels 162s crop_ellipsoid = ellipsoid[:62,:54,:58] 162s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 162s 162s tests/test_xfm3.py:118: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_integer_input ______________________________ 162s 162s def test_integer_input(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array 162s > Yl, Yh = dtwavexfm3(np.ones((4,4,4), dtype=int)) 162s 162s tests/test_xfm3.py:126: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s __________________________ test_integer_perfect_recon __________________________ 162s 162s def test_integer_perfect_recon(): 162s # Check that an integer input is correctly coerced into a floating point 162s # array and reconstructed 162s A = (np.random.random((4,4,4)) * 5).astype(np.int32) 162s > Yl, Yh = dtwavexfm3(A) 162s 162s tests/test_xfm3.py:133: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_input ______________________________ 162s 162s def test_float32_input(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 162s 162s tests/test_xfm3.py:139: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ______________________________ test_float32_recon ______________________________ 162s 162s def test_float32_recon(): 162s # Check that an float32 input is correctly output as float32 162s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 162s 162s tests/test_xfm3.py:145: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s ____________________ test_level_4_recon_discarding_level_1 _____________________ 162s 162s def test_level_4_recon_discarding_level_1(): 162s # Test for non-perfect but reasonable reconstruction 162s > Yl, Yh = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 162s 162s tests/test_xfm3.py:154: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s _______________________ test_level_4_discarding_level_1 ________________________ 162s 162s def test_level_4_discarding_level_1(): 162s # Test that level >= 2 highpasses are identical 162s > Yl1, Yh1 = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 162s 162s tests/test_xfm3.py:163: 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 162s res = trans.forward(X, nlevels, include_scale, discard_level_1) 162s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 162s X = np.atleast_3d(asfarray(X)) 162s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 162s return np.asfarray(X, dtype=X.dtype) 162s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 162s 162s attr = 'asfarray' 162s 162s def __getattr__(attr): 162s # Warn for expired attributes 162s import warnings 162s 162s if attr == "linalg": 162s import numpy.linalg as linalg 162s return linalg 162s elif attr == "fft": 162s import numpy.fft as fft 162s return fft 162s elif attr == "dtypes": 162s import numpy.dtypes as dtypes 162s return dtypes 162s elif attr == "random": 162s import numpy.random as random 162s return random 162s elif attr == "polynomial": 162s import numpy.polynomial as polynomial 162s return polynomial 162s elif attr == "ma": 162s import numpy.ma as ma 162s return ma 162s elif attr == "ctypeslib": 162s import numpy.ctypeslib as ctypeslib 162s return ctypeslib 162s elif attr == "exceptions": 162s import numpy.exceptions as exceptions 162s return exceptions 162s elif attr == "testing": 162s import numpy.testing as testing 162s return testing 162s elif attr == "matlib": 162s import numpy.matlib as matlib 162s return matlib 162s elif attr == "f2py": 162s import numpy.f2py as f2py 162s return f2py 162s elif attr == "typing": 162s import numpy.typing as typing 162s return typing 162s elif attr == "rec": 162s import numpy.rec as rec 162s return rec 162s elif attr == "char": 162s import numpy.char as char 162s return char 162s elif attr == "array_api": 162s raise AttributeError("`numpy.array_api` is not available from " 162s "numpy 2.0 onwards", name=None) 162s elif attr == "core": 162s import numpy.core as core 162s return core 162s elif attr == "strings": 162s import numpy.strings as strings 162s return strings 162s elif attr == "distutils": 162s if 'distutils' in __numpy_submodules__: 162s import numpy.distutils as distutils 162s return distutils 162s else: 162s raise AttributeError("`numpy.distutils` is not available from " 162s "Python 3.12 onwards", name=None) 162s 162s if attr in __future_scalars__: 162s # And future warnings for those that will change, but also give 162s # the AttributeError 162s warnings.warn( 162s f"In the future `np.{attr}` will be defined as the " 162s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 162s 162s if attr in __former_attrs__: 162s raise AttributeError(__former_attrs__[attr], name=None) 162s 162s if attr in __expired_attributes__: 162s > raise AttributeError( 162s f"`np.{attr}` was removed in the NumPy 2.0 release. " 162s f"{__expired_attributes__[attr]}", 162s name=None 162s ) 162s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 162s 162s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 162s =========================== short test summary info ============================ 162s FAILED tests/test_againstmatlab.py::test_coldfilt - AttributeError: `np.asfar... 162s FAILED tests/test_againstmatlab.py::test_dtwavexfm2 - AttributeError: `np.asf... 162s FAILED tests/test_againstmatlab.py::test_dtwavexfm2b - AttributeError: `np.as... 162s FAILED tests/test_againstmatlab.py::test_rescale_highpass - AttributeError: `... 162s FAILED tests/test_againstmatlab.py::test_transform3d_numpy - AttributeError: ... 162s FAILED tests/test_coldfilt.py::test_mandrill_loaded - AssertionError: assert ... 162s FAILED tests/test_coldfilt.py::test_odd_filter - AttributeError: `np.asfarray... 162s FAILED tests/test_coldfilt.py::test_different_size - AttributeError: `np.asfa... 162s FAILED tests/test_coldfilt.py::test_bad_input_size - AttributeError: `np.asfa... 162s FAILED tests/test_coldfilt.py::test_good_input_size - AttributeError: `np.asf... 162s FAILED tests/test_coldfilt.py::test_good_input_size_non_orthogonal - Attribut... 162s FAILED tests/test_coldfilt.py::test_output_size - AttributeError: `np.asfarra... 162s FAILED tests/test_colfilter.py::test_mandrill_loaded - AssertionError: assert... 162s FAILED tests/test_colfilter.py::test_odd_size - AttributeError: `np.asfarray`... 162s FAILED tests/test_colfilter.py::test_even_size - AttributeError: `np.asfarray... 162s FAILED tests/test_colfilter.py::test_qshift - AttributeError: `np.asfarray` w... 162s FAILED tests/test_colfilter.py::test_biort - AttributeError: `np.asfarray` wa... 162s FAILED tests/test_colfilter.py::test_odd_size_non_array - AttributeError: `np... 162s FAILED tests/test_colfilter.py::test_even_size_non_array - AttributeError: `n... 162s FAILED tests/test_colifilt.py::test_mandrill_loaded - AssertionError: assert ... 162s FAILED tests/test_colifilt.py::test_odd_filter - AttributeError: `np.asfarray... 162s FAILED tests/test_colifilt.py::test_different_size_h - AttributeError: `np.as... 162s FAILED tests/test_colifilt.py::test_zero_input - AttributeError: `np.asfarray... 162s FAILED tests/test_colifilt.py::test_bad_input_size - AttributeError: `np.asfa... 162s FAILED tests/test_colifilt.py::test_good_input_size - AttributeError: `np.asf... 162s FAILED tests/test_colifilt.py::test_output_size - AttributeError: `np.asfarra... 162s FAILED tests/test_colifilt.py::test_non_orthogonal_input - AttributeError: `n... 162s FAILED tests/test_colifilt.py::test_output_size_non_mult_4 - AttributeError: ... 162s FAILED tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 - Attribu... 162s FAILED tests/test_ifm1.py::test_reconstruct - AttributeError: `np.asfarray` w... 162s FAILED tests/test_ifm1.py::test_reconstruct_2d - AttributeError: `np.asfarray... 162s FAILED tests/test_ifm1.py::test_float32_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_ifm2.py::test_reconstruct - AttributeError: `np.asfarray` w... 162s FAILED tests/test_ifm2.py::test_reconstruct_crop - AttributeError: `np.asfarr... 162s FAILED tests/test_ifm2.py::test_reconstruct_custom_filter - AttributeError: `... 162s FAILED tests/test_ifm2.py::test_float32_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_openclcoldfilt.py::test_mandrill_loaded - AssertionError: a... 162s FAILED tests/test_openclcolfilter.py::test_mandrill_loaded - AssertionError: ... 162s FAILED tests/test_openclcolifilt.py::test_mandrill_loaded - AssertionError: a... 162s FAILED tests/test_openclxfm2.py::test_mandrill_loaded - AssertionError: asser... 162s FAILED tests/test_registration.py::test_frames_loaded - AssertionError: asser... 162s FAILED tests/test_registration.py::test_estimatereg - AttributeError: `np.asf... 162s FAILED tests/test_utils.py::test_complex_type_for_complex - AttributeError: `... 162s FAILED tests/test_utils.py::test_complex_type_for_float - AttributeError: `np... 162s FAILED tests/test_xfm1.py::test_simple - AttributeError: `np.asfarray` was re... 162s FAILED tests/test_xfm1.py::test_simple_with_no_levels - AttributeError: `np.a... 162s FAILED tests/test_xfm1.py::test_simple_with_scale - AttributeError: `np.asfar... 162s FAILED tests/test_xfm1.py::test_simple_with_scale_and_no_levels - AttributeEr... 162s FAILED tests/test_xfm1.py::test_perfect_recon - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm1.py::test_simple_custom_filter - AttributeError: `np.as... 162s FAILED tests/test_xfm1.py::test_single_level - AttributeError: `np.asfarray` ... 162s FAILED tests/test_xfm1.py::test_non_multiple_of_two - AttributeError: `np.asf... 162s FAILED tests/test_xfm1.py::test_2d - AttributeError: `np.asfarray` was remove... 162s FAILED tests/test_xfm1.py::test_integer_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm1.py::test_integer_perfect_recon - AttributeError: `np.a... 162s FAILED tests/test_xfm1.py::test_float32_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm2.py::test_mandrill_loaded - AssertionError: assert dtyp... 162s FAILED tests/test_xfm2.py::test_simple - AttributeError: `np.asfarray` was re... 162s FAILED tests/test_xfm2.py::test_specific_wavelet - AttributeError: `np.asfarr... 162s FAILED tests/test_xfm2.py::test_1d - AttributeError: `np.asfarray` was remove... 162s FAILED tests/test_xfm2.py::test_3d - AttributeError: `np.asfarray` was remove... 162s FAILED tests/test_xfm2.py::test_simple_w_scale - AttributeError: `np.asfarray... 162s FAILED tests/test_xfm2.py::test_odd_rows - AttributeError: `np.asfarray` was ... 162s FAILED tests/test_xfm2.py::test_odd_rows_w_scale - AttributeError: `np.asfarr... 162s FAILED tests/test_xfm2.py::test_odd_cols - AttributeError: `np.asfarray` was ... 162s FAILED tests/test_xfm2.py::test_odd_cols_w_scale - AttributeError: `np.asfarr... 162s FAILED tests/test_xfm2.py::test_odd_rows_and_cols - AttributeError: `np.asfar... 162s FAILED tests/test_xfm2.py::test_odd_rows_and_cols_w_scale - AttributeError: `... 162s FAILED tests/test_xfm2.py::test_rot_symm_modified - AttributeError: `np.asfar... 162s FAILED tests/test_xfm2.py::test_0_levels - AttributeError: `np.asfarray` was ... 162s FAILED tests/test_xfm2.py::test_0_levels_w_scale - AttributeError: `np.asfarr... 162s FAILED tests/test_xfm2.py::test_integer_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm2.py::test_integer_perfect_recon - AttributeError: `np.a... 162s FAILED tests/test_xfm2.py::test_float32_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm3.py::test_simple_level_1_xfm - AttributeError: `np.asfa... 162s FAILED tests/test_xfm3.py::test_simple_level_1_recon - AttributeError: `np.as... 162s FAILED tests/test_xfm3.py::test_simple_level_1_recon_haar - AttributeError: `... 162s FAILED tests/test_xfm3.py::test_simple_level_2_xfm - AttributeError: `np.asfa... 162s FAILED tests/test_xfm3.py::test_simple_level_2_recon - AttributeError: `np.as... 162s FAILED tests/test_xfm3.py::test_simple_level_4_xfm - AttributeError: `np.asfa... 162s FAILED tests/test_xfm3.py::test_simple_level_4_recon - AttributeError: `np.as... 162s FAILED tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets - Attrib... 162s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 - AttributeErro... 162s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 - AttributeEr... 162s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 - AttributeErro... 162s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 - AttributeEr... 162s FAILED tests/test_xfm3.py::test_integer_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm3.py::test_integer_perfect_recon - AttributeError: `np.a... 162s FAILED tests/test_xfm3.py::test_float32_input - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm3.py::test_float32_recon - AttributeError: `np.asfarray`... 162s FAILED tests/test_xfm3.py::test_level_4_recon_discarding_level_1 - AttributeE... 162s FAILED tests/test_xfm3.py::test_level_4_discarding_level_1 - AttributeError: ... 162s ================= 92 failed, 33 passed, 214 skipped in -82.89s ================= 162s autopkgtest [00:11:04]: test command1: -----------------------] 163s command1 FAIL non-zero exit status 1 163s autopkgtest [00:11:05]: test command1: - - - - - - - - - - results - - - - - - - - - - 163s autopkgtest [00:11:05]: @@@@@@@@@@@@@@@@@@@@ summary 163s command1 FAIL non-zero exit status 1 170s nova [W] Using flock in prodstack6-s390x 170s Creating nova instance adt-plucky-s390x-python-dtcwt-20250221-000822-juju-7f2275-prod-proposed-migration-environment-20-32c343c7-82e6-48be-b2b4-8ad13e718942 from image adt/ubuntu-plucky-s390x-server-20250220.img (UUID dfcfa127-57e0-4f6e-90de-18502ac9dcf4)... 170s nova [W] Timed out waiting for 60e6207a-f8e7-4802-83c2-a2e87ba0da08 to get deleted.