0s autopkgtest [00:01:11]: starting date and time: 2025-02-21 00:01:11+0000 0s autopkgtest [00:01:11]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [00:01:11]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.bx_ynr3p/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 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-6.secgroup --name adt-plucky-arm64-python-dtcwt-20250221-000111-juju-7f2275-prod-proposed-migration-environment-15-db03a3a7-1b34-4041-9328-c351d791b004 --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -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/ 134s autopkgtest [00:03:25]: testbed dpkg architecture: arm64 135s autopkgtest [00:03:26]: testbed apt version: 2.9.30 135s autopkgtest [00:03:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 135s autopkgtest [00:03:26]: testbed release detected to be: None 136s autopkgtest [00:03:27]: updating testbed package index (apt update) 136s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 137s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 137s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 137s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 137s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [729 kB] 137s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 137s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [89.5 kB] 137s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.8 kB] 137s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [127 kB] 137s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [7960 B] 137s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [676 kB] 137s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [10.7 kB] 137s Fetched 1768 kB in 1s (1927 kB/s) 138s Reading package lists... 139s + lsb_release --codename --short 139s + RELEASE=plucky 139s + cat 139s + [ plucky != trusty ] 139s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 139s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Calculating upgrade... 141s The following package was automatically installed and is no longer required: 141s libapt-pkg6.0t64 141s Use 'sudo apt autoremove' to remove it. 141s The following packages will be upgraded: 141s apt apt-utils binutils binutils-aarch64-linux-gnu binutils-common 141s cryptsetup-bin fwupd inetutils-telnet kbd libapt-pkg7.0 libbinutils 141s libcryptsetup12 libctf-nobfd0 libctf0 libfwupd3 libgprofng0 libplymouth5 141s libsframe1 libssl3t64 openssl openssl-provider-legacy plymouth 141s plymouth-theme-ubuntu-text python3-requests telnet ubuntu-pro-client 141s ubuntu-pro-client-l10n 141s 27 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 141s Need to get 16.4 MB of archives. 141s After this operation, 60.4 kB disk space will be freed. 141s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 openssl-provider-legacy arm64 3.4.1-1ubuntu1 [38.6 kB] 141s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libssl3t64 arm64 3.4.1-1ubuntu1 [2641 kB] 142s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 libapt-pkg7.0 arm64 2.9.30ubuntu1 [1024 kB] 142s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 apt arm64 2.9.30ubuntu1 [1367 kB] 142s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 apt-utils arm64 2.9.30ubuntu1 [207 kB] 142s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 kbd arm64 2.7.1-2ubuntu1 [230 kB] 142s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 openssl arm64 3.4.1-1ubuntu1 [1162 kB] 142s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 ubuntu-pro-client-l10n arm64 34.1.3 [18.3 kB] 142s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 ubuntu-pro-client arm64 34.1.3 [240 kB] 142s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 inetutils-telnet arm64 2:2.5-6ubuntu1 [104 kB] 142s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 libplymouth5 arm64 24.004.60-2ubuntu5 [141 kB] 142s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 plymouth-theme-ubuntu-text arm64 24.004.60-2ubuntu5 [9948 B] 142s Get:13 http://ftpmaster.internal/ubuntu plucky/main arm64 plymouth arm64 24.004.60-2ubuntu5 [135 kB] 142s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 telnet all 0.17+2.5-6ubuntu1 [3694 B] 142s Get:15 http://ftpmaster.internal/ubuntu plucky/main arm64 libgprofng0 arm64 2.44-2ubuntu1 [778 kB] 142s Get:16 http://ftpmaster.internal/ubuntu plucky/main arm64 libctf0 arm64 2.44-2ubuntu1 [99.2 kB] 142s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 libctf-nobfd0 arm64 2.44-2ubuntu1 [103 kB] 142s Get:18 http://ftpmaster.internal/ubuntu plucky/main arm64 binutils-aarch64-linux-gnu arm64 2.44-2ubuntu1 [965 kB] 142s Get:19 http://ftpmaster.internal/ubuntu plucky/main arm64 libbinutils arm64 2.44-2ubuntu1 [784 kB] 142s Get:20 http://ftpmaster.internal/ubuntu plucky/main arm64 binutils arm64 2.44-2ubuntu1 [209 kB] 142s Get:21 http://ftpmaster.internal/ubuntu plucky/main arm64 binutils-common arm64 2.44-2ubuntu1 [215 kB] 142s Get:22 http://ftpmaster.internal/ubuntu plucky/main arm64 libsframe1 arm64 2.44-2ubuntu1 [14.6 kB] 142s Get:23 http://ftpmaster.internal/ubuntu plucky/main arm64 libcryptsetup12 arm64 2:2.7.5-1ubuntu2 [271 kB] 142s Get:24 http://ftpmaster.internal/ubuntu plucky/main arm64 cryptsetup-bin arm64 2:2.7.5-1ubuntu2 [217 kB] 142s Get:25 http://ftpmaster.internal/ubuntu plucky/main arm64 fwupd arm64 2.0.6-3 [5288 kB] 142s Get:26 http://ftpmaster.internal/ubuntu plucky/main arm64 libfwupd3 arm64 2.0.6-3 [129 kB] 142s Get:27 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-requests all 2.32.3+dfsg-4ubuntu1 [52.9 kB] 143s Fetched 16.4 MB in 1s (14.3 MB/s) 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 ... 116718 files and directories currently installed.) 143s Preparing to unpack .../openssl-provider-legacy_3.4.1-1ubuntu1_arm64.deb ... 143s Unpacking openssl-provider-legacy (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 143s Setting up openssl-provider-legacy (3.4.1-1ubuntu1) ... 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 ... 116718 files and directories currently installed.) 143s Preparing to unpack .../libssl3t64_3.4.1-1ubuntu1_arm64.deb ... 143s Unpacking libssl3t64:arm64 (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 143s Setting up libssl3t64:arm64 (3.4.1-1ubuntu1) ... 144s (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 ... 116717 files and directories currently installed.) 144s Preparing to unpack .../libapt-pkg7.0_2.9.30ubuntu1_arm64.deb ... 144s Unpacking libapt-pkg7.0:arm64 (2.9.30ubuntu1) over (2.9.30) ... 144s Setting up libapt-pkg7.0:arm64 (2.9.30ubuntu1) ... 144s (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 ... 116717 files and directories currently installed.) 144s Preparing to unpack .../apt_2.9.30ubuntu1_arm64.deb ... 144s Unpacking apt (2.9.30ubuntu1) over (2.9.30) ... 144s Setting up apt (2.9.30ubuntu1) ... 145s (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 ... 116717 files and directories currently installed.) 145s Preparing to unpack .../00-apt-utils_2.9.30ubuntu1_arm64.deb ... 145s Unpacking apt-utils (2.9.30ubuntu1) over (2.9.30) ... 145s Preparing to unpack .../01-kbd_2.7.1-2ubuntu1_arm64.deb ... 145s Unpacking kbd (2.7.1-2ubuntu1) over (2.6.4-2ubuntu3) ... 145s Preparing to unpack .../02-openssl_3.4.1-1ubuntu1_arm64.deb ... 145s Unpacking openssl (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 145s Preparing to unpack .../03-ubuntu-pro-client-l10n_34.1.3_arm64.deb ... 145s Unpacking ubuntu-pro-client-l10n (34.1.3) over (34.1.2) ... 145s Preparing to unpack .../04-ubuntu-pro-client_34.1.3_arm64.deb ... 145s /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. 145s for fn in glob1(directory, "%s.*" % fname): 145s Unpacking ubuntu-pro-client (34.1.3) over (34.1.2) ... 145s Preparing to unpack .../05-inetutils-telnet_2%3a2.5-6ubuntu1_arm64.deb ... 145s Unpacking inetutils-telnet (2:2.5-6ubuntu1) over (2:2.5-5ubuntu1) ... 146s Preparing to unpack .../06-libplymouth5_24.004.60-2ubuntu5_arm64.deb ... 146s Unpacking libplymouth5:arm64 (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 146s Preparing to unpack .../07-plymouth-theme-ubuntu-text_24.004.60-2ubuntu5_arm64.deb ... 146s Unpacking plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 146s Preparing to unpack .../08-plymouth_24.004.60-2ubuntu5_arm64.deb ... 146s Unpacking plymouth (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 146s Preparing to unpack .../09-telnet_0.17+2.5-6ubuntu1_all.deb ... 146s Unpacking telnet (0.17+2.5-6ubuntu1) over (0.17+2.5-5ubuntu1) ... 146s Preparing to unpack .../10-libgprofng0_2.44-2ubuntu1_arm64.deb ... 146s Unpacking libgprofng0:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../11-libctf0_2.44-2ubuntu1_arm64.deb ... 146s Unpacking libctf0:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../12-libctf-nobfd0_2.44-2ubuntu1_arm64.deb ... 146s Unpacking libctf-nobfd0:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../13-binutils-aarch64-linux-gnu_2.44-2ubuntu1_arm64.deb ... 146s Unpacking binutils-aarch64-linux-gnu (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../14-libbinutils_2.44-2ubuntu1_arm64.deb ... 146s Unpacking libbinutils:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../15-binutils_2.44-2ubuntu1_arm64.deb ... 146s Unpacking binutils (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 146s Preparing to unpack .../16-binutils-common_2.44-2ubuntu1_arm64.deb ... 146s Unpacking binutils-common:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 147s Preparing to unpack .../17-libsframe1_2.44-2ubuntu1_arm64.deb ... 147s Unpacking libsframe1:arm64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 147s Preparing to unpack .../18-libcryptsetup12_2%3a2.7.5-1ubuntu2_arm64.deb ... 147s Unpacking libcryptsetup12:arm64 (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 147s Preparing to unpack .../19-cryptsetup-bin_2%3a2.7.5-1ubuntu2_arm64.deb ... 147s Unpacking cryptsetup-bin (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 147s Preparing to unpack .../20-fwupd_2.0.6-3_arm64.deb ... 147s Unpacking fwupd (2.0.6-3) over (2.0.5-1) ... 147s Preparing to unpack .../21-libfwupd3_2.0.6-3_arm64.deb ... 147s Unpacking libfwupd3:arm64 (2.0.6-3) over (2.0.5-1) ... 147s Preparing to unpack .../22-python3-requests_2.32.3+dfsg-4ubuntu1_all.deb ... 147s /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. 147s for fn in glob1(directory, "%s.*" % fname): 147s Unpacking python3-requests (2.32.3+dfsg-4ubuntu1) over (2.32.3+dfsg-1ubuntu1) ... 147s Setting up apt-utils (2.9.30ubuntu1) ... 147s Setting up binutils-common:arm64 (2.44-2ubuntu1) ... 147s Setting up inetutils-telnet (2:2.5-6ubuntu1) ... 147s Setting up libctf-nobfd0:arm64 (2.44-2ubuntu1) ... 147s Setting up libfwupd3:arm64 (2.0.6-3) ... 147s Setting up libsframe1:arm64 (2.44-2ubuntu1) ... 147s Setting up python3-requests (2.32.3+dfsg-4ubuntu1) ... 148s Setting up libplymouth5:arm64 (24.004.60-2ubuntu5) ... 148s Setting up libcryptsetup12:arm64 (2:2.7.5-1ubuntu2) ... 148s Setting up kbd (2.7.1-2ubuntu1) ... 148s Setting up libbinutils:arm64 (2.44-2ubuntu1) ... 148s Setting up openssl (3.4.1-1ubuntu1) ... 148s Setting up ubuntu-pro-client (34.1.3) ... 149s Setting up fwupd (2.0.6-3) ... 150s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 150s fwupd.service is a disabled or a static unit not running, not starting it. 150s Setting up libctf0:arm64 (2.44-2ubuntu1) ... 150s Setting up cryptsetup-bin (2:2.7.5-1ubuntu2) ... 150s Setting up ubuntu-pro-client-l10n (34.1.3) ... 150s Setting up telnet (0.17+2.5-6ubuntu1) ... 150s Setting up plymouth (24.004.60-2ubuntu5) ... 150s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 150s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 151s Setting up binutils-aarch64-linux-gnu (2.44-2ubuntu1) ... 151s Setting up libgprofng0:arm64 (2.44-2ubuntu1) ... 151s Setting up binutils (2.44-2ubuntu1) ... 151s Processing triggers for dbus (1.16.0-1ubuntu1) ... 151s Processing triggers for initramfs-tools (0.145ubuntu2) ... 151s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 151s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 170s System running in EFI mode, skipping. 170s Processing triggers for libc-bin (2.40-4ubuntu1) ... 170s Processing triggers for man-db (2.13.0-1) ... 173s Setting up plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) ... 173s Processing triggers for initramfs-tools (0.145ubuntu2) ... 173s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 173s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 191s System running in EFI mode, skipping. 192s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 192s + /usr/lib/apt/apt-helper analyze-pattern ?true 192s + uname -r 192s + sed s/\./\\./g 192s + running_kernel_pattern=^linux-.*6\.12\.0-15-generic.* 192s + apt list ?obsolete 192s + tail -n+2 192s + cut -d/ -f1 192s + grep -v ^linux-.*6\.12\.0-15-generic.* 193s + true 193s + obsolete_pkgs= 193s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove 193s Reading package lists... 193s Building dependency tree... 193s Reading state information... 194s Solving dependencies... 194s The following packages will be REMOVED: 194s libapt-pkg6.0t64* 195s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 195s After this operation, 3410 kB disk space will be freed. 195s (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 ... 116714 files and directories currently installed.) 195s Removing libapt-pkg6.0t64:arm64 (2.9.29) ... 195s Processing triggers for libc-bin (2.40-4ubuntu1) ... 195s + grep -q trusty /etc/lsb-release 195s + [ ! -d /usr/share/doc/unattended-upgrades ] 195s + [ ! -d /usr/share/doc/lxd ] 195s + [ ! -d /usr/share/doc/lxd-client ] 195s + [ ! -d /usr/share/doc/snapd ] 195s + type iptables 195s + cat 195s + chmod 755 /etc/rc.local 195s + . /etc/rc.local 195s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 195s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 195s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 195s + uname -m 195s + [ aarch64 = ppc64le ] 195s + [ -d /run/systemd/system ] 195s + systemd-detect-virt --quiet --vm 195s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 195s + cat 195s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 195s + echo COMPRESS=lz4 195s autopkgtest [00:04:26]: upgrading testbed (apt dist-upgrade and autopurge) 195s Reading package lists... 196s Building dependency tree... 196s Reading state information... 196s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 196s Starting 2 pkgProblemResolver with broken count: 0 196s Done 197s Entering ResolveByKeep 197s 198s Calculating upgrade... 198s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 198s Reading package lists... 199s Building dependency tree... 199s Reading state information... 199s Starting pkgProblemResolver with broken count: 0 199s Starting 2 pkgProblemResolver with broken count: 0 199s Done 200s Solving dependencies... 200s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 200s autopkgtest [00:04:31]: rebooting testbed after setup commands that affected boot 225s autopkgtest [00:04:56]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 15:49:33 UTC 2025 228s autopkgtest [00:04:59]: @@@@@@@@@@@@@@@@@@@@ apt-source python-dtcwt 231s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (dsc) [2520 B] 231s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (tar) [7457 kB] 231s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (diff) [6792 B] 232s gpgv: Signature made Thu Jun 6 22:51:03 2024 UTC 232s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 232s gpgv: Can't check signature: No public key 232s dpkg-source: warning: cannot verify inline signature for ./python-dtcwt_0.12.0-5ubuntu1.dsc: no acceptable signature found 232s autopkgtest [00:05:03]: testing package python-dtcwt version 0.12.0-5ubuntu1 232s autopkgtest [00:05:03]: build not needed 233s autopkgtest [00:05:04]: test command1: preparing testbed 233s Reading package lists... 234s Building dependency tree... 234s Reading state information... 234s Starting pkgProblemResolver with broken count: 0 234s Starting 2 pkgProblemResolver with broken count: 0 234s Done 235s The following NEW packages will be installed: 235s libblas3 libgfortran5 liblapack3 liblbfgsb0 python3-all python3-decorator 235s python3-dtcwt python3-iniconfig python3-numpy python3-numpy-dev 235s python3-packaging python3-pluggy python3-pytest python3-scipy python3-six 235s python3.12 python3.12-minimal 235s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 235s Need to get 30.5 MB of archives. 235s After this operation, 156 MB of additional disk space will be used. 235s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12-minimal arm64 3.12.9-1 [2236 kB] 236s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-numpy-dev arm64 1:2.2.3+ds-2 [145 kB] 236s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 libblas3 arm64 3.12.1-2 [161 kB] 236s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 libgfortran5 arm64 15-20250213-1ubuntu1 [443 kB] 236s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 liblapack3 arm64 3.12.1-2 [2307 kB] 236s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-numpy arm64 1:2.2.3+ds-2 [4583 kB] 236s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12 arm64 3.12.9-1 [671 kB] 236s Get:8 http://ftpmaster.internal/ubuntu plucky/universe arm64 liblbfgsb0 arm64 3.0+dfsg.4-1build1 [27.7 kB] 236s Get:9 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all arm64 3.13.1-1~exp2 [894 B] 236s Get:10 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-decorator all 5.1.1-5 [10.1 kB] 236s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-six all 1.17.0-1 [13.2 kB] 236s Get:12 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-dtcwt all 0.12.0-5ubuntu1 [54.6 kB] 236s Get:13 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 236s Get:14 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.2-1 [51.5 kB] 236s Get:15 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 236s Get:16 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.4-1 [252 kB] 236s Get:17 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-scipy arm64 1.14.1-4ubuntu1 [19.5 MB] 238s Fetched 30.5 MB in 2s (13.6 MB/s) 238s Selecting previously unselected package python3.12-minimal. 238s (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 ... 116664 files and directories currently installed.) 238s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_arm64.deb ... 238s Unpacking python3.12-minimal (3.12.9-1) ... 238s Selecting previously unselected package python3-numpy-dev:arm64. 238s Preparing to unpack .../01-python3-numpy-dev_1%3a2.2.3+ds-2_arm64.deb ... 238s Unpacking python3-numpy-dev:arm64 (1:2.2.3+ds-2) ... 238s Selecting previously unselected package libblas3:arm64. 239s Preparing to unpack .../02-libblas3_3.12.1-2_arm64.deb ... 239s Unpacking libblas3:arm64 (3.12.1-2) ... 239s Selecting previously unselected package libgfortran5:arm64. 239s Preparing to unpack .../03-libgfortran5_15-20250213-1ubuntu1_arm64.deb ... 239s Unpacking libgfortran5:arm64 (15-20250213-1ubuntu1) ... 239s Selecting previously unselected package liblapack3:arm64. 239s Preparing to unpack .../04-liblapack3_3.12.1-2_arm64.deb ... 239s Unpacking liblapack3:arm64 (3.12.1-2) ... 239s Selecting previously unselected package python3-numpy. 239s Preparing to unpack .../05-python3-numpy_1%3a2.2.3+ds-2_arm64.deb ... 239s Unpacking python3-numpy (1:2.2.3+ds-2) ... 239s Selecting previously unselected package python3.12. 239s Preparing to unpack .../06-python3.12_3.12.9-1_arm64.deb ... 239s Unpacking python3.12 (3.12.9-1) ... 239s Selecting previously unselected package liblbfgsb0:arm64. 239s Preparing to unpack .../07-liblbfgsb0_3.0+dfsg.4-1build1_arm64.deb ... 239s Unpacking liblbfgsb0:arm64 (3.0+dfsg.4-1build1) ... 239s Selecting previously unselected package python3-all. 239s Preparing to unpack .../08-python3-all_3.13.1-1~exp2_arm64.deb ... 239s Unpacking python3-all (3.13.1-1~exp2) ... 239s Selecting previously unselected package python3-decorator. 239s Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ... 239s Unpacking python3-decorator (5.1.1-5) ... 239s Selecting previously unselected package python3-six. 239s Preparing to unpack .../10-python3-six_1.17.0-1_all.deb ... 239s Unpacking python3-six (1.17.0-1) ... 239s Selecting previously unselected package python3-dtcwt. 239s Preparing to unpack .../11-python3-dtcwt_0.12.0-5ubuntu1_all.deb ... 239s Unpacking python3-dtcwt (0.12.0-5ubuntu1) ... 239s Selecting previously unselected package python3-iniconfig. 239s Preparing to unpack .../12-python3-iniconfig_1.1.1-2_all.deb ... 239s Unpacking python3-iniconfig (1.1.1-2) ... 239s Selecting previously unselected package python3-packaging. 240s Preparing to unpack .../13-python3-packaging_24.2-1_all.deb ... 240s Unpacking python3-packaging (24.2-1) ... 240s Selecting previously unselected package python3-pluggy. 240s Preparing to unpack .../14-python3-pluggy_1.5.0-1_all.deb ... 240s Unpacking python3-pluggy (1.5.0-1) ... 240s Selecting previously unselected package python3-pytest. 240s Preparing to unpack .../15-python3-pytest_8.3.4-1_all.deb ... 240s Unpacking python3-pytest (8.3.4-1) ... 240s Selecting previously unselected package python3-scipy. 240s Preparing to unpack .../16-python3-scipy_1.14.1-4ubuntu1_arm64.deb ... 240s Unpacking python3-scipy (1.14.1-4ubuntu1) ... 240s Setting up python3-iniconfig (1.1.1-2) ... 241s Setting up python3.12-minimal (3.12.9-1) ... 242s Setting up python3.12 (3.12.9-1) ... 243s Setting up python3-all (3.13.1-1~exp2) ... 243s Setting up python3-six (1.17.0-1) ... 243s Setting up python3-decorator (5.1.1-5) ... 244s Setting up libblas3:arm64 (3.12.1-2) ... 244s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/aarch64-linux-gnu/libblas.so.3 (libblas.so.3-aarch64-linux-gnu) in auto mode 244s Setting up python3-packaging (24.2-1) ... 244s Setting up python3-numpy-dev:arm64 (1:2.2.3+ds-2) ... 244s Setting up libgfortran5:arm64 (15-20250213-1ubuntu1) ... 244s Setting up python3-pluggy (1.5.0-1) ... 244s Setting up liblapack3:arm64 (3.12.1-2) ... 244s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/aarch64-linux-gnu/liblapack.so.3 (liblapack.so.3-aarch64-linux-gnu) in auto mode 244s Setting up python3-pytest (8.3.4-1) ... 245s Setting up python3-numpy (1:2.2.3+ds-2) ... 249s Setting up liblbfgsb0:arm64 (3.0+dfsg.4-1build1) ... 249s Setting up python3-dtcwt (0.12.0-5ubuntu1) ... 250s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 250s """Return a resampled version of *im* scaled to *shape*. 250s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 250s """ 250s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 250s """Return a resampled version of *im* scaled to *shape*. 250s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 250s """ 250s Setting up python3-scipy (1.14.1-4ubuntu1) ... 258s Processing triggers for systemd (257.2-3ubuntu1) ... 258s Processing triggers for man-db (2.13.0-1) ... 259s Processing triggers for libc-bin (2.40-4ubuntu1) ... 260s autopkgtest [00:05:31]: 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 260s autopkgtest [00:05:31]: test command1: [----------------------- 260s Testing with python3.12: 261s ============================= test session starts ============================== 261s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12 261s cachedir: .pytest_cache 261s rootdir: /tmp/autopkgtest.FhUOW4/autopkgtest_tmp 261s plugins: typeguard-4.4.1 262s collecting ... collected 339 items 262s 262s tests/test_againstmatlab.py::test_mandrill_loaded PASSED [ 0%] 262s tests/test_againstmatlab.py::test_coldfilt FAILED [ 0%] 262s tests/test_againstmatlab.py::test_dtwavexfm2 FAILED [ 0%] 262s tests/test_againstmatlab.py::test_dtwavexfm2b FAILED [ 1%] 262s tests/test_againstmatlab.py::test_rescale_highpass FAILED [ 1%] 262s tests/test_againstmatlab.py::test_transform3d_numpy FAILED [ 1%] 262s tests/test_coeffs.py::test_antonini PASSED [ 2%] 262s tests/test_coeffs.py::test_legall PASSED [ 2%] 262s tests/test_coeffs.py::test_near_sym_a PASSED [ 2%] 262s tests/test_coeffs.py::test_qshift_06 PASSED [ 2%] 262s tests/test_coeffs.py::test_qshift_a PASSED [ 3%] 262s tests/test_coeffs.py::test_qshift_b PASSED [ 3%] 262s tests/test_coeffs.py::test_qshift_c PASSED [ 3%] 262s tests/test_coeffs.py::test_qshift_d PASSED [ 4%] 262s tests/test_coeffs.py::test_non_exist_biort PASSED [ 4%] 262s tests/test_coeffs.py::test_non_exist_qshift PASSED [ 4%] 262s tests/test_coeffs.py::test_wrong_type_a PASSED [ 5%] 262s tests/test_coeffs.py::test_wrong_type_b PASSED [ 5%] 262s tests/test_coldfilt.py::test_mandrill_loaded PASSED [ 5%] 262s tests/test_coldfilt.py::test_odd_filter FAILED [ 5%] 262s tests/test_coldfilt.py::test_different_size FAILED [ 6%] 262s tests/test_coldfilt.py::test_bad_input_size FAILED [ 6%] 262s tests/test_coldfilt.py::test_good_input_size FAILED [ 6%] 262s tests/test_coldfilt.py::test_good_input_size_non_orthogonal FAILED [ 7%] 262s tests/test_coldfilt.py::test_output_size FAILED [ 7%] 262s tests/test_colfilter.py::test_mandrill_loaded PASSED [ 7%] 262s tests/test_colfilter.py::test_odd_size FAILED [ 7%] 262s tests/test_colfilter.py::test_even_size FAILED [ 8%] 263s tests/test_colfilter.py::test_qshift FAILED [ 8%] 263s tests/test_colfilter.py::test_biort FAILED [ 8%] 263s tests/test_colfilter.py::test_odd_size_non_array FAILED [ 9%] 263s tests/test_colfilter.py::test_even_size_non_array FAILED [ 9%] 263s tests/test_colifilt.py::test_mandrill_loaded PASSED [ 9%] 263s tests/test_colifilt.py::test_odd_filter FAILED [ 10%] 263s tests/test_colifilt.py::test_different_size_h FAILED [ 10%] 263s tests/test_colifilt.py::test_zero_input FAILED [ 10%] 263s tests/test_colifilt.py::test_bad_input_size FAILED [ 10%] 263s tests/test_colifilt.py::test_good_input_size FAILED [ 11%] 263s tests/test_colifilt.py::test_output_size FAILED [ 11%] 263s tests/test_colifilt.py::test_non_orthogonal_input FAILED [ 11%] 263s tests/test_colifilt.py::test_output_size_non_mult_4 FAILED [ 12%] 263s tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 FAILED [ 12%] 263s tests/test_ifm1.py::test_reconstruct FAILED [ 12%] 263s tests/test_ifm1.py::test_reconstruct_2d FAILED [ 12%] 263s tests/test_ifm1.py::test_float32_input FAILED [ 13%] 263s tests/test_ifm2.py::test_mandrill_loaded PASSED [ 13%] 263s tests/test_ifm2.py::test_reconstruct FAILED [ 13%] 263s tests/test_ifm2.py::test_reconstruct_crop FAILED [ 14%] 263s tests/test_ifm2.py::test_reconstruct_custom_filter FAILED [ 14%] 263s tests/test_ifm2.py::test_float32_input FAILED [ 14%] 263s tests/test_import.py::test PASSED [ 15%] 263s tests/test_openclcoldfilt.py::test_mandrill_loaded PASSED [ 15%] 263s tests/test_openclcoldfilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 15%] 263s tests/test_openclcoldfilt.py::test_different_size SKIPPED (OpenCL no...) [ 15%] 263s tests/test_openclcoldfilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 16%] 263s tests/test_openclcoldfilt.py::test_real_wavelet SKIPPED (OpenCL not ...) [ 16%] 263s tests/test_openclcoldfilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 16%] 263s tests/test_openclcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 17%] 263s tests/test_openclcoldfilt.py::test_output_size SKIPPED (OpenCL not p...) [ 17%] 263s tests/test_openclcoldfilt.py::test_qshift SKIPPED (OpenCL not present) [ 17%] 263s tests/test_openclcolfilter.py::test_mandrill_loaded PASSED [ 17%] 263s tests/test_openclcolfilter.py::test_odd_size SKIPPED (OpenCL not pre...) [ 18%] 263s tests/test_openclcolfilter.py::test_even_size SKIPPED (OpenCL not pr...) [ 18%] 263s tests/test_openclcolfilter.py::test_qshift SKIPPED (OpenCL not present) [ 18%] 263s tests/test_openclcolfilter.py::test_biort SKIPPED (OpenCL not present) [ 19%] 263s tests/test_openclcolfilter.py::test_odd_size_non_array SKIPPED (Open...) [ 19%] 263s tests/test_openclcolfilter.py::test_even_size_non_array SKIPPED (Ope...) [ 19%] 263s tests/test_openclcolifilt.py::test_mandrill_loaded PASSED [ 20%] 263s tests/test_openclcolifilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 20%] 263s tests/test_openclcolifilt.py::test_different_size_h SKIPPED (OpenCL ...) [ 20%] 263s tests/test_openclcolifilt.py::test_zero_input SKIPPED (OpenCL not pr...) [ 20%] 263s tests/test_openclcolifilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 21%] 263s tests/test_openclcolifilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 21%] 263s tests/test_openclcolifilt.py::test_output_size SKIPPED (OpenCL not p...) [ 21%] 263s tests/test_openclcolifilt.py::test_non_orthogonal_input SKIPPED (Ope...) [ 22%] 263s tests/test_openclcolifilt.py::test_output_size_non_mult_4 SKIPPED (O...) [ 22%] 263s tests/test_openclcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 22%] 263s tests/test_openclcolifilt.py::test_qshift SKIPPED (OpenCL not present) [ 23%] 263s tests/test_openclcolifilt.py::test_qshift_odd_len_input_2 SKIPPED (O...) [ 23%] 263s tests/test_openclcolifilt.py::test_qshift_even_input SKIPPED (OpenCL...) [ 23%] 263s tests/test_openclxfm2.py::test_mandrill_loaded PASSED [ 23%] 263s tests/test_openclxfm2.py::test_simple SKIPPED (OpenCL not present) [ 24%] 263s tests/test_openclxfm2.py::test_specific_wavelet SKIPPED (OpenCL not ...) [ 24%] 263s tests/test_openclxfm2.py::test_1d SKIPPED (OpenCL not present) [ 24%] 263s tests/test_openclxfm2.py::test_3d SKIPPED (OpenCL not present) [ 25%] 263s tests/test_openclxfm2.py::test_simple_w_scale SKIPPED (OpenCL not pr...) [ 25%] 263s tests/test_openclxfm2.py::test_odd_rows SKIPPED (OpenCL not present) [ 25%] 263s tests/test_openclxfm2.py::test_odd_cols SKIPPED (OpenCL not present) [ 25%] 263s tests/test_openclxfm2.py::test_odd_rows_and_cols SKIPPED (OpenCL not...) [ 26%] 263s tests/test_openclxfm2.py::test_0_levels SKIPPED (OpenCL not present) [ 26%] 263s tests/test_openclxfm2.py::test_modified SKIPPED (OpenCL not present) [ 26%] 263s tests/test_reflect.py::test_linear_ramp_boundaries PASSED [ 27%] 263s tests/test_reflect.py::test_linear_ramp_values PASSED [ 27%] 263s tests/test_reflect.py::test_non_array_input PASSED [ 27%] 263s tests/test_registration.py::test_frames_loaded PASSED [ 28%] 263s tests/test_registration.py::test_estimatereg FAILED [ 28%] 263s tests/test_sampling.py::test_rescale_lanczos PASSED [ 28%] 263s tests/test_sampling.py::test_rescale_bilinear PASSED [ 28%] 263s tests/test_sampling.py::test_rescale_nearest PASSED [ 29%] 263s tests/test_switchbackends.py::TestSwitchBackends::test_default_backend PASSED [ 29%] 263s tests/test_switchbackends.py::TestSwitchBackends::test_no_pop_default_backend PASSED [ 29%] 263s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_invalid PASSED [ 30%] 263s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_numpy PASSED [ 30%] 263s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_opencl SKIPPED [ 30%] 263s tests/test_switchbackends.py::test_backend_with_guard PASSED [ 30%] 263s tests/test_switchbackends.py::test_backend_with_guard_and_exception PASSED [ 31%] 263s tests/test_tfTransform1d.py::test_simple SKIPPED (Tensorflow not pre...) [ 31%] 263s tests/test_tfTransform1d.py::test_simple_with_no_levels SKIPPED (Ten...) [ 31%] 263s tests/test_tfTransform1d.py::test_simple_with_scale SKIPPED (Tensorf...) [ 32%] 263s tests/test_tfTransform1d.py::test_simple_with_scale_and_no_levels SKIPPED [ 32%] 263s tests/test_tfTransform1d.py::test_perfect_recon SKIPPED (Tensorflow ...) [ 32%] 263s tests/test_tfTransform1d.py::test_simple_custom_filter SKIPPED (Tens...) [ 33%] 263s tests/test_tfTransform1d.py::test_single_level SKIPPED (Tensorflow n...) [ 33%] 263s tests/test_tfTransform1d.py::test_non_multiple_of_two SKIPPED (Tenso...) [ 33%] 263s tests/test_tfTransform1d.py::test_2d SKIPPED (Tensorflow not present) [ 33%] 263s tests/test_tfTransform1d.py::test_integer_input SKIPPED (Tensorflow ...) [ 34%] 263s tests/test_tfTransform1d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 34%] 263s tests/test_tfTransform1d.py::test_float32_input SKIPPED (Tensorflow ...) [ 34%] 263s tests/test_tfTransform1d.py::test_reconstruct SKIPPED (Tensorflow no...) [ 35%] 263s tests/test_tfTransform1d.py::test_reconstruct_2d SKIPPED (Tensorflow...) [ 35%] 263s tests/test_tfTransform1d.py::test_float32_input_inv SKIPPED (Tensorf...) [ 35%] 263s tests/test_tfTransform1d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 35%] 263s tests/test_tfTransform1d.py::test_numpy_in_batch SKIPPED (Tensorflow...) [ 36%] 263s tests/test_tfTransform1d.py::test_1d_input SKIPPED (Tensorflow not p...) [ 36%] 263s tests/test_tfTransform1d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 36%] 263s tests/test_tfTransform1d.py::test_3d_input SKIPPED (Tensorflow not p...) [ 37%] 263s tests/test_tfTransform1d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 37%] 263s tests/test_tfTransform1d.py::test_return_type SKIPPED (Tensorflow no...) [ 37%] 263s tests/test_tfTransform1d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 38%] 263s tests/test_tfTransform1d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 38%] 263s tests/test_tfTransform1d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 38%] 263s tests/test_tfTransform1d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 38%] 263s tests/test_tfTransform1d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 39%] 263s tests/test_tfTransform1d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 39%] 263s tests/test_tfTransform1d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 39%] 263s tests/test_tfTransform1d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 40%] 263s tests/test_tfTransform1d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 40%] 263s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 40%] 263s tests/test_tfTransform1d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 41%] 263s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 41%] 263s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 41%] 263s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 41%] 263s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 42%] 263s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 42%] 263s tests/test_tfTransform2d.py::test_mandrill_loaded SKIPPED (Tensorflo...) [ 42%] 263s tests/test_tfTransform2d.py::test_simple SKIPPED (Tensorflow not pre...) [ 43%] 263s tests/test_tfTransform2d.py::test_specific_wavelet SKIPPED (Tensorfl...) [ 43%] 263s tests/test_tfTransform2d.py::test_1d SKIPPED (Tensorflow not present) [ 43%] 263s tests/test_tfTransform2d.py::test_3d SKIPPED (Tensorflow not present) [ 43%] 263s tests/test_tfTransform2d.py::test_simple_w_scale SKIPPED (Tensorflow...) [ 44%] 263s tests/test_tfTransform2d.py::test_odd_rows SKIPPED (Tensorflow not p...) [ 44%] 263s tests/test_tfTransform2d.py::test_odd_rows_w_scale SKIPPED (Tensorfl...) [ 44%] 263s tests/test_tfTransform2d.py::test_odd_cols SKIPPED (Tensorflow not p...) [ 45%] 263s tests/test_tfTransform2d.py::test_odd_cols_w_scale SKIPPED (Tensorfl...) [ 45%] 263s tests/test_tfTransform2d.py::test_odd_rows_and_cols SKIPPED (Tensorf...) [ 45%] 263s tests/test_tfTransform2d.py::test_odd_rows_and_cols_w_scale SKIPPED [ 46%] 263s tests/test_tfTransform2d.py::test_rot_symm_modified SKIPPED (Tensorf...) [ 46%] 263s tests/test_tfTransform2d.py::test_0_levels SKIPPED (Tensorflow not p...) [ 46%] 263s tests/test_tfTransform2d.py::test_0_levels_w_scale SKIPPED (Tensorfl...) [ 46%] 263s tests/test_tfTransform2d.py::test_integer_input SKIPPED (Tensorflow ...) [ 47%] 263s tests/test_tfTransform2d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 47%] 263s tests/test_tfTransform2d.py::test_mandrill_perfect_recon SKIPPED (Te...) [ 47%] 263s tests/test_tfTransform2d.py::test_float32_input SKIPPED (Tensorflow ...) [ 48%] 263s tests/test_tfTransform2d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 48%] 263s tests/test_tfTransform2d.py::test_numpy_in_batch[nhw] SKIPPED (Tenso...) [ 48%] 263s tests/test_tfTransform2d.py::test_numpy_in_batch[chw] SKIPPED (Tenso...) [ 48%] 263s tests/test_tfTransform2d.py::test_numpy_in_batch[hwn] SKIPPED (Tenso...) [ 49%] 263s tests/test_tfTransform2d.py::test_numpy_in_batch[hwc] SKIPPED (Tenso...) [ 49%] 263s tests/test_tfTransform2d.py::test_numpy_batch_ch[nhwc] SKIPPED (Tens...) [ 49%] 263s tests/test_tfTransform2d.py::test_numpy_batch_ch[nchw] SKIPPED (Tens...) [ 50%] 263s tests/test_tfTransform2d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 50%] 263s tests/test_tfTransform2d.py::test_3d_input[nhw] SKIPPED (Tensorflow ...) [ 50%] 263s tests/test_tfTransform2d.py::test_3d_input[hwn] SKIPPED (Tensorflow ...) [ 51%] 263s tests/test_tfTransform2d.py::test_4d_input[nhwc] SKIPPED (Tensorflow...) [ 51%] 263s tests/test_tfTransform2d.py::test_4d_input[nchw] SKIPPED (Tensorflow...) [ 51%] 263s tests/test_tfTransform2d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 51%] 263s tests/test_tfTransform2d.py::test_3d_input_ph SKIPPED (Tensorflow no...) [ 52%] 263s tests/test_tfTransform2d.py::test_4d_input_ph SKIPPED (Tensorflow no...) [ 52%] 263s tests/test_tfTransform2d.py::test_return_type SKIPPED (Tensorflow no...) [ 52%] 263s tests/test_tfTransform2d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 53%] 263s tests/test_tfTransform2d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 53%] 263s tests/test_tfTransform2d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 53%] 263s tests/test_tfTransform2d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 53%] 263s tests/test_tfTransform2d.py::test_results_match[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 54%] 263s tests/test_tfTransform2d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 54%] 263s tests/test_tfTransform2d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 54%] 263s tests/test_tfTransform2d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 55%] 263s tests/test_tfTransform2d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 55%] 263s tests/test_tfTransform2d.py::test_results_match_inverse[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 55%] 263s tests/test_tfTransform2d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 56%] 263s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 56%] 263s tests/test_tfTransform2d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 56%] 263s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 56%] 263s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b_bp-qshift_b_bp-gain_mask4] SKIPPED [ 57%] 263s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 57%] 263s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 57%] 263s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 58%] 263s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 58%] 263s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 58%] 263s tests/test_tfTransform2d.py::test_forward_channels[nhwc] SKIPPED (Te...) [ 58%] 263s tests/test_tfTransform2d.py::test_forward_channels[nchw] SKIPPED (Te...) [ 59%] 263s tests/test_tfTransform2d.py::test_inverse_channels[nhwc] SKIPPED (Te...) [ 59%] 263s tests/test_tfTransform2d.py::test_inverse_channels[nchw] SKIPPED (Te...) [ 59%] 263s tests/test_tfcoldfilt.py::test_setup SKIPPED (Tensorflow not present) [ 60%] 263s tests/test_tfcoldfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 60%] 263s tests/test_tfcoldfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 60%] 263s tests/test_tfcoldfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 61%] 263s tests/test_tfcoldfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 61%] 263s tests/test_tfcoldfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 61%] 264s tests/test_tfcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 61%] 264s tests/test_tfcoldfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 62%] 264s tests/test_tfcoldfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 62%] 264s tests/test_tfcoldfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 62%] 264s tests/test_tfcoldfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 63%] 264s tests/test_tfcolfilter.py::test_setup SKIPPED (Tensorflow not present) [ 63%] 264s tests/test_tfcolfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 63%] 264s tests/test_tfcolfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 64%] 264s tests/test_tfcolfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 64%] 264s tests/test_tfcolfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 64%] 264s tests/test_tfcolfilter.py::test_biort SKIPPED (Tensorflow not present) [ 64%] 264s tests/test_tfcolfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 65%] 264s tests/test_tfcolfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 65%] 264s tests/test_tfcolfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 65%] 264s tests/test_tfcolfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 66%] 264s tests/test_tfcolfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 66%] 264s tests/test_tfcolfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 66%] 264s tests/test_tfcolifilt.py::test_setup SKIPPED (Tensorflow not present) [ 66%] 264s tests/test_tfcolifilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 67%] 264s tests/test_tfcolifilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 67%] 264s tests/test_tfcolifilt.py::test_different_size_h SKIPPED (Tensorflow ...) [ 67%] 264s tests/test_tfcolifilt.py::test_zero_input SKIPPED (Tensorflow not pr...) [ 68%] 264s tests/test_tfcolifilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 68%] 264s tests/test_tfcolifilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 68%] 264s tests/test_tfcolifilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 69%] 264s tests/test_tfcolifilt.py::test_non_orthogonal_input SKIPPED (Tensorf...) [ 69%] 264s tests/test_tfcolifilt.py::test_output_size_non_mult_4 SKIPPED (Tenso...) [ 69%] 264s tests/test_tfcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 69%] 264s tests/test_tfcolifilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 70%] 264s tests/test_tfcolifilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 70%] 264s tests/test_tfcolifilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 70%] 264s tests/test_tfinputshapes.py::test_scales[2-False] SKIPPED (Tensorflo...) [ 71%] 264s tests/test_tfinputshapes.py::test_scales[2-True] SKIPPED (Tensorflow...) [ 71%] 264s tests/test_tfinputshapes.py::test_scales[4-False] SKIPPED (Tensorflo...) [ 71%] 264s tests/test_tfinputshapes.py::test_scales[3-True] SKIPPED (Tensorflow...) [ 71%] 264s tests/test_tfinputshapes.py::test_2d_input_tuple[2-False] SKIPPED (T...) [ 72%] 264s tests/test_tfinputshapes.py::test_2d_input_tuple[2-True] SKIPPED (Te...) [ 72%] 264s tests/test_tfinputshapes.py::test_2d_input_tuple[4-False] SKIPPED (T...) [ 72%] 264s tests/test_tfinputshapes.py::test_2d_input_tuple[3-True] SKIPPED (Te...) [ 73%] 264s tests/test_tfinputshapes.py::test_batch_input[2-False-None] SKIPPED [ 73%] 264s tests/test_tfinputshapes.py::test_batch_input[2-True-10] SKIPPED (Te...) [ 73%] 264s tests/test_tfinputshapes.py::test_batch_input[4-False-None] SKIPPED [ 74%] 264s tests/test_tfinputshapes.py::test_batch_input[3-True-2] SKIPPED (Ten...) [ 74%] 264s tests/test_tfinputshapes.py::test_batch_input_tuple[2-False-None] SKIPPED [ 74%] 264s tests/test_tfinputshapes.py::test_batch_input_tuple[2-True-10] SKIPPED [ 74%] 264s tests/test_tfinputshapes.py::test_batch_input_tuple[4-False-None] SKIPPED [ 75%] 264s tests/test_tfinputshapes.py::test_batch_input_tuple[3-True-2] SKIPPED [ 75%] 264s tests/test_tfinputshapes.py::test_multichannel[2-5] SKIPPED (Tensorf...) [ 75%] 264s tests/test_tfinputshapes.py::test_multichannel[2-2] SKIPPED (Tensorf...) [ 76%] 264s tests/test_tfinputshapes.py::test_multichannel[4-10] SKIPPED (Tensor...) [ 76%] 264s tests/test_tfinputshapes.py::test_multichannel[3-6] SKIPPED (Tensorf...) [ 76%] 264s tests/test_tfrowdfilt.py::test_setup SKIPPED (Tensorflow not present) [ 76%] 264s tests/test_tfrowdfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 77%] 264s tests/test_tfrowdfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 77%] 264s tests/test_tfrowdfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 77%] 264s tests/test_tfrowdfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 78%] 264s tests/test_tfrowdfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 78%] 264s tests/test_tfrowdfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 78%] 264s tests/test_tfrowdfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 79%] 264s tests/test_tfrowdfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 79%] 264s tests/test_tfrowdfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 79%] 264s tests/test_tfrowdfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 79%] 264s tests/test_tfrowfilter.py::test_setup SKIPPED (Tensorflow not present) [ 80%] 264s tests/test_tfrowfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 80%] 264s tests/test_tfrowfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 80%] 264s tests/test_tfrowfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 81%] 264s tests/test_tfrowfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 81%] 264s tests/test_tfrowfilter.py::test_biort SKIPPED (Tensorflow not present) [ 81%] 264s tests/test_tfrowfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 82%] 264s tests/test_tfrowfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 82%] 264s tests/test_tfrowfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 82%] 264s tests/test_tfrowfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 82%] 264s tests/test_tfrowfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 83%] 264s tests/test_tfrowfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 83%] 264s tests/test_utils.py::test_complex_type_for_complex FAILED [ 83%] 264s tests/test_utils.py::test_complex_type_for_float FAILED [ 84%] 264s tests/test_utils.py::test_draw_circ PASSED [ 84%] 264s tests/test_utils.py::test_draw_edge PASSED [ 84%] 264s tests/test_utils.py::test_stacked_2d_matrix_vector_product PASSED [ 84%] 264s tests/test_utils.py::test_stacked_2d_vector_matrix_product PASSED [ 85%] 264s tests/test_utils.py::test_stacked_2d_matrix_matrix_product PASSED [ 85%] 264s tests/test_xfm1.py::test_simple FAILED [ 85%] 264s tests/test_xfm1.py::test_simple_with_no_levels FAILED [ 86%] 264s tests/test_xfm1.py::test_simple_with_scale FAILED [ 86%] 264s tests/test_xfm1.py::test_simple_with_scale_and_no_levels FAILED [ 86%] 264s tests/test_xfm1.py::test_perfect_recon FAILED [ 87%] 264s tests/test_xfm1.py::test_simple_custom_filter FAILED [ 87%] 264s tests/test_xfm1.py::test_single_level FAILED [ 87%] 264s tests/test_xfm1.py::test_non_multiple_of_two FAILED [ 87%] 264s tests/test_xfm1.py::test_2d FAILED [ 88%] 264s tests/test_xfm1.py::test_integer_input FAILED [ 88%] 264s tests/test_xfm1.py::test_integer_perfect_recon FAILED [ 88%] 264s tests/test_xfm1.py::test_float32_input FAILED [ 89%] 264s tests/test_xfm2.py::test_mandrill_loaded PASSED [ 89%] 264s tests/test_xfm2.py::test_simple FAILED [ 89%] 264s tests/test_xfm2.py::test_specific_wavelet FAILED [ 89%] 264s tests/test_xfm2.py::test_1d FAILED [ 90%] 264s tests/test_xfm2.py::test_3d FAILED [ 90%] 264s tests/test_xfm2.py::test_simple_w_scale FAILED [ 90%] 264s tests/test_xfm2.py::test_odd_rows FAILED [ 91%] 264s tests/test_xfm2.py::test_odd_rows_w_scale FAILED [ 91%] 264s tests/test_xfm2.py::test_odd_cols FAILED [ 91%] 264s tests/test_xfm2.py::test_odd_cols_w_scale FAILED [ 92%] 264s tests/test_xfm2.py::test_odd_rows_and_cols FAILED [ 92%] 264s tests/test_xfm2.py::test_odd_rows_and_cols_w_scale FAILED [ 92%] 264s tests/test_xfm2.py::test_rot_symm_modified FAILED [ 92%] 264s tests/test_xfm2.py::test_0_levels FAILED [ 93%] 264s tests/test_xfm2.py::test_0_levels_w_scale FAILED [ 93%] 264s tests/test_xfm2.py::test_integer_input FAILED [ 93%] 264s tests/test_xfm2.py::test_integer_perfect_recon FAILED [ 94%] 264s tests/test_xfm2.py::test_float32_input FAILED [ 94%] 264s tests/test_xfm3.py::test_ellipsoid PASSED [ 94%] 264s tests/test_xfm3.py::test_simple_level_1_xfm FAILED [ 94%] 264s tests/test_xfm3.py::test_simple_level_1_recon FAILED [ 95%] 265s tests/test_xfm3.py::test_simple_level_1_recon_haar FAILED [ 95%] 265s tests/test_xfm3.py::test_simple_level_2_xfm FAILED [ 95%] 265s tests/test_xfm3.py::test_simple_level_2_recon FAILED [ 96%] 265s tests/test_xfm3.py::test_simple_level_4_xfm FAILED [ 96%] 265s tests/test_xfm3.py::test_simple_level_4_recon FAILED [ 96%] 265s tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets FAILED [ 97%] 265s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 FAILED [ 97%] 265s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 FAILED [ 97%] 265s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 FAILED [ 97%] 265s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 FAILED [ 98%] 265s tests/test_xfm3.py::test_integer_input FAILED [ 98%] 265s tests/test_xfm3.py::test_integer_perfect_recon FAILED [ 98%] 265s tests/test_xfm3.py::test_float32_input FAILED [ 99%] 265s tests/test_xfm3.py::test_float32_recon FAILED [ 99%] 265s tests/test_xfm3.py::test_level_4_recon_discarding_level_1 FAILED [ 99%] 265s tests/test_xfm3.py::test_level_4_discarding_level_1 FAILED [100%] 265s 265s =================================== FAILURES =================================== 265s ________________________________ test_coldfilt _________________________________ 265s 265s def test_coldfilt(): 265s h0o, g0o, h1o, g1o = biort('near_sym_b') 265s h0a, h0b, g0a, g0b, h1a, h1b, g1a, g1b = qshift('qshift_d') 265s > A = colifilt(mandrill, g0b, g0a) 265s 265s tests/test_againstmatlab.py:81: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_dtwavexfm2 ________________________________ 265s 265s def test_dtwavexfm2(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill, 4, 'near_sym_a', 'qshift_a', include_scale=True) 265s 265s tests/test_againstmatlab.py:85: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_dtwavexfm2b _______________________________ 265s 265s def test_dtwavexfm2b(): 265s > Yl, Yh, Yscale = dtwavexfm2b(mandrill, 4, 'near_sym_b_bp', 'qshift_b_bp', include_scale=True) 265s 265s tests/test_againstmatlab.py:95: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_rescale_highpass _____________________________ 265s 265s def test_rescale_highpass(): 265s # N.B we can only test bilinear rescaling since cpxinterb2b doesn't support Lanczos 265s > Yl, Yh = dtwavexfm2b(mandrill, 3, 'near_sym_a', 'qshift_a') 265s 265s tests/test_againstmatlab.py:106: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_transform3d_numpy ____________________________ 265s 265s def test_transform3d_numpy(): 265s transform = Transform3d(biort='near_sym_b',qshift='qshift_b') 265s > td_signal = transform.forward(qbgn, nlevels=3, include_scale=True, discard_level_1=False) 265s 265s tests/test_againstmatlab.py:117: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_odd_filter ________________________________ 265s 265s def test_odd_filter(): 265s with raises(ValueError): 265s > coldfilt(mandrill, (-1,2,-1), (-1,2,1)) 265s 265s tests/test_coldfilt.py:22: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_different_size ______________________________ 265s 265s def test_different_size(): 265s with raises(ValueError): 265s > coldfilt(mandrill, (-0.5,-1,2,1,0.5), (-1,2,-1)) 265s 265s tests/test_coldfilt.py:26: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_bad_input_size ______________________________ 265s 265s def test_bad_input_size(): 265s with raises(ValueError): 265s > coldfilt(mandrill[:511,:], (-1,1), (1,-1)) 265s 265s tests/test_coldfilt.py:30: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_good_input_size _____________________________ 265s 265s def test_good_input_size(): 265s > coldfilt(mandrill[:,:511], (-1,1), (1,-1)) 265s 265s tests/test_coldfilt.py:33: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________ test_good_input_size_non_orthogonal ______________________ 265s 265s def test_good_input_size_non_orthogonal(): 265s > coldfilt(mandrill[:,:511], (1,1), (1,1)) 265s 265s tests/test_coldfilt.py:36: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_output_size _______________________________ 265s 265s def test_output_size(): 265s > Y = coldfilt(mandrill, (-1,1), (1,-1)) 265s 265s tests/test_coldfilt.py:39: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________________ test_odd_size _________________________________ 265s 265s def test_odd_size(): 265s > y = colfilter(mandrill, (-1,2,-1)) 265s 265s tests/test_colfilter.py:28: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________________ test_even_size ________________________________ 265s 265s def test_even_size(): 265s > y = colfilter(np.zeros_like(mandrill), (-1,1)) 265s 265s tests/test_colfilter.py:40: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _________________________________ test_qshift __________________________________ 265s 265s def test_qshift(): 265s > y = colfilter(mandrill, qshift('qshift_a')[0]) 265s 265s tests/test_colfilter.py:32: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________________ test_biort __________________________________ 265s 265s def test_biort(): 265s > y = colfilter(mandrill, biort('antonini')[0]) 265s 265s tests/test_colfilter.py:36: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_odd_size_non_array ____________________________ 265s 265s def test_odd_size_non_array(): 265s > y = colfilter(mandrill.tolist(), (-1,2,-1)) 265s 265s tests/test_colfilter.py:45: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_even_size_non_array ___________________________ 265s 265s def test_even_size_non_array(): 265s > y = colfilter(mandrill.tolist(), (-1,1)) 265s 265s tests/test_colfilter.py:49: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_odd_filter ________________________________ 265s 265s def test_odd_filter(): 265s with raises(ValueError): 265s > colifilt(mandrill, (-1,2,-1), (-1,2,1)) 265s 265s tests/test_colifilt.py:22: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_different_size_h _____________________________ 265s 265s def test_different_size_h(): 265s with raises(ValueError): 265s > colifilt(mandrill, (-1,2,1), (-0.5,-1,2,-1,0.5)) 265s 265s tests/test_colifilt.py:26: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_zero_input ________________________________ 265s 265s def test_zero_input(): 265s > Y = colifilt(np.zeros_like(mandrill), (-1,1), (1,-1)) 265s 265s tests/test_colifilt.py:29: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_bad_input_size ______________________________ 265s 265s def test_bad_input_size(): 265s with raises(ValueError): 265s > colifilt(mandrill[:511,:], (-1,1), (1,-1)) 265s 265s tests/test_colifilt.py:34: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_good_input_size _____________________________ 265s 265s def test_good_input_size(): 265s > colifilt(mandrill[:,:511], (-1,1), (1,-1)) 265s 265s tests/test_colifilt.py:37: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_output_size _______________________________ 265s 265s def test_output_size(): 265s > Y = colifilt(mandrill, (-1,1), (1,-1)) 265s 265s tests/test_colifilt.py:40: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_non_orthogonal_input ___________________________ 265s 265s def test_non_orthogonal_input(): 265s > Y = colifilt(mandrill, (1,1), (1,1)) 265s 265s tests/test_colifilt.py:44: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _________________________ test_output_size_non_mult_4 __________________________ 265s 265s def test_output_size_non_mult_4(): 265s > Y = colifilt(mandrill, (-1,0,0,1), (1,0,0,-1)) 265s 265s tests/test_colifilt.py:48: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________ test_non_orthogonal_input_non_mult_4 _____________________ 265s 265s def test_non_orthogonal_input_non_mult_4(): 265s > Y = colifilt(mandrill, (1,0,0,1), (1,0,0,1)) 265s 265s tests/test_colifilt.py:52: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_reconstruct _______________________________ 265s 265s def test_reconstruct(): 265s # Reconstruction up to tolerance 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec) 265s 265s tests/test_ifm1.py:12: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_reconstruct_2d ______________________________ 265s 265s def test_reconstruct_2d(): 265s # Reconstruction up to tolerance 265s vec = np.random.rand(630, 20) 265s > Yl, Yh = dtwavexfm(vec) 265s 265s tests/test_ifm1.py:19: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_input ______________________________ 265s 265s def test_float32_input(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm(np.array([1, 2, 3, 4]).astype(np.float32)) 265s 265s tests/test_ifm1.py:25: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_reconstruct _______________________________ 265s 265s def test_reconstruct(): 265s # Reconstruction up to tolerance 265s > Yl, Yh = dtwavexfm2(mandrill) 265s 265s tests/test_ifm2.py:23: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_reconstruct_crop _____________________________ 265s 265s def test_reconstruct_crop(): 265s # Reconstruction up to tolerance 265s > Yl_crop, Yh_crop = dtwavexfm2(mandrill_crop) 265s 265s tests/test_ifm2.py:29: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________ test_reconstruct_custom_filter ________________________ 265s 265s def test_reconstruct_custom_filter(): 265s # Reconstruction up to tolerance 265s > Yl, Yh = dtwavexfm2(mandrill, 4, biort('legall'), qshift('qshift_06')) 265s 265s tests/test_ifm2.py:35: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_input ______________________________ 265s 265s def test_float32_input(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 265s 265s tests/test_ifm2.py:41: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________________ test_estimatereg _______________________________ 265s 265s def test_estimatereg(): 265s nlevels = 6 265s trans = Transform2d() 265s > t1 = trans.forward(f1, nlevels=nlevels) 265s 265s tests/test_registration.py:29: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________ test_complex_type_for_complex _________________________ 265s 265s def test_complex_type_for_complex(): 265s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.complex64)), np.complex64) 265s 265s tests/test_utils.py:8: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'issubsctype' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _________________________ test_complex_type_for_float __________________________ 265s 265s def test_complex_type_for_float(): 265s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.float32)), np.complex64) 265s 265s tests/test_utils.py:12: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'issubsctype' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _________________________________ test_simple __________________________________ 265s 265s def test_simple(): 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec, 3) 265s 265s tests/test_xfm1.py:12: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_simple_with_no_levels __________________________ 265s 265s def test_simple_with_no_levels(): 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec, 0) 265s 265s tests/test_xfm1.py:17: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_simple_with_scale ____________________________ 265s 265s def test_simple_with_scale(): 265s vec = np.random.rand(630) 265s > Yl, Yh, Yscale = dtwavexfm(vec, 3, include_scale=True) 265s 265s tests/test_xfm1.py:22: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________ test_simple_with_scale_and_no_levels _____________________ 265s 265s def test_simple_with_scale_and_no_levels(): 265s vec = np.random.rand(630) 265s > Yl, Yh, Yscale = dtwavexfm(vec, 0, include_scale=True) 265s 265s tests/test_xfm1.py:28: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_perfect_recon ______________________________ 265s 265s def test_perfect_recon(): 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec) 265s 265s tests/test_xfm1.py:34: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_simple_custom_filter ___________________________ 265s 265s def test_simple_custom_filter(): 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec, 4, biort('legall'), qshift('qshift_06')) 265s 265s tests/test_xfm1.py:40: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_single_level _______________________________ 265s 265s def test_single_level(): 265s vec = np.random.rand(630) 265s > Yl, Yh = dtwavexfm(vec, 1) 265s 265s tests/test_xfm1.py:46: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_non_multiple_of_two ___________________________ 265s 265s def test_non_multiple_of_two(): 265s vec = np.random.rand(631) 265s with raises(ValueError): 265s > Yl, Yh = dtwavexfm(vec, 1) 265s 265s tests/test_xfm1.py:51: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________________ test_2d ____________________________________ 265s 265s def test_2d(): 265s > Yl, Yh = dtwavexfm(np.random.rand(10,10)) 265s 265s tests/test_xfm1.py:54: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_integer_input ______________________________ 265s 265s def test_integer_input(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array 265s > Yl, Yh = dtwavexfm([1,2,3,4]) 265s 265s tests/test_xfm1.py:59: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_integer_perfect_recon __________________________ 265s 265s def test_integer_perfect_recon(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array and reconstructed 265s A = np.array([1,2,3,4], dtype=np.int32) 265s > Yl, Yh = dtwavexfm(A) 265s 265s tests/test_xfm1.py:66: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_input ______________________________ 265s 265s def test_float32_input(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm(np.array([1,2,3,4]).astype(np.float32)) 265s 265s tests/test_xfm1.py:72: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 265s X = asfarray(X) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _________________________________ test_simple __________________________________ 265s 265s def test_simple(): 265s > Yl, Yh = dtwavexfm2(mandrill) 265s 265s tests/test_xfm2.py:22: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_specific_wavelet _____________________________ 265s 265s def test_specific_wavelet(): 265s > Yl, Yh = dtwavexfm2(mandrill, biort=biort('antonini'), qshift=qshift('qshift_06')) 265s 265s tests/test_xfm2.py:25: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________________ test_1d ____________________________________ 265s 265s def test_1d(): 265s > Yl, Yh = dtwavexfm2(mandrill[0,:]) 265s 265s tests/test_xfm2.py:28: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________________ test_3d ____________________________________ 265s 265s def test_3d(): 265s with raises(ValueError): 265s > Yl, Yh = dtwavexfm2(np.dstack((mandrill, mandrill))) 265s 265s tests/test_xfm2.py:32: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________________ test_simple_w_scale ______________________________ 265s 265s def test_simple_w_scale(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill, include_scale=True) 265s 265s tests/test_xfm2.py:35: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________________ test_odd_rows _________________________________ 265s 265s def test_odd_rows(): 265s > Yl, Yh = dtwavexfm2(mandrill[:509,:]) 265s 265s tests/test_xfm2.py:42: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_odd_rows_w_scale _____________________________ 265s 265s def test_odd_rows_w_scale(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:], include_scale=True) 265s 265s tests/test_xfm2.py:45: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________________ test_odd_cols _________________________________ 265s 265s def test_odd_cols(): 265s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 265s 265s tests/test_xfm2.py:48: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_odd_cols_w_scale _____________________________ 265s 265s def test_odd_cols_w_scale(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 265s 265s tests/test_xfm2.py:51: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_odd_rows_and_cols ____________________________ 265s 265s def test_odd_rows_and_cols(): 265s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 265s 265s tests/test_xfm2.py:54: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________ test_odd_rows_and_cols_w_scale ________________________ 265s 265s def test_odd_rows_and_cols_w_scale(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 265s 265s tests/test_xfm2.py:57: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_rot_symm_modified ____________________________ 265s 265s def test_rot_symm_modified(): 265s # This test only checks there is no error running these functions, not that they work 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill, biort='near_sym_b_bp', qshift='qshift_b_bp', include_scale=True) 265s 265s tests/test_xfm2.py:61: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________________ test_0_levels _________________________________ 265s 265s def test_0_levels(): 265s > Yl, Yh = dtwavexfm2(mandrill, nlevels=0) 265s 265s tests/test_xfm2.py:65: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________________ test_0_levels_w_scale _____________________________ 265s 265s def test_0_levels_w_scale(): 265s > Yl, Yh, Yscale = dtwavexfm2(mandrill, nlevels=0, include_scale=True) 265s 265s tests/test_xfm2.py:70: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_integer_input ______________________________ 265s 265s def test_integer_input(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array 265s > Yl, Yh = dtwavexfm2([[1,2,3,4], [1,2,3,4]]) 265s 265s tests/test_xfm2.py:78: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_integer_perfect_recon __________________________ 265s 265s def test_integer_perfect_recon(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array and reconstructed 265s A = np.array([[1,2,3,4], [5,6,7,8]], dtype=np.int32) 265s > Yl, Yh = dtwavexfm2(A) 265s 265s tests/test_xfm2.py:85: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_input ______________________________ 265s 265s def test_float32_input(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 265s 265s tests/test_xfm2.py:91: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 265s res = trans.forward(X, nlevels, include_scale) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 265s X = np.atleast_2d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_simple_level_1_xfm ____________________________ 265s 265s def test_simple_level_1_xfm(): 265s # Just tests that the transform broadly works and gives expected size output 265s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 265s 265s tests/test_xfm3.py:31: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_simple_level_1_recon ___________________________ 265s 265s def test_simple_level_1_recon(): 265s # Test for perfect reconstruction with 1 level 265s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 265s 265s tests/test_xfm3.py:37: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ________________________ test_simple_level_1_recon_haar ________________________ 265s 265s def test_simple_level_1_recon_haar(): 265s # Test for perfect reconstruction with 1 level and Haar wavelets 265s 265s # Form Haar wavelets 265s h0 = np.array((1.0, 1.0)) 265s g0 = h0 265s h0 = h0 / np.sum(h0) 265s g0 = g0 / np.sum(g0) 265s h1 = g0 * np.cumprod(-np.ones_like(g0)) 265s g1 = -h0 * np.cumprod(-np.ones_like(h0)) 265s 265s haar = (h0, g0, h1, g1) 265s 265s > Yl, Yh = dtwavexfm3(ellipsoid, 1, biort=haar) 265s 265s tests/test_xfm3.py:55: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_simple_level_2_xfm ____________________________ 265s 265s def test_simple_level_2_xfm(): 265s # Just tests that the transform broadly works and gives expected size output 265s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 265s 265s tests/test_xfm3.py:62: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_simple_level_2_recon ___________________________ 265s 265s def test_simple_level_2_recon(): 265s # Test for perfect reconstruction with 2 levels 265s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 265s 265s tests/test_xfm3.py:68: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ___________________________ test_simple_level_4_xfm ____________________________ 265s 265s def test_simple_level_4_xfm(): 265s # Just tests that the transform broadly works and gives expected size output 265s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 265s 265s tests/test_xfm3.py:75: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_simple_level_4_recon ___________________________ 265s 265s def test_simple_level_4_recon(): 265s # Test for perfect reconstruction with 3 levels 265s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 265s 265s tests/test_xfm3.py:81: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________ test_simple_level_4_recon_custom_wavelets ___________________ 265s 265s def test_simple_level_4_recon_custom_wavelets(): 265s # Test for perfect reconstruction with 3 levels 265s b = biort('legall') 265s q = qshift('qshift_06') 265s > Yl, Yh = dtwavexfm3(ellipsoid, 4, biort=b, qshift=q) 265s 265s tests/test_xfm3.py:90: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________ test_simple_level_4_xfm_ext_mode_8 ______________________ 265s 265s def test_simple_level_4_xfm_ext_mode_8(): 265s # Just tests that the transform broadly works and gives expected size output 265s crop_ellipsoid = ellipsoid[:62,:58,:54] 265s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 265s 265s tests/test_xfm3.py:98: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________ test_simple_level_4_recon_ext_mode_8 _____________________ 265s 265s def test_simple_level_4_recon_ext_mode_8(): 265s # Test for perfect reconstruction with 3 levels 265s crop_ellipsoid = ellipsoid[:62,:58,:54] 265s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 265s 265s tests/test_xfm3.py:104: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________ test_simple_level_4_xfm_ext_mode_4 ______________________ 265s 265s def test_simple_level_4_xfm_ext_mode_4(): 265s # Just tests that the transform broadly works and gives expected size output 265s crop_ellipsoid = ellipsoid[:62,:54,:58] 265s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 265s 265s tests/test_xfm3.py:112: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _____________________ test_simple_level_4_recon_ext_mode_4 _____________________ 265s 265s def test_simple_level_4_recon_ext_mode_4(): 265s # Test for perfect reconstruction with 3 levels 265s crop_ellipsoid = ellipsoid[:62,:54,:58] 265s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 265s 265s tests/test_xfm3.py:118: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_integer_input ______________________________ 265s 265s def test_integer_input(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array 265s > Yl, Yh = dtwavexfm3(np.ones((4,4,4), dtype=int)) 265s 265s tests/test_xfm3.py:126: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s __________________________ test_integer_perfect_recon __________________________ 265s 265s def test_integer_perfect_recon(): 265s # Check that an integer input is correctly coerced into a floating point 265s # array and reconstructed 265s A = (np.random.random((4,4,4)) * 5).astype(np.int32) 265s > Yl, Yh = dtwavexfm3(A) 265s 265s tests/test_xfm3.py:133: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_input ______________________________ 265s 265s def test_float32_input(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 265s 265s tests/test_xfm3.py:139: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ______________________________ test_float32_recon ______________________________ 265s 265s def test_float32_recon(): 265s # Check that an float32 input is correctly output as float32 265s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 265s 265s tests/test_xfm3.py:145: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s ____________________ test_level_4_recon_discarding_level_1 _____________________ 265s 265s def test_level_4_recon_discarding_level_1(): 265s # Test for non-perfect but reasonable reconstruction 265s > Yl, Yh = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 265s 265s tests/test_xfm3.py:154: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s _______________________ test_level_4_discarding_level_1 ________________________ 265s 265s def test_level_4_discarding_level_1(): 265s # Test that level >= 2 highpasses are identical 265s > Yl1, Yh1 = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 265s 265s tests/test_xfm3.py:163: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 265s res = trans.forward(X, nlevels, include_scale, discard_level_1) 265s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 265s X = np.atleast_3d(asfarray(X)) 265s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 265s return np.asfarray(X, dtype=X.dtype) 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s attr = 'asfarray' 265s 265s def __getattr__(attr): 265s # Warn for expired attributes 265s import warnings 265s 265s if attr == "linalg": 265s import numpy.linalg as linalg 265s return linalg 265s elif attr == "fft": 265s import numpy.fft as fft 265s return fft 265s elif attr == "dtypes": 265s import numpy.dtypes as dtypes 265s return dtypes 265s elif attr == "random": 265s import numpy.random as random 265s return random 265s elif attr == "polynomial": 265s import numpy.polynomial as polynomial 265s return polynomial 265s elif attr == "ma": 265s import numpy.ma as ma 265s return ma 265s elif attr == "ctypeslib": 265s import numpy.ctypeslib as ctypeslib 265s return ctypeslib 265s elif attr == "exceptions": 265s import numpy.exceptions as exceptions 265s return exceptions 265s elif attr == "testing": 265s import numpy.testing as testing 265s return testing 265s elif attr == "matlib": 265s import numpy.matlib as matlib 265s return matlib 265s elif attr == "f2py": 265s import numpy.f2py as f2py 265s return f2py 265s elif attr == "typing": 265s import numpy.typing as typing 265s return typing 265s elif attr == "rec": 265s import numpy.rec as rec 265s return rec 265s elif attr == "char": 265s import numpy.char as char 265s return char 265s elif attr == "array_api": 265s raise AttributeError("`numpy.array_api` is not available from " 265s "numpy 2.0 onwards", name=None) 265s elif attr == "core": 265s import numpy.core as core 265s return core 265s elif attr == "strings": 265s import numpy.strings as strings 265s return strings 265s elif attr == "distutils": 265s if 'distutils' in __numpy_submodules__: 265s import numpy.distutils as distutils 265s return distutils 265s else: 265s raise AttributeError("`numpy.distutils` is not available from " 265s "Python 3.12 onwards", name=None) 265s 265s if attr in __future_scalars__: 265s # And future warnings for those that will change, but also give 265s # the AttributeError 265s warnings.warn( 265s f"In the future `np.{attr}` will be defined as the " 265s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 265s 265s if attr in __former_attrs__: 265s raise AttributeError(__former_attrs__[attr], name=None) 265s 265s if attr in __expired_attributes__: 265s > raise AttributeError( 265s f"`np.{attr}` was removed in the NumPy 2.0 release. " 265s f"{__expired_attributes__[attr]}", 265s name=None 265s ) 265s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 265s 265s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 265s =========================== short test summary info ============================ 265s FAILED tests/test_againstmatlab.py::test_coldfilt - AttributeError: `np.asfar... 265s FAILED tests/test_againstmatlab.py::test_dtwavexfm2 - AttributeError: `np.asf... 265s FAILED tests/test_againstmatlab.py::test_dtwavexfm2b - AttributeError: `np.as... 265s FAILED tests/test_againstmatlab.py::test_rescale_highpass - AttributeError: `... 265s FAILED tests/test_againstmatlab.py::test_transform3d_numpy - AttributeError: ... 265s FAILED tests/test_coldfilt.py::test_odd_filter - AttributeError: `np.asfarray... 265s FAILED tests/test_coldfilt.py::test_different_size - AttributeError: `np.asfa... 265s FAILED tests/test_coldfilt.py::test_bad_input_size - AttributeError: `np.asfa... 265s FAILED tests/test_coldfilt.py::test_good_input_size - AttributeError: `np.asf... 265s FAILED tests/test_coldfilt.py::test_good_input_size_non_orthogonal - Attribut... 265s FAILED tests/test_coldfilt.py::test_output_size - AttributeError: `np.asfarra... 265s FAILED tests/test_colfilter.py::test_odd_size - AttributeError: `np.asfarray`... 265s FAILED tests/test_colfilter.py::test_even_size - AttributeError: `np.asfarray... 265s FAILED tests/test_colfilter.py::test_qshift - AttributeError: `np.asfarray` w... 265s FAILED tests/test_colfilter.py::test_biort - AttributeError: `np.asfarray` wa... 265s FAILED tests/test_colfilter.py::test_odd_size_non_array - AttributeError: `np... 265s FAILED tests/test_colfilter.py::test_even_size_non_array - AttributeError: `n... 265s FAILED tests/test_colifilt.py::test_odd_filter - AttributeError: `np.asfarray... 265s FAILED tests/test_colifilt.py::test_different_size_h - AttributeError: `np.as... 265s FAILED tests/test_colifilt.py::test_zero_input - AttributeError: `np.asfarray... 265s FAILED tests/test_colifilt.py::test_bad_input_size - AttributeError: `np.asfa... 265s FAILED tests/test_colifilt.py::test_good_input_size - AttributeError: `np.asf... 265s FAILED tests/test_colifilt.py::test_output_size - AttributeError: `np.asfarra... 265s FAILED tests/test_colifilt.py::test_non_orthogonal_input - AttributeError: `n... 265s FAILED tests/test_colifilt.py::test_output_size_non_mult_4 - AttributeError: ... 265s FAILED tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 - Attribu... 265s FAILED tests/test_ifm1.py::test_reconstruct - AttributeError: `np.asfarray` w... 265s FAILED tests/test_ifm1.py::test_reconstruct_2d - AttributeError: `np.asfarray... 265s FAILED tests/test_ifm1.py::test_float32_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_ifm2.py::test_reconstruct - AttributeError: `np.asfarray` w... 265s FAILED tests/test_ifm2.py::test_reconstruct_crop - AttributeError: `np.asfarr... 265s FAILED tests/test_ifm2.py::test_reconstruct_custom_filter - AttributeError: `... 265s FAILED tests/test_ifm2.py::test_float32_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_registration.py::test_estimatereg - AttributeError: `np.asf... 265s FAILED tests/test_utils.py::test_complex_type_for_complex - AttributeError: `... 265s FAILED tests/test_utils.py::test_complex_type_for_float - AttributeError: `np... 265s FAILED tests/test_xfm1.py::test_simple - AttributeError: `np.asfarray` was re... 265s FAILED tests/test_xfm1.py::test_simple_with_no_levels - AttributeError: `np.a... 265s FAILED tests/test_xfm1.py::test_simple_with_scale - AttributeError: `np.asfar... 265s FAILED tests/test_xfm1.py::test_simple_with_scale_and_no_levels - AttributeEr... 265s FAILED tests/test_xfm1.py::test_perfect_recon - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm1.py::test_simple_custom_filter - AttributeError: `np.as... 265s FAILED tests/test_xfm1.py::test_single_level - AttributeError: `np.asfarray` ... 265s FAILED tests/test_xfm1.py::test_non_multiple_of_two - AttributeError: `np.asf... 265s FAILED tests/test_xfm1.py::test_2d - AttributeError: `np.asfarray` was remove... 265s FAILED tests/test_xfm1.py::test_integer_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm1.py::test_integer_perfect_recon - AttributeError: `np.a... 265s FAILED tests/test_xfm1.py::test_float32_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm2.py::test_simple - AttributeError: `np.asfarray` was re... 265s FAILED tests/test_xfm2.py::test_specific_wavelet - AttributeError: `np.asfarr... 265s FAILED tests/test_xfm2.py::test_1d - AttributeError: `np.asfarray` was remove... 265s FAILED tests/test_xfm2.py::test_3d - AttributeError: `np.asfarray` was remove... 265s FAILED tests/test_xfm2.py::test_simple_w_scale - AttributeError: `np.asfarray... 265s FAILED tests/test_xfm2.py::test_odd_rows - AttributeError: `np.asfarray` was ... 265s FAILED tests/test_xfm2.py::test_odd_rows_w_scale - AttributeError: `np.asfarr... 265s FAILED tests/test_xfm2.py::test_odd_cols - AttributeError: `np.asfarray` was ... 265s FAILED tests/test_xfm2.py::test_odd_cols_w_scale - AttributeError: `np.asfarr... 265s FAILED tests/test_xfm2.py::test_odd_rows_and_cols - AttributeError: `np.asfar... 265s FAILED tests/test_xfm2.py::test_odd_rows_and_cols_w_scale - AttributeError: `... 265s FAILED tests/test_xfm2.py::test_rot_symm_modified - AttributeError: `np.asfar... 265s FAILED tests/test_xfm2.py::test_0_levels - AttributeError: `np.asfarray` was ... 265s FAILED tests/test_xfm2.py::test_0_levels_w_scale - AttributeError: `np.asfarr... 265s FAILED tests/test_xfm2.py::test_integer_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm2.py::test_integer_perfect_recon - AttributeError: `np.a... 265s FAILED tests/test_xfm2.py::test_float32_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm3.py::test_simple_level_1_xfm - AttributeError: `np.asfa... 265s FAILED tests/test_xfm3.py::test_simple_level_1_recon - AttributeError: `np.as... 265s FAILED tests/test_xfm3.py::test_simple_level_1_recon_haar - AttributeError: `... 265s FAILED tests/test_xfm3.py::test_simple_level_2_xfm - AttributeError: `np.asfa... 265s FAILED tests/test_xfm3.py::test_simple_level_2_recon - AttributeError: `np.as... 265s FAILED tests/test_xfm3.py::test_simple_level_4_xfm - AttributeError: `np.asfa... 265s FAILED tests/test_xfm3.py::test_simple_level_4_recon - AttributeError: `np.as... 265s FAILED tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets - Attrib... 265s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 - AttributeErro... 265s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 - AttributeEr... 265s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 - AttributeErro... 265s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 - AttributeEr... 265s FAILED tests/test_xfm3.py::test_integer_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm3.py::test_integer_perfect_recon - AttributeError: `np.a... 265s FAILED tests/test_xfm3.py::test_float32_input - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm3.py::test_float32_recon - AttributeError: `np.asfarray`... 265s FAILED tests/test_xfm3.py::test_level_4_recon_discarding_level_1 - AttributeE... 265s FAILED tests/test_xfm3.py::test_level_4_discarding_level_1 - AttributeError: ... 265s ================== 83 failed, 42 passed, 214 skipped in 4.49s ================== 266s autopkgtest [00:05:37]: test command1: -----------------------] 266s command1 FAIL non-zero exit status 1 266s autopkgtest [00:05:37]: test command1: - - - - - - - - - - results - - - - - - - - - - 267s autopkgtest [00:05:38]: @@@@@@@@@@@@@@@@@@@@ summary 267s command1 FAIL non-zero exit status 1 272s nova [W] Using flock in prodstack6-arm64 272s Creating nova instance adt-plucky-arm64-python-dtcwt-20250221-000111-juju-7f2275-prod-proposed-migration-environment-15-db03a3a7-1b34-4041-9328-c351d791b004 from image adt/ubuntu-plucky-arm64-server-20250220.img (UUID 397b70ef-022d-4aca-a546-c65dd921737c)... 272s nova [W] Timed out waiting for 0e3bde17-2608-43a5-8d1a-4c0b196a96eb to get deleted.