0s autopkgtest [01:05:48]: starting date and time: 2025-02-21 01:05:48+0000 0s autopkgtest [01:05:48]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [01:05:48]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work._rnpfo1k/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:numpy --apt-upgrade python-dtcwt --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=numpy/1:2.2.3+ds-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor builder-cpu2-ram4-disk20 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-3.secgroup --name adt-plucky-i386-python-dtcwt-20250221-010548-juju-7f2275-prod-proposed-migration-environment-2-5905cfbb-879c-4c7e-a4fa-bbb61d14c52d --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-amd64 -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/ 50s autopkgtest [01:06:38]: testbed dpkg architecture: amd64 51s autopkgtest [01:06:39]: testbed apt version: 2.9.30 51s autopkgtest [01:06:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 51s autopkgtest [01:06:39]: testbed release detected to be: None 52s autopkgtest [01:06:40]: updating testbed package index (apt update) 52s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 53s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 53s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 53s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 53s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [732 kB] 53s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.8 kB] 53s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 53s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [91.8 kB] 53s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [138 kB] 53s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [110 kB] 53s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [7984 B] 53s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/restricted i386 Packages [2412 B] 53s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [266 kB] 53s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [697 kB] 53s Get:15 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [9128 B] 53s Get:16 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [22.5 kB] 53s Fetched 2205 kB in 1s (2366 kB/s) 54s Reading package lists... 55s Reading package lists... 55s Building dependency tree... 55s Reading state information... 55s Calculating upgrade... 55s The following package was automatically installed and is no longer required: 55s libapt-pkg6.0t64 55s Use 'sudo apt autoremove' to remove it. 55s The following NEW packages will be installed: 55s libjemalloc2 55s The following packages will be upgraded: 55s apparmor apt apt-utils bind9-dnsutils bind9-host bind9-libs binutils 55s binutils-common binutils-x86-64-linux-gnu cryptsetup-bin fwupd 55s inetutils-telnet kbd libapparmor1 libapt-pkg7.0 libbinutils libcryptsetup12 55s libctf-nobfd0 libctf0 libfwupd3 libgprofng0 libplymouth5 libsframe1 55s libssl3t64 openssl openssl-provider-legacy plymouth 55s plymouth-theme-ubuntu-text python3-requests telnet tmux ubuntu-pro-client 55s ubuntu-pro-client-l10n 55s 33 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 55s Need to get 19.8 MB of archives. 55s After this operation, 1319 kB of additional disk space will be used. 55s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 openssl-provider-legacy amd64 3.4.1-1ubuntu1 [38.8 kB] 55s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 libssl3t64 amd64 3.4.1-1ubuntu1 [2334 kB] 56s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libapt-pkg7.0 amd64 2.9.30ubuntu1 [1132 kB] 56s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 apt amd64 2.9.30ubuntu1 [1436 kB] 56s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 apt-utils amd64 2.9.30ubuntu1 [222 kB] 56s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 kbd amd64 2.7.1-2ubuntu1 [242 kB] 56s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 libapparmor1 amd64 4.1.0~beta5-0ubuntu4 [54.6 kB] 56s Get:8 http://ftpmaster.internal/ubuntu plucky/main amd64 openssl amd64 3.4.1-1ubuntu1 [1189 kB] 56s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 ubuntu-pro-client-l10n amd64 34.1.3 [18.3 kB] 56s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 ubuntu-pro-client amd64 34.1.3 [241 kB] 56s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 apparmor amd64 4.1.0~beta5-0ubuntu4 [700 kB] 56s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 libjemalloc2 amd64 5.3.0-2build1 [256 kB] 56s Get:13 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-dnsutils amd64 1:9.20.4-3ubuntu1 [169 kB] 56s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-host amd64 1:9.20.4-3ubuntu1 [51.9 kB] 56s Get:15 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-libs amd64 1:9.20.4-3ubuntu1 [1380 kB] 56s Get:16 http://ftpmaster.internal/ubuntu plucky/main amd64 inetutils-telnet amd64 2:2.5-6ubuntu1 [116 kB] 56s Get:17 http://ftpmaster.internal/ubuntu plucky/main amd64 libplymouth5 amd64 24.004.60-2ubuntu5 [146 kB] 56s Get:18 http://ftpmaster.internal/ubuntu plucky/main amd64 plymouth-theme-ubuntu-text amd64 24.004.60-2ubuntu5 [10.3 kB] 56s Get:19 http://ftpmaster.internal/ubuntu plucky/main amd64 plymouth amd64 24.004.60-2ubuntu5 [140 kB] 56s Get:20 http://ftpmaster.internal/ubuntu plucky/main amd64 telnet all 0.17+2.5-6ubuntu1 [3694 B] 56s Get:21 http://ftpmaster.internal/ubuntu plucky/main amd64 libgprofng0 amd64 2.44-2ubuntu1 [885 kB] 56s Get:22 http://ftpmaster.internal/ubuntu plucky/main amd64 libctf0 amd64 2.44-2ubuntu1 [96.5 kB] 56s Get:23 http://ftpmaster.internal/ubuntu plucky/main amd64 libctf-nobfd0 amd64 2.44-2ubuntu1 [98.9 kB] 56s Get:24 http://ftpmaster.internal/ubuntu plucky/main amd64 binutils-x86-64-linux-gnu amd64 2.44-2ubuntu1 [1108 kB] 56s Get:25 http://ftpmaster.internal/ubuntu plucky/main amd64 libbinutils amd64 2.44-2ubuntu1 [585 kB] 56s Get:26 http://ftpmaster.internal/ubuntu plucky/main amd64 binutils amd64 2.44-2ubuntu1 [208 kB] 56s Get:27 http://ftpmaster.internal/ubuntu plucky/main amd64 binutils-common amd64 2.44-2ubuntu1 [215 kB] 56s Get:28 http://ftpmaster.internal/ubuntu plucky/main amd64 libsframe1 amd64 2.44-2ubuntu1 [14.9 kB] 56s Get:29 http://ftpmaster.internal/ubuntu plucky/main amd64 libcryptsetup12 amd64 2:2.7.5-1ubuntu2 [321 kB] 56s Get:30 http://ftpmaster.internal/ubuntu plucky/main amd64 cryptsetup-bin amd64 2:2.7.5-1ubuntu2 [222 kB] 56s Get:31 http://ftpmaster.internal/ubuntu plucky/main amd64 fwupd amd64 2.0.6-3 [5408 kB] 57s Get:32 http://ftpmaster.internal/ubuntu plucky/main amd64 libfwupd3 amd64 2.0.6-3 [136 kB] 57s Get:33 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-requests all 2.32.3+dfsg-4ubuntu1 [52.9 kB] 57s Get:34 http://ftpmaster.internal/ubuntu plucky/main amd64 tmux amd64 3.5a-3 [564 kB] 57s Preconfiguring packages ... 57s Fetched 19.8 MB in 1s (13.7 MB/s) 57s (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 ... 109023 files and directories currently installed.) 57s Preparing to unpack .../openssl-provider-legacy_3.4.1-1ubuntu1_amd64.deb ... 57s Unpacking openssl-provider-legacy (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 57s Setting up openssl-provider-legacy (3.4.1-1ubuntu1) ... 57s (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 ... 109023 files and directories currently installed.) 57s Preparing to unpack .../libssl3t64_3.4.1-1ubuntu1_amd64.deb ... 57s Unpacking libssl3t64:amd64 (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 57s Setting up libssl3t64:amd64 (3.4.1-1ubuntu1) ... 57s (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 ... 109023 files and directories currently installed.) 57s Preparing to unpack .../libapt-pkg7.0_2.9.30ubuntu1_amd64.deb ... 57s Unpacking libapt-pkg7.0:amd64 (2.9.30ubuntu1) over (2.9.30) ... 57s Setting up libapt-pkg7.0:amd64 (2.9.30ubuntu1) ... 58s (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 ... 109023 files and directories currently installed.) 58s Preparing to unpack .../apt_2.9.30ubuntu1_amd64.deb ... 58s Unpacking apt (2.9.30ubuntu1) over (2.9.30) ... 58s Setting up apt (2.9.30ubuntu1) ... 58s (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 ... 109023 files and directories currently installed.) 58s Preparing to unpack .../00-apt-utils_2.9.30ubuntu1_amd64.deb ... 58s Unpacking apt-utils (2.9.30ubuntu1) over (2.9.30) ... 58s Preparing to unpack .../01-kbd_2.7.1-2ubuntu1_amd64.deb ... 58s Unpacking kbd (2.7.1-2ubuntu1) over (2.6.4-2ubuntu3) ... 58s Preparing to unpack .../02-libapparmor1_4.1.0~beta5-0ubuntu4_amd64.deb ... 58s Unpacking libapparmor1:amd64 (4.1.0~beta5-0ubuntu4) over (4.1.0~beta5-0ubuntu2) ... 58s Preparing to unpack .../03-openssl_3.4.1-1ubuntu1_amd64.deb ... 58s Unpacking openssl (3.4.1-1ubuntu1) over (3.4.0-1ubuntu2) ... 58s Preparing to unpack .../04-ubuntu-pro-client-l10n_34.1.3_amd64.deb ... 58s Unpacking ubuntu-pro-client-l10n (34.1.3) over (34.1.2) ... 58s Preparing to unpack .../05-ubuntu-pro-client_34.1.3_amd64.deb ... 59s /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. 59s for fn in glob1(directory, "%s.*" % fname): 59s Unpacking ubuntu-pro-client (34.1.3) over (34.1.2) ... 59s Preparing to unpack .../06-apparmor_4.1.0~beta5-0ubuntu4_amd64.deb ... 59s Unpacking apparmor (4.1.0~beta5-0ubuntu4) over (4.1.0~beta5-0ubuntu2) ... 59s Selecting previously unselected package libjemalloc2:amd64. 59s Preparing to unpack .../07-libjemalloc2_5.3.0-2build1_amd64.deb ... 59s Unpacking libjemalloc2:amd64 (5.3.0-2build1) ... 60s Preparing to unpack .../08-bind9-dnsutils_1%3a9.20.4-3ubuntu1_amd64.deb ... 60s Unpacking bind9-dnsutils (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 60s Preparing to unpack .../09-bind9-host_1%3a9.20.4-3ubuntu1_amd64.deb ... 60s Unpacking bind9-host (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 60s Preparing to unpack .../10-bind9-libs_1%3a9.20.4-3ubuntu1_amd64.deb ... 60s Unpacking bind9-libs:amd64 (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 60s Preparing to unpack .../11-inetutils-telnet_2%3a2.5-6ubuntu1_amd64.deb ... 60s Unpacking inetutils-telnet (2:2.5-6ubuntu1) over (2:2.5-5ubuntu1) ... 60s Preparing to unpack .../12-libplymouth5_24.004.60-2ubuntu5_amd64.deb ... 60s Unpacking libplymouth5:amd64 (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 60s Preparing to unpack .../13-plymouth-theme-ubuntu-text_24.004.60-2ubuntu5_amd64.deb ... 60s Unpacking plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 60s Preparing to unpack .../14-plymouth_24.004.60-2ubuntu5_amd64.deb ... 60s Unpacking plymouth (24.004.60-2ubuntu5) over (24.004.60-2ubuntu4) ... 60s Preparing to unpack .../15-telnet_0.17+2.5-6ubuntu1_all.deb ... 60s Unpacking telnet (0.17+2.5-6ubuntu1) over (0.17+2.5-5ubuntu1) ... 60s Preparing to unpack .../16-libgprofng0_2.44-2ubuntu1_amd64.deb ... 60s Unpacking libgprofng0:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../17-libctf0_2.44-2ubuntu1_amd64.deb ... 60s Unpacking libctf0:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../18-libctf-nobfd0_2.44-2ubuntu1_amd64.deb ... 60s Unpacking libctf-nobfd0:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../19-binutils-x86-64-linux-gnu_2.44-2ubuntu1_amd64.deb ... 60s Unpacking binutils-x86-64-linux-gnu (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../20-libbinutils_2.44-2ubuntu1_amd64.deb ... 60s Unpacking libbinutils:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../21-binutils_2.44-2ubuntu1_amd64.deb ... 60s Unpacking binutils (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../22-binutils-common_2.44-2ubuntu1_amd64.deb ... 60s Unpacking binutils-common:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../23-libsframe1_2.44-2ubuntu1_amd64.deb ... 60s Unpacking libsframe1:amd64 (2.44-2ubuntu1) over (2.44-1ubuntu1) ... 60s Preparing to unpack .../24-libcryptsetup12_2%3a2.7.5-1ubuntu2_amd64.deb ... 60s Unpacking libcryptsetup12:amd64 (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 60s Preparing to unpack .../25-cryptsetup-bin_2%3a2.7.5-1ubuntu2_amd64.deb ... 60s Unpacking cryptsetup-bin (2:2.7.5-1ubuntu2) over (2:2.7.2-2ubuntu1) ... 60s Preparing to unpack .../26-fwupd_2.0.6-3_amd64.deb ... 60s Unpacking fwupd (2.0.6-3) over (2.0.5-1) ... 60s Preparing to unpack .../27-libfwupd3_2.0.6-3_amd64.deb ... 60s Unpacking libfwupd3:amd64 (2.0.6-3) over (2.0.5-1) ... 60s Preparing to unpack .../28-python3-requests_2.32.3+dfsg-4ubuntu1_all.deb ... 61s /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. 61s for fn in glob1(directory, "%s.*" % fname): 61s Unpacking python3-requests (2.32.3+dfsg-4ubuntu1) over (2.32.3+dfsg-1ubuntu1) ... 61s Preparing to unpack .../29-tmux_3.5a-3_amd64.deb ... 61s Unpacking tmux (3.5a-3) over (3.4-7) ... 61s Setting up libapparmor1:amd64 (4.1.0~beta5-0ubuntu4) ... 61s Setting up apt-utils (2.9.30ubuntu1) ... 61s Setting up binutils-common:amd64 (2.44-2ubuntu1) ... 61s Setting up inetutils-telnet (2:2.5-6ubuntu1) ... 61s Setting up libctf-nobfd0:amd64 (2.44-2ubuntu1) ... 61s Setting up libfwupd3:amd64 (2.0.6-3) ... 61s Setting up libjemalloc2:amd64 (5.3.0-2build1) ... 61s Setting up libsframe1:amd64 (2.44-2ubuntu1) ... 61s Setting up apparmor (4.1.0~beta5-0ubuntu4) ... 61s Installing new version of config file /etc/apparmor.d/sbuild ... 61s Installing new version of config file /etc/apparmor.d/sbuild-abort ... 61s Installing new version of config file /etc/apparmor.d/sbuild-adduser ... 61s Installing new version of config file /etc/apparmor.d/sbuild-apt ... 61s Installing new version of config file /etc/apparmor.d/sbuild-checkpackages ... 61s Installing new version of config file /etc/apparmor.d/sbuild-clean ... 61s Installing new version of config file /etc/apparmor.d/sbuild-createchroot ... 61s Installing new version of config file /etc/apparmor.d/sbuild-destroychroot ... 61s Installing new version of config file /etc/apparmor.d/sbuild-distupgrade ... 61s Installing new version of config file /etc/apparmor.d/sbuild-hold ... 61s Installing new version of config file /etc/apparmor.d/sbuild-shell ... 61s Installing new version of config file /etc/apparmor.d/sbuild-unhold ... 61s Installing new version of config file /etc/apparmor.d/sbuild-update ... 61s Installing new version of config file /etc/apparmor.d/sbuild-upgrade ... 61s Reloading AppArmor profiles 63s Setting up python3-requests (2.32.3+dfsg-4ubuntu1) ... 63s Setting up libplymouth5:amd64 (24.004.60-2ubuntu5) ... 63s Setting up libcryptsetup12:amd64 (2:2.7.5-1ubuntu2) ... 63s Setting up kbd (2.7.1-2ubuntu1) ... 63s Setting up libbinutils:amd64 (2.44-2ubuntu1) ... 63s Setting up openssl (3.4.1-1ubuntu1) ... 63s Setting up tmux (3.5a-3) ... 63s Setting up ubuntu-pro-client (34.1.3) ... 64s Setting up fwupd (2.0.6-3) ... 64s fwupd-refresh.service is a disabled or a static unit not running, not starting it. 64s fwupd.service is a disabled or a static unit not running, not starting it. 64s Setting up libctf0:amd64 (2.44-2ubuntu1) ... 64s Setting up cryptsetup-bin (2:2.7.5-1ubuntu2) ... 64s Setting up ubuntu-pro-client-l10n (34.1.3) ... 64s Setting up telnet (0.17+2.5-6ubuntu1) ... 64s Setting up bind9-libs:amd64 (1:9.20.4-3ubuntu1) ... 64s Setting up plymouth (24.004.60-2ubuntu5) ... 64s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 65s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 65s Setting up libgprofng0:amd64 (2.44-2ubuntu1) ... 65s Setting up bind9-host (1:9.20.4-3ubuntu1) ... 65s Setting up binutils-x86-64-linux-gnu (2.44-2ubuntu1) ... 65s Setting up binutils (2.44-2ubuntu1) ... 65s Setting up bind9-dnsutils (1:9.20.4-3ubuntu1) ... 65s Processing triggers for dbus (1.16.0-1ubuntu1) ... 65s Processing triggers for debianutils (5.21) ... 65s Processing triggers for initramfs-tools (0.145ubuntu2) ... 65s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 65s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 73s Processing triggers for libc-bin (2.40-4ubuntu1) ... 73s Processing triggers for systemd (257.2-3ubuntu1) ... 73s Processing triggers for man-db (2.13.0-1) ... 75s Setting up plymouth-theme-ubuntu-text (24.004.60-2ubuntu5) ... 75s Processing triggers for initramfs-tools (0.145ubuntu2) ... 75s update-initramfs: Generating /boot/initrd.img-6.12.0-15-generic 75s W: No lz4 in /usr/bin:/sbin:/bin, using gzip 83s Reading package lists... 84s Building dependency tree... 84s Reading state information... 84s Solving dependencies... 84s The following packages will be REMOVED: 84s libapt-pkg6.0t64* 84s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 84s After this operation, 3725 kB disk space will be freed. 84s (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 ... 109025 files and directories currently installed.) 84s Removing libapt-pkg6.0t64:amd64 (2.9.29) ... 84s Processing triggers for libc-bin (2.40-4ubuntu1) ... 84s autopkgtest [01:07:12]: upgrading testbed (apt dist-upgrade and autopurge) 85s Reading package lists... 85s Building dependency tree... 85s Reading state information... 85s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 85s Starting 2 pkgProblemResolver with broken count: 0 85s Done 85s Entering ResolveByKeep 86s 86s Calculating upgrade... 86s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 86s Reading package lists... 86s Building dependency tree... 86s Reading state information... 86s Starting pkgProblemResolver with broken count: 0 86s Starting 2 pkgProblemResolver with broken count: 0 86s Done 87s Solving dependencies... 87s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 87s autopkgtest [01:07:15]: rebooting testbed after setup commands that affected boot 110s autopkgtest [01:07:38]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 16:02:16 UTC 2025 113s autopkgtest [01:07:41]: @@@@@@@@@@@@@@@@@@@@ apt-source python-dtcwt 115s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (dsc) [2520 B] 115s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (tar) [7457 kB] 115s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (diff) [6792 B] 116s gpgv: Signature made Thu Jun 6 22:51:03 2024 UTC 116s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 116s gpgv: Can't check signature: No public key 116s dpkg-source: warning: cannot verify inline signature for ./python-dtcwt_0.12.0-5ubuntu1.dsc: no acceptable signature found 116s autopkgtest [01:07:44]: testing package python-dtcwt version 0.12.0-5ubuntu1 116s autopkgtest [01:07:44]: build not needed 117s autopkgtest [01:07:45]: test command1: preparing testbed 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 117s Starting pkgProblemResolver with broken count: 0 118s Starting 2 pkgProblemResolver with broken count: 0 118s Done 118s The following NEW packages will be installed: 118s libblas3 libgfortran5 liblapack3 liblbfgsb0 python3-all python3-decorator 118s python3-dtcwt python3-iniconfig python3-numpy python3-numpy-dev 118s python3-packaging python3-pluggy python3-pytest python3-scipy python3-six 118s python3.12 python3.12-minimal 118s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 118s Need to get 38.9 MB of archives. 118s After this operation, 191 MB of additional disk space will be used. 118s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12-minimal amd64 3.12.9-1 [2348 kB] 118s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-numpy-dev amd64 1:2.2.3+ds-2 [147 kB] 118s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libblas3 amd64 3.12.1-2 [359 kB] 118s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 libgfortran5 amd64 15-20250213-1ubuntu1 [920 kB] 119s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 liblapack3 amd64 3.12.1-2 [3179 kB] 119s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-numpy amd64 1:2.2.3+ds-2 [8537 kB] 119s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12 amd64 3.12.9-1 [671 kB] 119s Get:8 http://ftpmaster.internal/ubuntu plucky/universe amd64 liblbfgsb0 amd64 3.0+dfsg.4-1build1 [29.9 kB] 119s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-all amd64 3.13.1-1~exp2 [894 B] 119s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-decorator all 5.1.1-5 [10.1 kB] 119s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-six all 1.17.0-1 [13.2 kB] 119s Get:12 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-dtcwt all 0.12.0-5ubuntu1 [54.6 kB] 119s Get:13 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 119s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.2-1 [51.5 kB] 119s Get:15 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 119s Get:16 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.4-1 [252 kB] 119s Get:17 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-scipy amd64 1.14.1-4ubuntu1 [22.3 MB] 120s Fetched 38.9 MB in 2s (18.6 MB/s) 120s Selecting previously unselected package python3.12-minimal. 120s (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 ... 108975 files and directories currently installed.) 120s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_amd64.deb ... 120s Unpacking python3.12-minimal (3.12.9-1) ... 120s Selecting previously unselected package python3-numpy-dev:amd64. 120s Preparing to unpack .../01-python3-numpy-dev_1%3a2.2.3+ds-2_amd64.deb ... 120s Unpacking python3-numpy-dev:amd64 (1:2.2.3+ds-2) ... 121s Selecting previously unselected package libblas3:amd64. 121s Preparing to unpack .../02-libblas3_3.12.1-2_amd64.deb ... 121s Unpacking libblas3:amd64 (3.12.1-2) ... 121s Selecting previously unselected package libgfortran5:amd64. 121s Preparing to unpack .../03-libgfortran5_15-20250213-1ubuntu1_amd64.deb ... 121s Unpacking libgfortran5:amd64 (15-20250213-1ubuntu1) ... 121s Selecting previously unselected package liblapack3:amd64. 121s Preparing to unpack .../04-liblapack3_3.12.1-2_amd64.deb ... 121s Unpacking liblapack3:amd64 (3.12.1-2) ... 121s Selecting previously unselected package python3-numpy. 121s Preparing to unpack .../05-python3-numpy_1%3a2.2.3+ds-2_amd64.deb ... 121s Unpacking python3-numpy (1:2.2.3+ds-2) ... 121s Selecting previously unselected package python3.12. 121s Preparing to unpack .../06-python3.12_3.12.9-1_amd64.deb ... 121s Unpacking python3.12 (3.12.9-1) ... 121s Selecting previously unselected package liblbfgsb0:amd64. 121s Preparing to unpack .../07-liblbfgsb0_3.0+dfsg.4-1build1_amd64.deb ... 121s Unpacking liblbfgsb0:amd64 (3.0+dfsg.4-1build1) ... 121s Selecting previously unselected package python3-all. 121s Preparing to unpack .../08-python3-all_3.13.1-1~exp2_amd64.deb ... 121s Unpacking python3-all (3.13.1-1~exp2) ... 121s Selecting previously unselected package python3-decorator. 121s Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ... 121s Unpacking python3-decorator (5.1.1-5) ... 121s Selecting previously unselected package python3-six. 121s Preparing to unpack .../10-python3-six_1.17.0-1_all.deb ... 121s Unpacking python3-six (1.17.0-1) ... 121s Selecting previously unselected package python3-dtcwt. 121s Preparing to unpack .../11-python3-dtcwt_0.12.0-5ubuntu1_all.deb ... 121s Unpacking python3-dtcwt (0.12.0-5ubuntu1) ... 121s Selecting previously unselected package python3-iniconfig. 121s Preparing to unpack .../12-python3-iniconfig_1.1.1-2_all.deb ... 121s Unpacking python3-iniconfig (1.1.1-2) ... 121s Selecting previously unselected package python3-packaging. 121s Preparing to unpack .../13-python3-packaging_24.2-1_all.deb ... 121s Unpacking python3-packaging (24.2-1) ... 121s Selecting previously unselected package python3-pluggy. 121s Preparing to unpack .../14-python3-pluggy_1.5.0-1_all.deb ... 121s Unpacking python3-pluggy (1.5.0-1) ... 121s Selecting previously unselected package python3-pytest. 121s Preparing to unpack .../15-python3-pytest_8.3.4-1_all.deb ... 121s Unpacking python3-pytest (8.3.4-1) ... 121s Selecting previously unselected package python3-scipy. 121s Preparing to unpack .../16-python3-scipy_1.14.1-4ubuntu1_amd64.deb ... 121s Unpacking python3-scipy (1.14.1-4ubuntu1) ... 122s Setting up python3-iniconfig (1.1.1-2) ... 122s Setting up python3.12-minimal (3.12.9-1) ... 123s Setting up python3.12 (3.12.9-1) ... 123s Setting up python3-all (3.13.1-1~exp2) ... 123s Setting up python3-six (1.17.0-1) ... 124s Setting up python3-decorator (5.1.1-5) ... 124s Setting up libblas3:amd64 (3.12.1-2) ... 124s update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode 124s Setting up python3-packaging (24.2-1) ... 124s Setting up python3-numpy-dev:amd64 (1:2.2.3+ds-2) ... 124s Setting up libgfortran5:amd64 (15-20250213-1ubuntu1) ... 124s Setting up python3-pluggy (1.5.0-1) ... 124s Setting up liblapack3:amd64 (3.12.1-2) ... 124s update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode 124s Setting up python3-pytest (8.3.4-1) ... 125s Setting up python3-numpy (1:2.2.3+ds-2) ... 127s Setting up liblbfgsb0:amd64 (3.0+dfsg.4-1build1) ... 127s Setting up python3-dtcwt (0.12.0-5ubuntu1) ... 127s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 127s """Return a resampled version of *im* scaled to *shape*. 128s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 128s """ 128s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 128s """Return a resampled version of *im* scaled to *shape*. 128s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 128s """ 128s Setting up python3-scipy (1.14.1-4ubuntu1) ... 133s Processing triggers for systemd (257.2-3ubuntu1) ... 133s Processing triggers for man-db (2.13.0-1) ... 133s Processing triggers for libc-bin (2.40-4ubuntu1) ... 134s autopkgtest [01:08:02]: testbed environment configured for cross-architecture building 134s autopkgtest [01:08:02]: 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 134s autopkgtest [01:08:02]: test command1: [----------------------- 135s Testing with python3.12: 135s ============================= test session starts ============================== 135s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12 135s cachedir: .pytest_cache 135s rootdir: /tmp/autopkgtest.b3Nek7/autopkgtest_tmp 135s plugins: typeguard-4.4.1 136s collecting ... collected 339 items 136s 136s tests/test_againstmatlab.py::test_mandrill_loaded PASSED [ 0%] 136s tests/test_againstmatlab.py::test_coldfilt FAILED [ 0%] 136s tests/test_againstmatlab.py::test_dtwavexfm2 FAILED [ 0%] 136s tests/test_againstmatlab.py::test_dtwavexfm2b FAILED [ 1%] 136s tests/test_againstmatlab.py::test_rescale_highpass FAILED [ 1%] 136s tests/test_againstmatlab.py::test_transform3d_numpy FAILED [ 1%] 136s tests/test_coeffs.py::test_antonini PASSED [ 2%] 136s tests/test_coeffs.py::test_legall PASSED [ 2%] 136s tests/test_coeffs.py::test_near_sym_a PASSED [ 2%] 136s tests/test_coeffs.py::test_qshift_06 PASSED [ 2%] 136s tests/test_coeffs.py::test_qshift_a PASSED [ 3%] 136s tests/test_coeffs.py::test_qshift_b PASSED [ 3%] 136s tests/test_coeffs.py::test_qshift_c PASSED [ 3%] 136s tests/test_coeffs.py::test_qshift_d PASSED [ 4%] 136s tests/test_coeffs.py::test_non_exist_biort PASSED [ 4%] 136s tests/test_coeffs.py::test_non_exist_qshift PASSED [ 4%] 136s tests/test_coeffs.py::test_wrong_type_a PASSED [ 5%] 136s tests/test_coeffs.py::test_wrong_type_b PASSED [ 5%] 136s tests/test_coldfilt.py::test_mandrill_loaded PASSED [ 5%] 136s tests/test_coldfilt.py::test_odd_filter FAILED [ 5%] 136s tests/test_coldfilt.py::test_different_size FAILED [ 6%] 136s tests/test_coldfilt.py::test_bad_input_size FAILED [ 6%] 136s tests/test_coldfilt.py::test_good_input_size FAILED [ 6%] 136s tests/test_coldfilt.py::test_good_input_size_non_orthogonal FAILED [ 7%] 136s tests/test_coldfilt.py::test_output_size FAILED [ 7%] 136s tests/test_colfilter.py::test_mandrill_loaded PASSED [ 7%] 136s tests/test_colfilter.py::test_odd_size FAILED [ 7%] 136s tests/test_colfilter.py::test_even_size FAILED [ 8%] 136s tests/test_colfilter.py::test_qshift FAILED [ 8%] 136s tests/test_colfilter.py::test_biort FAILED [ 8%] 136s tests/test_colfilter.py::test_odd_size_non_array FAILED [ 9%] 136s tests/test_colfilter.py::test_even_size_non_array FAILED [ 9%] 136s tests/test_colifilt.py::test_mandrill_loaded PASSED [ 9%] 136s tests/test_colifilt.py::test_odd_filter FAILED [ 10%] 136s tests/test_colifilt.py::test_different_size_h FAILED [ 10%] 136s tests/test_colifilt.py::test_zero_input FAILED [ 10%] 136s tests/test_colifilt.py::test_bad_input_size FAILED [ 10%] 136s tests/test_colifilt.py::test_good_input_size FAILED [ 11%] 136s tests/test_colifilt.py::test_output_size FAILED [ 11%] 136s tests/test_colifilt.py::test_non_orthogonal_input FAILED [ 11%] 136s tests/test_colifilt.py::test_output_size_non_mult_4 FAILED [ 12%] 136s tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 FAILED [ 12%] 136s tests/test_ifm1.py::test_reconstruct FAILED [ 12%] 136s tests/test_ifm1.py::test_reconstruct_2d FAILED [ 12%] 136s tests/test_ifm1.py::test_float32_input FAILED [ 13%] 136s tests/test_ifm2.py::test_mandrill_loaded PASSED [ 13%] 136s tests/test_ifm2.py::test_reconstruct FAILED [ 13%] 136s tests/test_ifm2.py::test_reconstruct_crop FAILED [ 14%] 136s tests/test_ifm2.py::test_reconstruct_custom_filter FAILED [ 14%] 136s tests/test_ifm2.py::test_float32_input FAILED [ 14%] 136s tests/test_import.py::test PASSED [ 15%] 136s tests/test_openclcoldfilt.py::test_mandrill_loaded PASSED [ 15%] 136s tests/test_openclcoldfilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 15%] 136s tests/test_openclcoldfilt.py::test_different_size SKIPPED (OpenCL no...) [ 15%] 136s tests/test_openclcoldfilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 16%] 136s tests/test_openclcoldfilt.py::test_real_wavelet SKIPPED (OpenCL not ...) [ 16%] 136s tests/test_openclcoldfilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 16%] 136s tests/test_openclcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 17%] 136s tests/test_openclcoldfilt.py::test_output_size SKIPPED (OpenCL not p...) [ 17%] 136s tests/test_openclcoldfilt.py::test_qshift SKIPPED (OpenCL not present) [ 17%] 136s tests/test_openclcolfilter.py::test_mandrill_loaded PASSED [ 17%] 136s tests/test_openclcolfilter.py::test_odd_size SKIPPED (OpenCL not pre...) [ 18%] 136s tests/test_openclcolfilter.py::test_even_size SKIPPED (OpenCL not pr...) [ 18%] 136s tests/test_openclcolfilter.py::test_qshift SKIPPED (OpenCL not present) [ 18%] 136s tests/test_openclcolfilter.py::test_biort SKIPPED (OpenCL not present) [ 19%] 136s tests/test_openclcolfilter.py::test_odd_size_non_array SKIPPED (Open...) [ 19%] 136s tests/test_openclcolfilter.py::test_even_size_non_array SKIPPED (Ope...) [ 19%] 136s tests/test_openclcolifilt.py::test_mandrill_loaded PASSED [ 20%] 136s tests/test_openclcolifilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 20%] 136s tests/test_openclcolifilt.py::test_different_size_h SKIPPED (OpenCL ...) [ 20%] 136s tests/test_openclcolifilt.py::test_zero_input SKIPPED (OpenCL not pr...) [ 20%] 136s tests/test_openclcolifilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 21%] 136s tests/test_openclcolifilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 21%] 136s tests/test_openclcolifilt.py::test_output_size SKIPPED (OpenCL not p...) [ 21%] 136s tests/test_openclcolifilt.py::test_non_orthogonal_input SKIPPED (Ope...) [ 22%] 136s tests/test_openclcolifilt.py::test_output_size_non_mult_4 SKIPPED (O...) [ 22%] 136s tests/test_openclcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 22%] 136s tests/test_openclcolifilt.py::test_qshift SKIPPED (OpenCL not present) [ 23%] 136s tests/test_openclcolifilt.py::test_qshift_odd_len_input_2 SKIPPED (O...) [ 23%] 136s tests/test_openclcolifilt.py::test_qshift_even_input SKIPPED (OpenCL...) [ 23%] 136s tests/test_openclxfm2.py::test_mandrill_loaded PASSED [ 23%] 136s tests/test_openclxfm2.py::test_simple SKIPPED (OpenCL not present) [ 24%] 136s tests/test_openclxfm2.py::test_specific_wavelet SKIPPED (OpenCL not ...) [ 24%] 136s tests/test_openclxfm2.py::test_1d SKIPPED (OpenCL not present) [ 24%] 136s tests/test_openclxfm2.py::test_3d SKIPPED (OpenCL not present) [ 25%] 136s tests/test_openclxfm2.py::test_simple_w_scale SKIPPED (OpenCL not pr...) [ 25%] 136s tests/test_openclxfm2.py::test_odd_rows SKIPPED (OpenCL not present) [ 25%] 136s tests/test_openclxfm2.py::test_odd_cols SKIPPED (OpenCL not present) [ 25%] 136s tests/test_openclxfm2.py::test_odd_rows_and_cols SKIPPED (OpenCL not...) [ 26%] 136s tests/test_openclxfm2.py::test_0_levels SKIPPED (OpenCL not present) [ 26%] 136s tests/test_openclxfm2.py::test_modified SKIPPED (OpenCL not present) [ 26%] 136s tests/test_reflect.py::test_linear_ramp_boundaries PASSED [ 27%] 136s tests/test_reflect.py::test_linear_ramp_values PASSED [ 27%] 136s tests/test_reflect.py::test_non_array_input PASSED [ 27%] 136s tests/test_registration.py::test_frames_loaded PASSED [ 28%] 136s tests/test_registration.py::test_estimatereg FAILED [ 28%] 137s tests/test_sampling.py::test_rescale_lanczos PASSED [ 28%] 137s tests/test_sampling.py::test_rescale_bilinear PASSED [ 28%] 137s tests/test_sampling.py::test_rescale_nearest PASSED [ 29%] 137s tests/test_switchbackends.py::TestSwitchBackends::test_default_backend PASSED [ 29%] 137s tests/test_switchbackends.py::TestSwitchBackends::test_no_pop_default_backend PASSED [ 29%] 137s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_invalid PASSED [ 30%] 137s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_numpy PASSED [ 30%] 137s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_opencl SKIPPED [ 30%] 137s tests/test_switchbackends.py::test_backend_with_guard PASSED [ 30%] 137s tests/test_switchbackends.py::test_backend_with_guard_and_exception PASSED [ 31%] 137s tests/test_tfTransform1d.py::test_simple SKIPPED (Tensorflow not pre...) [ 31%] 137s tests/test_tfTransform1d.py::test_simple_with_no_levels SKIPPED (Ten...) [ 31%] 137s tests/test_tfTransform1d.py::test_simple_with_scale SKIPPED (Tensorf...) [ 32%] 137s tests/test_tfTransform1d.py::test_simple_with_scale_and_no_levels SKIPPED [ 32%] 137s tests/test_tfTransform1d.py::test_perfect_recon SKIPPED (Tensorflow ...) [ 32%] 137s tests/test_tfTransform1d.py::test_simple_custom_filter SKIPPED (Tens...) [ 33%] 137s tests/test_tfTransform1d.py::test_single_level SKIPPED (Tensorflow n...) [ 33%] 137s tests/test_tfTransform1d.py::test_non_multiple_of_two SKIPPED (Tenso...) [ 33%] 137s tests/test_tfTransform1d.py::test_2d SKIPPED (Tensorflow not present) [ 33%] 137s tests/test_tfTransform1d.py::test_integer_input SKIPPED (Tensorflow ...) [ 34%] 137s tests/test_tfTransform1d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 34%] 137s tests/test_tfTransform1d.py::test_float32_input SKIPPED (Tensorflow ...) [ 34%] 137s tests/test_tfTransform1d.py::test_reconstruct SKIPPED (Tensorflow no...) [ 35%] 137s tests/test_tfTransform1d.py::test_reconstruct_2d SKIPPED (Tensorflow...) [ 35%] 137s tests/test_tfTransform1d.py::test_float32_input_inv SKIPPED (Tensorf...) [ 35%] 137s tests/test_tfTransform1d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 35%] 137s tests/test_tfTransform1d.py::test_numpy_in_batch SKIPPED (Tensorflow...) [ 36%] 137s tests/test_tfTransform1d.py::test_1d_input SKIPPED (Tensorflow not p...) [ 36%] 137s tests/test_tfTransform1d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 36%] 137s tests/test_tfTransform1d.py::test_3d_input SKIPPED (Tensorflow not p...) [ 37%] 137s tests/test_tfTransform1d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 37%] 137s tests/test_tfTransform1d.py::test_return_type SKIPPED (Tensorflow no...) [ 37%] 137s tests/test_tfTransform1d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 38%] 137s tests/test_tfTransform1d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 38%] 137s tests/test_tfTransform1d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 38%] 137s tests/test_tfTransform1d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 38%] 137s tests/test_tfTransform1d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 39%] 137s tests/test_tfTransform1d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 39%] 137s tests/test_tfTransform1d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 39%] 137s tests/test_tfTransform1d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 40%] 137s tests/test_tfTransform1d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 40%] 137s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 40%] 137s tests/test_tfTransform1d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 41%] 137s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 41%] 137s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 41%] 137s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 41%] 137s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 42%] 137s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 42%] 137s tests/test_tfTransform2d.py::test_mandrill_loaded SKIPPED (Tensorflo...) [ 42%] 137s tests/test_tfTransform2d.py::test_simple SKIPPED (Tensorflow not pre...) [ 43%] 137s tests/test_tfTransform2d.py::test_specific_wavelet SKIPPED (Tensorfl...) [ 43%] 137s tests/test_tfTransform2d.py::test_1d SKIPPED (Tensorflow not present) [ 43%] 137s tests/test_tfTransform2d.py::test_3d SKIPPED (Tensorflow not present) [ 43%] 137s tests/test_tfTransform2d.py::test_simple_w_scale SKIPPED (Tensorflow...) [ 44%] 137s tests/test_tfTransform2d.py::test_odd_rows SKIPPED (Tensorflow not p...) [ 44%] 137s tests/test_tfTransform2d.py::test_odd_rows_w_scale SKIPPED (Tensorfl...) [ 44%] 137s tests/test_tfTransform2d.py::test_odd_cols SKIPPED (Tensorflow not p...) [ 45%] 137s tests/test_tfTransform2d.py::test_odd_cols_w_scale SKIPPED (Tensorfl...) [ 45%] 137s tests/test_tfTransform2d.py::test_odd_rows_and_cols SKIPPED (Tensorf...) [ 45%] 137s tests/test_tfTransform2d.py::test_odd_rows_and_cols_w_scale SKIPPED [ 46%] 137s tests/test_tfTransform2d.py::test_rot_symm_modified SKIPPED (Tensorf...) [ 46%] 137s tests/test_tfTransform2d.py::test_0_levels SKIPPED (Tensorflow not p...) [ 46%] 137s tests/test_tfTransform2d.py::test_0_levels_w_scale SKIPPED (Tensorfl...) [ 46%] 137s tests/test_tfTransform2d.py::test_integer_input SKIPPED (Tensorflow ...) [ 47%] 137s tests/test_tfTransform2d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 47%] 137s tests/test_tfTransform2d.py::test_mandrill_perfect_recon SKIPPED (Te...) [ 47%] 137s tests/test_tfTransform2d.py::test_float32_input SKIPPED (Tensorflow ...) [ 48%] 137s tests/test_tfTransform2d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 48%] 137s tests/test_tfTransform2d.py::test_numpy_in_batch[nhw] SKIPPED (Tenso...) [ 48%] 137s tests/test_tfTransform2d.py::test_numpy_in_batch[chw] SKIPPED (Tenso...) [ 48%] 137s tests/test_tfTransform2d.py::test_numpy_in_batch[hwn] SKIPPED (Tenso...) [ 49%] 137s tests/test_tfTransform2d.py::test_numpy_in_batch[hwc] SKIPPED (Tenso...) [ 49%] 137s tests/test_tfTransform2d.py::test_numpy_batch_ch[nhwc] SKIPPED (Tens...) [ 49%] 137s tests/test_tfTransform2d.py::test_numpy_batch_ch[nchw] SKIPPED (Tens...) [ 50%] 137s tests/test_tfTransform2d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 50%] 137s tests/test_tfTransform2d.py::test_3d_input[nhw] SKIPPED (Tensorflow ...) [ 50%] 137s tests/test_tfTransform2d.py::test_3d_input[hwn] SKIPPED (Tensorflow ...) [ 51%] 137s tests/test_tfTransform2d.py::test_4d_input[nhwc] SKIPPED (Tensorflow...) [ 51%] 137s tests/test_tfTransform2d.py::test_4d_input[nchw] SKIPPED (Tensorflow...) [ 51%] 137s tests/test_tfTransform2d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 51%] 137s tests/test_tfTransform2d.py::test_3d_input_ph SKIPPED (Tensorflow no...) [ 52%] 137s tests/test_tfTransform2d.py::test_4d_input_ph SKIPPED (Tensorflow no...) [ 52%] 137s tests/test_tfTransform2d.py::test_return_type SKIPPED (Tensorflow no...) [ 52%] 137s tests/test_tfTransform2d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 53%] 137s tests/test_tfTransform2d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 53%] 137s tests/test_tfTransform2d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 53%] 137s tests/test_tfTransform2d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 53%] 137s tests/test_tfTransform2d.py::test_results_match[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 54%] 137s tests/test_tfTransform2d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 54%] 137s tests/test_tfTransform2d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 54%] 137s tests/test_tfTransform2d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 55%] 137s tests/test_tfTransform2d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 55%] 137s tests/test_tfTransform2d.py::test_results_match_inverse[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 55%] 137s tests/test_tfTransform2d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 56%] 137s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 56%] 137s tests/test_tfTransform2d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 56%] 137s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 56%] 137s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b_bp-qshift_b_bp-gain_mask4] SKIPPED [ 57%] 137s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 57%] 137s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 57%] 137s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 58%] 137s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 58%] 137s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 58%] 137s tests/test_tfTransform2d.py::test_forward_channels[nhwc] SKIPPED (Te...) [ 58%] 137s tests/test_tfTransform2d.py::test_forward_channels[nchw] SKIPPED (Te...) [ 59%] 137s tests/test_tfTransform2d.py::test_inverse_channels[nhwc] SKIPPED (Te...) [ 59%] 137s tests/test_tfTransform2d.py::test_inverse_channels[nchw] SKIPPED (Te...) [ 59%] 137s tests/test_tfcoldfilt.py::test_setup SKIPPED (Tensorflow not present) [ 60%] 137s tests/test_tfcoldfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 60%] 137s tests/test_tfcoldfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 60%] 137s tests/test_tfcoldfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 61%] 137s tests/test_tfcoldfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 61%] 137s tests/test_tfcoldfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 61%] 137s tests/test_tfcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 61%] 137s tests/test_tfcoldfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 62%] 137s tests/test_tfcoldfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 62%] 137s tests/test_tfcoldfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 62%] 137s tests/test_tfcoldfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 63%] 137s tests/test_tfcolfilter.py::test_setup SKIPPED (Tensorflow not present) [ 63%] 137s tests/test_tfcolfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 63%] 137s tests/test_tfcolfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 64%] 137s tests/test_tfcolfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 64%] 137s tests/test_tfcolfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 64%] 137s tests/test_tfcolfilter.py::test_biort SKIPPED (Tensorflow not present) [ 64%] 137s tests/test_tfcolfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 65%] 137s tests/test_tfcolfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 65%] 137s tests/test_tfcolfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 65%] 137s tests/test_tfcolfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 66%] 137s tests/test_tfcolfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 66%] 137s tests/test_tfcolfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 66%] 137s tests/test_tfcolifilt.py::test_setup SKIPPED (Tensorflow not present) [ 66%] 137s tests/test_tfcolifilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 67%] 137s tests/test_tfcolifilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 67%] 137s tests/test_tfcolifilt.py::test_different_size_h SKIPPED (Tensorflow ...) [ 67%] 137s tests/test_tfcolifilt.py::test_zero_input SKIPPED (Tensorflow not pr...) [ 68%] 137s tests/test_tfcolifilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 68%] 137s tests/test_tfcolifilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 68%] 137s tests/test_tfcolifilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 69%] 137s tests/test_tfcolifilt.py::test_non_orthogonal_input SKIPPED (Tensorf...) [ 69%] 137s tests/test_tfcolifilt.py::test_output_size_non_mult_4 SKIPPED (Tenso...) [ 69%] 137s tests/test_tfcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 69%] 137s tests/test_tfcolifilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 70%] 137s tests/test_tfcolifilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 70%] 137s tests/test_tfcolifilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 70%] 137s tests/test_tfinputshapes.py::test_scales[2-False] SKIPPED (Tensorflo...) [ 71%] 137s tests/test_tfinputshapes.py::test_scales[2-True] SKIPPED (Tensorflow...) [ 71%] 137s tests/test_tfinputshapes.py::test_scales[4-False] SKIPPED (Tensorflo...) [ 71%] 137s tests/test_tfinputshapes.py::test_scales[3-True] SKIPPED (Tensorflow...) [ 71%] 137s tests/test_tfinputshapes.py::test_2d_input_tuple[2-False] SKIPPED (T...) [ 72%] 137s tests/test_tfinputshapes.py::test_2d_input_tuple[2-True] SKIPPED (Te...) [ 72%] 137s tests/test_tfinputshapes.py::test_2d_input_tuple[4-False] SKIPPED (T...) [ 72%] 137s tests/test_tfinputshapes.py::test_2d_input_tuple[3-True] SKIPPED (Te...) [ 73%] 137s tests/test_tfinputshapes.py::test_batch_input[2-False-None] SKIPPED [ 73%] 137s tests/test_tfinputshapes.py::test_batch_input[2-True-10] SKIPPED (Te...) [ 73%] 137s tests/test_tfinputshapes.py::test_batch_input[4-False-None] SKIPPED [ 74%] 137s tests/test_tfinputshapes.py::test_batch_input[3-True-2] SKIPPED (Ten...) [ 74%] 137s tests/test_tfinputshapes.py::test_batch_input_tuple[2-False-None] SKIPPED [ 74%] 137s tests/test_tfinputshapes.py::test_batch_input_tuple[2-True-10] SKIPPED [ 74%] 137s tests/test_tfinputshapes.py::test_batch_input_tuple[4-False-None] SKIPPED [ 75%] 137s tests/test_tfinputshapes.py::test_batch_input_tuple[3-True-2] SKIPPED [ 75%] 137s tests/test_tfinputshapes.py::test_multichannel[2-5] SKIPPED (Tensorf...) [ 75%] 137s tests/test_tfinputshapes.py::test_multichannel[2-2] SKIPPED (Tensorf...) [ 76%] 137s tests/test_tfinputshapes.py::test_multichannel[4-10] SKIPPED (Tensor...) [ 76%] 137s tests/test_tfinputshapes.py::test_multichannel[3-6] SKIPPED (Tensorf...) [ 76%] 137s tests/test_tfrowdfilt.py::test_setup SKIPPED (Tensorflow not present) [ 76%] 137s tests/test_tfrowdfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 77%] 137s tests/test_tfrowdfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 77%] 137s tests/test_tfrowdfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 77%] 137s tests/test_tfrowdfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 78%] 137s tests/test_tfrowdfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 78%] 137s tests/test_tfrowdfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 78%] 137s tests/test_tfrowdfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 79%] 137s tests/test_tfrowdfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 79%] 137s tests/test_tfrowdfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 79%] 137s tests/test_tfrowdfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 79%] 137s tests/test_tfrowfilter.py::test_setup SKIPPED (Tensorflow not present) [ 80%] 137s tests/test_tfrowfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 80%] 137s tests/test_tfrowfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 80%] 137s tests/test_tfrowfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 81%] 137s tests/test_tfrowfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 81%] 137s tests/test_tfrowfilter.py::test_biort SKIPPED (Tensorflow not present) [ 81%] 137s tests/test_tfrowfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 82%] 137s tests/test_tfrowfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 82%] 137s tests/test_tfrowfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 82%] 137s tests/test_tfrowfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 82%] 137s tests/test_tfrowfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 83%] 137s tests/test_tfrowfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 83%] 137s tests/test_utils.py::test_complex_type_for_complex FAILED [ 83%] 137s tests/test_utils.py::test_complex_type_for_float FAILED [ 84%] 137s tests/test_utils.py::test_draw_circ PASSED [ 84%] 137s tests/test_utils.py::test_draw_edge PASSED [ 84%] 137s tests/test_utils.py::test_stacked_2d_matrix_vector_product PASSED [ 84%] 137s tests/test_utils.py::test_stacked_2d_vector_matrix_product PASSED [ 85%] 137s tests/test_utils.py::test_stacked_2d_matrix_matrix_product PASSED [ 85%] 137s tests/test_xfm1.py::test_simple FAILED [ 85%] 137s tests/test_xfm1.py::test_simple_with_no_levels FAILED [ 86%] 137s tests/test_xfm1.py::test_simple_with_scale FAILED [ 86%] 137s tests/test_xfm1.py::test_simple_with_scale_and_no_levels FAILED [ 86%] 137s tests/test_xfm1.py::test_perfect_recon FAILED [ 87%] 137s tests/test_xfm1.py::test_simple_custom_filter FAILED [ 87%] 137s tests/test_xfm1.py::test_single_level FAILED [ 87%] 137s tests/test_xfm1.py::test_non_multiple_of_two FAILED [ 87%] 137s tests/test_xfm1.py::test_2d FAILED [ 88%] 137s tests/test_xfm1.py::test_integer_input FAILED [ 88%] 137s tests/test_xfm1.py::test_integer_perfect_recon FAILED [ 88%] 137s tests/test_xfm1.py::test_float32_input FAILED [ 89%] 137s tests/test_xfm2.py::test_mandrill_loaded PASSED [ 89%] 137s tests/test_xfm2.py::test_simple FAILED [ 89%] 137s tests/test_xfm2.py::test_specific_wavelet FAILED [ 89%] 137s tests/test_xfm2.py::test_1d FAILED [ 90%] 137s tests/test_xfm2.py::test_3d FAILED [ 90%] 137s tests/test_xfm2.py::test_simple_w_scale FAILED [ 90%] 137s tests/test_xfm2.py::test_odd_rows FAILED [ 91%] 137s tests/test_xfm2.py::test_odd_rows_w_scale FAILED [ 91%] 137s tests/test_xfm2.py::test_odd_cols FAILED [ 91%] 137s tests/test_xfm2.py::test_odd_cols_w_scale FAILED [ 92%] 137s tests/test_xfm2.py::test_odd_rows_and_cols FAILED [ 92%] 137s tests/test_xfm2.py::test_odd_rows_and_cols_w_scale FAILED [ 92%] 137s tests/test_xfm2.py::test_rot_symm_modified FAILED [ 92%] 137s tests/test_xfm2.py::test_0_levels FAILED [ 93%] 137s tests/test_xfm2.py::test_0_levels_w_scale FAILED [ 93%] 137s tests/test_xfm2.py::test_integer_input FAILED [ 93%] 137s tests/test_xfm2.py::test_integer_perfect_recon FAILED [ 94%] 137s tests/test_xfm2.py::test_float32_input FAILED [ 94%] 137s tests/test_xfm3.py::test_ellipsoid PASSED [ 94%] 137s tests/test_xfm3.py::test_simple_level_1_xfm FAILED [ 94%] 137s tests/test_xfm3.py::test_simple_level_1_recon FAILED [ 95%] 137s tests/test_xfm3.py::test_simple_level_1_recon_haar FAILED [ 95%] 137s tests/test_xfm3.py::test_simple_level_2_xfm FAILED [ 95%] 137s tests/test_xfm3.py::test_simple_level_2_recon FAILED [ 96%] 137s tests/test_xfm3.py::test_simple_level_4_xfm FAILED [ 96%] 137s tests/test_xfm3.py::test_simple_level_4_recon FAILED [ 96%] 137s tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets FAILED [ 97%] 137s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 FAILED [ 97%] 137s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 FAILED [ 97%] 137s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 FAILED [ 97%] 137s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 FAILED [ 98%] 137s tests/test_xfm3.py::test_integer_input FAILED [ 98%] 137s tests/test_xfm3.py::test_integer_perfect_recon FAILED [ 98%] 137s tests/test_xfm3.py::test_float32_input FAILED [ 99%] 137s tests/test_xfm3.py::test_float32_recon FAILED [ 99%] 138s tests/test_xfm3.py::test_level_4_recon_discarding_level_1 FAILED [ 99%] 138s tests/test_xfm3.py::test_level_4_discarding_level_1 FAILED [100%] 138s 138s =================================== FAILURES =================================== 138s ________________________________ test_coldfilt _________________________________ 138s 138s def test_coldfilt(): 138s h0o, g0o, h1o, g1o = biort('near_sym_b') 138s h0a, h0b, g0a, g0b, h1a, h1b, g1a, g1b = qshift('qshift_d') 138s > A = colifilt(mandrill, g0b, g0a) 138s 138s tests/test_againstmatlab.py:81: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_dtwavexfm2 ________________________________ 138s 138s def test_dtwavexfm2(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill, 4, 'near_sym_a', 'qshift_a', include_scale=True) 138s 138s tests/test_againstmatlab.py:85: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_dtwavexfm2b _______________________________ 138s 138s def test_dtwavexfm2b(): 138s > Yl, Yh, Yscale = dtwavexfm2b(mandrill, 4, 'near_sym_b_bp', 'qshift_b_bp', include_scale=True) 138s 138s tests/test_againstmatlab.py:95: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_rescale_highpass _____________________________ 138s 138s def test_rescale_highpass(): 138s # N.B we can only test bilinear rescaling since cpxinterb2b doesn't support Lanczos 138s > Yl, Yh = dtwavexfm2b(mandrill, 3, 'near_sym_a', 'qshift_a') 138s 138s tests/test_againstmatlab.py:106: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_transform3d_numpy ____________________________ 138s 138s def test_transform3d_numpy(): 138s transform = Transform3d(biort='near_sym_b',qshift='qshift_b') 138s > td_signal = transform.forward(qbgn, nlevels=3, include_scale=True, discard_level_1=False) 138s 138s tests/test_againstmatlab.py:117: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_odd_filter ________________________________ 138s 138s def test_odd_filter(): 138s with raises(ValueError): 138s > coldfilt(mandrill, (-1,2,-1), (-1,2,1)) 138s 138s tests/test_coldfilt.py:22: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_different_size ______________________________ 138s 138s def test_different_size(): 138s with raises(ValueError): 138s > coldfilt(mandrill, (-0.5,-1,2,1,0.5), (-1,2,-1)) 138s 138s tests/test_coldfilt.py:26: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_bad_input_size ______________________________ 138s 138s def test_bad_input_size(): 138s with raises(ValueError): 138s > coldfilt(mandrill[:511,:], (-1,1), (1,-1)) 138s 138s tests/test_coldfilt.py:30: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_good_input_size _____________________________ 138s 138s def test_good_input_size(): 138s > coldfilt(mandrill[:,:511], (-1,1), (1,-1)) 138s 138s tests/test_coldfilt.py:33: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________ test_good_input_size_non_orthogonal ______________________ 138s 138s def test_good_input_size_non_orthogonal(): 138s > coldfilt(mandrill[:,:511], (1,1), (1,1)) 138s 138s tests/test_coldfilt.py:36: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_output_size _______________________________ 138s 138s def test_output_size(): 138s > Y = coldfilt(mandrill, (-1,1), (1,-1)) 138s 138s tests/test_coldfilt.py:39: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________________ test_odd_size _________________________________ 138s 138s def test_odd_size(): 138s > y = colfilter(mandrill, (-1,2,-1)) 138s 138s tests/test_colfilter.py:28: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________________ test_even_size ________________________________ 138s 138s def test_even_size(): 138s > y = colfilter(np.zeros_like(mandrill), (-1,1)) 138s 138s tests/test_colfilter.py:40: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _________________________________ test_qshift __________________________________ 138s 138s def test_qshift(): 138s > y = colfilter(mandrill, qshift('qshift_a')[0]) 138s 138s tests/test_colfilter.py:32: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________________ test_biort __________________________________ 138s 138s def test_biort(): 138s > y = colfilter(mandrill, biort('antonini')[0]) 138s 138s tests/test_colfilter.py:36: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_odd_size_non_array ____________________________ 138s 138s def test_odd_size_non_array(): 138s > y = colfilter(mandrill.tolist(), (-1,2,-1)) 138s 138s tests/test_colfilter.py:45: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_even_size_non_array ___________________________ 138s 138s def test_even_size_non_array(): 138s > y = colfilter(mandrill.tolist(), (-1,1)) 138s 138s tests/test_colfilter.py:49: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_odd_filter ________________________________ 138s 138s def test_odd_filter(): 138s with raises(ValueError): 138s > colifilt(mandrill, (-1,2,-1), (-1,2,1)) 138s 138s tests/test_colifilt.py:22: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_different_size_h _____________________________ 138s 138s def test_different_size_h(): 138s with raises(ValueError): 138s > colifilt(mandrill, (-1,2,1), (-0.5,-1,2,-1,0.5)) 138s 138s tests/test_colifilt.py:26: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_zero_input ________________________________ 138s 138s def test_zero_input(): 138s > Y = colifilt(np.zeros_like(mandrill), (-1,1), (1,-1)) 138s 138s tests/test_colifilt.py:29: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_bad_input_size ______________________________ 138s 138s def test_bad_input_size(): 138s with raises(ValueError): 138s > colifilt(mandrill[:511,:], (-1,1), (1,-1)) 138s 138s tests/test_colifilt.py:34: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_good_input_size _____________________________ 138s 138s def test_good_input_size(): 138s > colifilt(mandrill[:,:511], (-1,1), (1,-1)) 138s 138s tests/test_colifilt.py:37: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_output_size _______________________________ 138s 138s def test_output_size(): 138s > Y = colifilt(mandrill, (-1,1), (1,-1)) 138s 138s tests/test_colifilt.py:40: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_non_orthogonal_input ___________________________ 138s 138s def test_non_orthogonal_input(): 138s > Y = colifilt(mandrill, (1,1), (1,1)) 138s 138s tests/test_colifilt.py:44: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _________________________ test_output_size_non_mult_4 __________________________ 138s 138s def test_output_size_non_mult_4(): 138s > Y = colifilt(mandrill, (-1,0,0,1), (1,0,0,-1)) 138s 138s tests/test_colifilt.py:48: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________ test_non_orthogonal_input_non_mult_4 _____________________ 138s 138s def test_non_orthogonal_input_non_mult_4(): 138s > Y = colifilt(mandrill, (1,0,0,1), (1,0,0,1)) 138s 138s tests/test_colifilt.py:52: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_reconstruct _______________________________ 138s 138s def test_reconstruct(): 138s # Reconstruction up to tolerance 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec) 138s 138s tests/test_ifm1.py:12: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_reconstruct_2d ______________________________ 138s 138s def test_reconstruct_2d(): 138s # Reconstruction up to tolerance 138s vec = np.random.rand(630, 20) 138s > Yl, Yh = dtwavexfm(vec) 138s 138s tests/test_ifm1.py:19: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_input ______________________________ 138s 138s def test_float32_input(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm(np.array([1, 2, 3, 4]).astype(np.float32)) 138s 138s tests/test_ifm1.py:25: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_reconstruct _______________________________ 138s 138s def test_reconstruct(): 138s # Reconstruction up to tolerance 138s > Yl, Yh = dtwavexfm2(mandrill) 138s 138s tests/test_ifm2.py:23: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_reconstruct_crop _____________________________ 138s 138s def test_reconstruct_crop(): 138s # Reconstruction up to tolerance 138s > Yl_crop, Yh_crop = dtwavexfm2(mandrill_crop) 138s 138s tests/test_ifm2.py:29: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________ test_reconstruct_custom_filter ________________________ 138s 138s def test_reconstruct_custom_filter(): 138s # Reconstruction up to tolerance 138s > Yl, Yh = dtwavexfm2(mandrill, 4, biort('legall'), qshift('qshift_06')) 138s 138s tests/test_ifm2.py:35: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_input ______________________________ 138s 138s def test_float32_input(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 138s 138s tests/test_ifm2.py:41: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________________ test_estimatereg _______________________________ 138s 138s def test_estimatereg(): 138s nlevels = 6 138s trans = Transform2d() 138s > t1 = trans.forward(f1, nlevels=nlevels) 138s 138s tests/test_registration.py:29: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________ test_complex_type_for_complex _________________________ 138s 138s def test_complex_type_for_complex(): 138s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.complex64)), np.complex64) 138s 138s tests/test_utils.py:8: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'issubsctype' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _________________________ test_complex_type_for_float __________________________ 138s 138s def test_complex_type_for_float(): 138s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.float32)), np.complex64) 138s 138s tests/test_utils.py:12: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'issubsctype' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _________________________________ test_simple __________________________________ 138s 138s def test_simple(): 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec, 3) 138s 138s tests/test_xfm1.py:12: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_simple_with_no_levels __________________________ 138s 138s def test_simple_with_no_levels(): 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec, 0) 138s 138s tests/test_xfm1.py:17: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_simple_with_scale ____________________________ 138s 138s def test_simple_with_scale(): 138s vec = np.random.rand(630) 138s > Yl, Yh, Yscale = dtwavexfm(vec, 3, include_scale=True) 138s 138s tests/test_xfm1.py:22: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________ test_simple_with_scale_and_no_levels _____________________ 138s 138s def test_simple_with_scale_and_no_levels(): 138s vec = np.random.rand(630) 138s > Yl, Yh, Yscale = dtwavexfm(vec, 0, include_scale=True) 138s 138s tests/test_xfm1.py:28: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_perfect_recon ______________________________ 138s 138s def test_perfect_recon(): 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec) 138s 138s tests/test_xfm1.py:34: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_simple_custom_filter ___________________________ 138s 138s def test_simple_custom_filter(): 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec, 4, biort('legall'), qshift('qshift_06')) 138s 138s tests/test_xfm1.py:40: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_single_level _______________________________ 138s 138s def test_single_level(): 138s vec = np.random.rand(630) 138s > Yl, Yh = dtwavexfm(vec, 1) 138s 138s tests/test_xfm1.py:46: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_non_multiple_of_two ___________________________ 138s 138s def test_non_multiple_of_two(): 138s vec = np.random.rand(631) 138s with raises(ValueError): 138s > Yl, Yh = dtwavexfm(vec, 1) 138s 138s tests/test_xfm1.py:51: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________________ test_2d ____________________________________ 138s 138s def test_2d(): 138s > Yl, Yh = dtwavexfm(np.random.rand(10,10)) 138s 138s tests/test_xfm1.py:54: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_integer_input ______________________________ 138s 138s def test_integer_input(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array 138s > Yl, Yh = dtwavexfm([1,2,3,4]) 138s 138s tests/test_xfm1.py:59: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_integer_perfect_recon __________________________ 138s 138s def test_integer_perfect_recon(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array and reconstructed 138s A = np.array([1,2,3,4], dtype=np.int32) 138s > Yl, Yh = dtwavexfm(A) 138s 138s tests/test_xfm1.py:66: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_input ______________________________ 138s 138s def test_float32_input(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm(np.array([1,2,3,4]).astype(np.float32)) 138s 138s tests/test_xfm1.py:72: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 138s X = asfarray(X) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _________________________________ test_simple __________________________________ 138s 138s def test_simple(): 138s > Yl, Yh = dtwavexfm2(mandrill) 138s 138s tests/test_xfm2.py:22: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_specific_wavelet _____________________________ 138s 138s def test_specific_wavelet(): 138s > Yl, Yh = dtwavexfm2(mandrill, biort=biort('antonini'), qshift=qshift('qshift_06')) 138s 138s tests/test_xfm2.py:25: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________________ test_1d ____________________________________ 138s 138s def test_1d(): 138s > Yl, Yh = dtwavexfm2(mandrill[0,:]) 138s 138s tests/test_xfm2.py:28: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________________ test_3d ____________________________________ 138s 138s def test_3d(): 138s with raises(ValueError): 138s > Yl, Yh = dtwavexfm2(np.dstack((mandrill, mandrill))) 138s 138s tests/test_xfm2.py:32: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________________ test_simple_w_scale ______________________________ 138s 138s def test_simple_w_scale(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill, include_scale=True) 138s 138s tests/test_xfm2.py:35: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________________ test_odd_rows _________________________________ 138s 138s def test_odd_rows(): 138s > Yl, Yh = dtwavexfm2(mandrill[:509,:]) 138s 138s tests/test_xfm2.py:42: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_odd_rows_w_scale _____________________________ 138s 138s def test_odd_rows_w_scale(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:], include_scale=True) 138s 138s tests/test_xfm2.py:45: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________________ test_odd_cols _________________________________ 138s 138s def test_odd_cols(): 138s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 138s 138s tests/test_xfm2.py:48: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_odd_cols_w_scale _____________________________ 138s 138s def test_odd_cols_w_scale(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 138s 138s tests/test_xfm2.py:51: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_odd_rows_and_cols ____________________________ 138s 138s def test_odd_rows_and_cols(): 138s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 138s 138s tests/test_xfm2.py:54: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________ test_odd_rows_and_cols_w_scale ________________________ 138s 138s def test_odd_rows_and_cols_w_scale(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 138s 138s tests/test_xfm2.py:57: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_rot_symm_modified ____________________________ 138s 138s def test_rot_symm_modified(): 138s # This test only checks there is no error running these functions, not that they work 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill, biort='near_sym_b_bp', qshift='qshift_b_bp', include_scale=True) 138s 138s tests/test_xfm2.py:61: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________________ test_0_levels _________________________________ 138s 138s def test_0_levels(): 138s > Yl, Yh = dtwavexfm2(mandrill, nlevels=0) 138s 138s tests/test_xfm2.py:65: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________________ test_0_levels_w_scale _____________________________ 138s 138s def test_0_levels_w_scale(): 138s > Yl, Yh, Yscale = dtwavexfm2(mandrill, nlevels=0, include_scale=True) 138s 138s tests/test_xfm2.py:70: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_integer_input ______________________________ 138s 138s def test_integer_input(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array 138s > Yl, Yh = dtwavexfm2([[1,2,3,4], [1,2,3,4]]) 138s 138s tests/test_xfm2.py:78: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_integer_perfect_recon __________________________ 138s 138s def test_integer_perfect_recon(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array and reconstructed 138s A = np.array([[1,2,3,4], [5,6,7,8]], dtype=np.int32) 138s > Yl, Yh = dtwavexfm2(A) 138s 138s tests/test_xfm2.py:85: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_input ______________________________ 138s 138s def test_float32_input(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 138s 138s tests/test_xfm2.py:91: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 138s res = trans.forward(X, nlevels, include_scale) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 138s X = np.atleast_2d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_simple_level_1_xfm ____________________________ 138s 138s def test_simple_level_1_xfm(): 138s # Just tests that the transform broadly works and gives expected size output 138s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 138s 138s tests/test_xfm3.py:31: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_simple_level_1_recon ___________________________ 138s 138s def test_simple_level_1_recon(): 138s # Test for perfect reconstruction with 1 level 138s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 138s 138s tests/test_xfm3.py:37: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ________________________ test_simple_level_1_recon_haar ________________________ 138s 138s def test_simple_level_1_recon_haar(): 138s # Test for perfect reconstruction with 1 level and Haar wavelets 138s 138s # Form Haar wavelets 138s h0 = np.array((1.0, 1.0)) 138s g0 = h0 138s h0 = h0 / np.sum(h0) 138s g0 = g0 / np.sum(g0) 138s h1 = g0 * np.cumprod(-np.ones_like(g0)) 138s g1 = -h0 * np.cumprod(-np.ones_like(h0)) 138s 138s haar = (h0, g0, h1, g1) 138s 138s > Yl, Yh = dtwavexfm3(ellipsoid, 1, biort=haar) 138s 138s tests/test_xfm3.py:55: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_simple_level_2_xfm ____________________________ 138s 138s def test_simple_level_2_xfm(): 138s # Just tests that the transform broadly works and gives expected size output 138s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 138s 138s tests/test_xfm3.py:62: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_simple_level_2_recon ___________________________ 138s 138s def test_simple_level_2_recon(): 138s # Test for perfect reconstruction with 2 levels 138s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 138s 138s tests/test_xfm3.py:68: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ___________________________ test_simple_level_4_xfm ____________________________ 138s 138s def test_simple_level_4_xfm(): 138s # Just tests that the transform broadly works and gives expected size output 138s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 138s 138s tests/test_xfm3.py:75: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_simple_level_4_recon ___________________________ 138s 138s def test_simple_level_4_recon(): 138s # Test for perfect reconstruction with 3 levels 138s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 138s 138s tests/test_xfm3.py:81: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________ test_simple_level_4_recon_custom_wavelets ___________________ 138s 138s def test_simple_level_4_recon_custom_wavelets(): 138s # Test for perfect reconstruction with 3 levels 138s b = biort('legall') 138s q = qshift('qshift_06') 138s > Yl, Yh = dtwavexfm3(ellipsoid, 4, biort=b, qshift=q) 138s 138s tests/test_xfm3.py:90: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________ test_simple_level_4_xfm_ext_mode_8 ______________________ 138s 138s def test_simple_level_4_xfm_ext_mode_8(): 138s # Just tests that the transform broadly works and gives expected size output 138s crop_ellipsoid = ellipsoid[:62,:58,:54] 138s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 138s 138s tests/test_xfm3.py:98: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________ test_simple_level_4_recon_ext_mode_8 _____________________ 138s 138s def test_simple_level_4_recon_ext_mode_8(): 138s # Test for perfect reconstruction with 3 levels 138s crop_ellipsoid = ellipsoid[:62,:58,:54] 138s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 138s 138s tests/test_xfm3.py:104: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________ test_simple_level_4_xfm_ext_mode_4 ______________________ 138s 138s def test_simple_level_4_xfm_ext_mode_4(): 138s # Just tests that the transform broadly works and gives expected size output 138s crop_ellipsoid = ellipsoid[:62,:54,:58] 138s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 138s 138s tests/test_xfm3.py:112: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _____________________ test_simple_level_4_recon_ext_mode_4 _____________________ 138s 138s def test_simple_level_4_recon_ext_mode_4(): 138s # Test for perfect reconstruction with 3 levels 138s crop_ellipsoid = ellipsoid[:62,:54,:58] 138s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 138s 138s tests/test_xfm3.py:118: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_integer_input ______________________________ 138s 138s def test_integer_input(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array 138s > Yl, Yh = dtwavexfm3(np.ones((4,4,4), dtype=int)) 138s 138s tests/test_xfm3.py:126: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s __________________________ test_integer_perfect_recon __________________________ 138s 138s def test_integer_perfect_recon(): 138s # Check that an integer input is correctly coerced into a floating point 138s # array and reconstructed 138s A = (np.random.random((4,4,4)) * 5).astype(np.int32) 138s > Yl, Yh = dtwavexfm3(A) 138s 138s tests/test_xfm3.py:133: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_input ______________________________ 138s 138s def test_float32_input(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 138s 138s tests/test_xfm3.py:139: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ______________________________ test_float32_recon ______________________________ 138s 138s def test_float32_recon(): 138s # Check that an float32 input is correctly output as float32 138s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 138s 138s tests/test_xfm3.py:145: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s ____________________ test_level_4_recon_discarding_level_1 _____________________ 138s 138s def test_level_4_recon_discarding_level_1(): 138s # Test for non-perfect but reasonable reconstruction 138s > Yl, Yh = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 138s 138s tests/test_xfm3.py:154: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s _______________________ test_level_4_discarding_level_1 ________________________ 138s 138s def test_level_4_discarding_level_1(): 138s # Test that level >= 2 highpasses are identical 138s > Yl1, Yh1 = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 138s 138s tests/test_xfm3.py:163: 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 138s res = trans.forward(X, nlevels, include_scale, discard_level_1) 138s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 138s X = np.atleast_3d(asfarray(X)) 138s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 138s return np.asfarray(X, dtype=X.dtype) 138s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 138s 138s attr = 'asfarray' 138s 138s def __getattr__(attr): 138s # Warn for expired attributes 138s import warnings 138s 138s if attr == "linalg": 138s import numpy.linalg as linalg 138s return linalg 138s elif attr == "fft": 138s import numpy.fft as fft 138s return fft 138s elif attr == "dtypes": 138s import numpy.dtypes as dtypes 138s return dtypes 138s elif attr == "random": 138s import numpy.random as random 138s return random 138s elif attr == "polynomial": 138s import numpy.polynomial as polynomial 138s return polynomial 138s elif attr == "ma": 138s import numpy.ma as ma 138s return ma 138s elif attr == "ctypeslib": 138s import numpy.ctypeslib as ctypeslib 138s return ctypeslib 138s elif attr == "exceptions": 138s import numpy.exceptions as exceptions 138s return exceptions 138s elif attr == "testing": 138s import numpy.testing as testing 138s return testing 138s elif attr == "matlib": 138s import numpy.matlib as matlib 138s return matlib 138s elif attr == "f2py": 138s import numpy.f2py as f2py 138s return f2py 138s elif attr == "typing": 138s import numpy.typing as typing 138s return typing 138s elif attr == "rec": 138s import numpy.rec as rec 138s return rec 138s elif attr == "char": 138s import numpy.char as char 138s return char 138s elif attr == "array_api": 138s raise AttributeError("`numpy.array_api` is not available from " 138s "numpy 2.0 onwards", name=None) 138s elif attr == "core": 138s import numpy.core as core 138s return core 138s elif attr == "strings": 138s import numpy.strings as strings 138s return strings 138s elif attr == "distutils": 138s if 'distutils' in __numpy_submodules__: 138s import numpy.distutils as distutils 138s return distutils 138s else: 138s raise AttributeError("`numpy.distutils` is not available from " 138s "Python 3.12 onwards", name=None) 138s 138s if attr in __future_scalars__: 138s # And future warnings for those that will change, but also give 138s # the AttributeError 138s warnings.warn( 138s f"In the future `np.{attr}` will be defined as the " 138s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 138s 138s if attr in __former_attrs__: 138s raise AttributeError(__former_attrs__[attr], name=None) 138s 138s if attr in __expired_attributes__: 138s > raise AttributeError( 138s f"`np.{attr}` was removed in the NumPy 2.0 release. " 138s f"{__expired_attributes__[attr]}", 138s name=None 138s ) 138s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 138s 138s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 138s =========================== short test summary info ============================ 138s FAILED tests/test_againstmatlab.py::test_coldfilt - AttributeError: `np.asfar... 138s FAILED tests/test_againstmatlab.py::test_dtwavexfm2 - AttributeError: `np.asf... 138s FAILED tests/test_againstmatlab.py::test_dtwavexfm2b - AttributeError: `np.as... 138s FAILED tests/test_againstmatlab.py::test_rescale_highpass - AttributeError: `... 138s FAILED tests/test_againstmatlab.py::test_transform3d_numpy - AttributeError: ... 138s FAILED tests/test_coldfilt.py::test_odd_filter - AttributeError: `np.asfarray... 138s FAILED tests/test_coldfilt.py::test_different_size - AttributeError: `np.asfa... 138s FAILED tests/test_coldfilt.py::test_bad_input_size - AttributeError: `np.asfa... 138s FAILED tests/test_coldfilt.py::test_good_input_size - AttributeError: `np.asf... 138s FAILED tests/test_coldfilt.py::test_good_input_size_non_orthogonal - Attribut... 138s FAILED tests/test_coldfilt.py::test_output_size - AttributeError: `np.asfarra... 138s FAILED tests/test_colfilter.py::test_odd_size - AttributeError: `np.asfarray`... 138s FAILED tests/test_colfilter.py::test_even_size - AttributeError: `np.asfarray... 138s FAILED tests/test_colfilter.py::test_qshift - AttributeError: `np.asfarray` w... 138s FAILED tests/test_colfilter.py::test_biort - AttributeError: `np.asfarray` wa... 138s FAILED tests/test_colfilter.py::test_odd_size_non_array - AttributeError: `np... 138s FAILED tests/test_colfilter.py::test_even_size_non_array - AttributeError: `n... 138s FAILED tests/test_colifilt.py::test_odd_filter - AttributeError: `np.asfarray... 138s FAILED tests/test_colifilt.py::test_different_size_h - AttributeError: `np.as... 138s FAILED tests/test_colifilt.py::test_zero_input - AttributeError: `np.asfarray... 138s FAILED tests/test_colifilt.py::test_bad_input_size - AttributeError: `np.asfa... 138s FAILED tests/test_colifilt.py::test_good_input_size - AttributeError: `np.asf... 138s FAILED tests/test_colifilt.py::test_output_size - AttributeError: `np.asfarra... 138s FAILED tests/test_colifilt.py::test_non_orthogonal_input - AttributeError: `n... 138s FAILED tests/test_colifilt.py::test_output_size_non_mult_4 - AttributeError: ... 138s FAILED tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 - Attribu... 138s FAILED tests/test_ifm1.py::test_reconstruct - AttributeError: `np.asfarray` w... 138s FAILED tests/test_ifm1.py::test_reconstruct_2d - AttributeError: `np.asfarray... 138s FAILED tests/test_ifm1.py::test_float32_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_ifm2.py::test_reconstruct - AttributeError: `np.asfarray` w... 138s FAILED tests/test_ifm2.py::test_reconstruct_crop - AttributeError: `np.asfarr... 138s FAILED tests/test_ifm2.py::test_reconstruct_custom_filter - AttributeError: `... 138s FAILED tests/test_ifm2.py::test_float32_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_registration.py::test_estimatereg - AttributeError: `np.asf... 138s FAILED tests/test_utils.py::test_complex_type_for_complex - AttributeError: `... 138s FAILED tests/test_utils.py::test_complex_type_for_float - AttributeError: `np... 138s FAILED tests/test_xfm1.py::test_simple - AttributeError: `np.asfarray` was re... 138s FAILED tests/test_xfm1.py::test_simple_with_no_levels - AttributeError: `np.a... 138s FAILED tests/test_xfm1.py::test_simple_with_scale - AttributeError: `np.asfar... 138s FAILED tests/test_xfm1.py::test_simple_with_scale_and_no_levels - AttributeEr... 138s FAILED tests/test_xfm1.py::test_perfect_recon - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm1.py::test_simple_custom_filter - AttributeError: `np.as... 138s FAILED tests/test_xfm1.py::test_single_level - AttributeError: `np.asfarray` ... 138s FAILED tests/test_xfm1.py::test_non_multiple_of_two - AttributeError: `np.asf... 138s FAILED tests/test_xfm1.py::test_2d - AttributeError: `np.asfarray` was remove... 138s FAILED tests/test_xfm1.py::test_integer_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm1.py::test_integer_perfect_recon - AttributeError: `np.a... 138s FAILED tests/test_xfm1.py::test_float32_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm2.py::test_simple - AttributeError: `np.asfarray` was re... 138s FAILED tests/test_xfm2.py::test_specific_wavelet - AttributeError: `np.asfarr... 138s FAILED tests/test_xfm2.py::test_1d - AttributeError: `np.asfarray` was remove... 138s FAILED tests/test_xfm2.py::test_3d - AttributeError: `np.asfarray` was remove... 138s FAILED tests/test_xfm2.py::test_simple_w_scale - AttributeError: `np.asfarray... 138s FAILED tests/test_xfm2.py::test_odd_rows - AttributeError: `np.asfarray` was ... 138s FAILED tests/test_xfm2.py::test_odd_rows_w_scale - AttributeError: `np.asfarr... 138s FAILED tests/test_xfm2.py::test_odd_cols - AttributeError: `np.asfarray` was ... 138s FAILED tests/test_xfm2.py::test_odd_cols_w_scale - AttributeError: `np.asfarr... 138s FAILED tests/test_xfm2.py::test_odd_rows_and_cols - AttributeError: `np.asfar... 138s FAILED tests/test_xfm2.py::test_odd_rows_and_cols_w_scale - AttributeError: `... 138s FAILED tests/test_xfm2.py::test_rot_symm_modified - AttributeError: `np.asfar... 138s FAILED tests/test_xfm2.py::test_0_levels - AttributeError: `np.asfarray` was ... 138s FAILED tests/test_xfm2.py::test_0_levels_w_scale - AttributeError: `np.asfarr... 138s FAILED tests/test_xfm2.py::test_integer_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm2.py::test_integer_perfect_recon - AttributeError: `np.a... 138s FAILED tests/test_xfm2.py::test_float32_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm3.py::test_simple_level_1_xfm - AttributeError: `np.asfa... 138s FAILED tests/test_xfm3.py::test_simple_level_1_recon - AttributeError: `np.as... 138s FAILED tests/test_xfm3.py::test_simple_level_1_recon_haar - AttributeError: `... 138s FAILED tests/test_xfm3.py::test_simple_level_2_xfm - AttributeError: `np.asfa... 138s FAILED tests/test_xfm3.py::test_simple_level_2_recon - AttributeError: `np.as... 138s FAILED tests/test_xfm3.py::test_simple_level_4_xfm - AttributeError: `np.asfa... 138s FAILED tests/test_xfm3.py::test_simple_level_4_recon - AttributeError: `np.as... 138s FAILED tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets - Attrib... 138s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 - AttributeErro... 138s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 - AttributeEr... 138s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 - AttributeErro... 138s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 - AttributeEr... 138s FAILED tests/test_xfm3.py::test_integer_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm3.py::test_integer_perfect_recon - AttributeError: `np.a... 138s FAILED tests/test_xfm3.py::test_float32_input - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm3.py::test_float32_recon - AttributeError: `np.asfarray`... 138s FAILED tests/test_xfm3.py::test_level_4_recon_discarding_level_1 - AttributeE... 138s FAILED tests/test_xfm3.py::test_level_4_discarding_level_1 - AttributeError: ... 138s ================== 83 failed, 42 passed, 214 skipped in 2.76s ================== 138s autopkgtest [01:08:06]: test command1: -----------------------] 139s command1 FAIL non-zero exit status 1 139s autopkgtest [01:08:07]: test command1: - - - - - - - - - - results - - - - - - - - - - 139s autopkgtest [01:08:07]: @@@@@@@@@@@@@@@@@@@@ summary 139s command1 FAIL non-zero exit status 1 156s nova [W] Skipping flock for amd64 156s Creating nova instance adt-plucky-i386-python-dtcwt-20250221-010548-juju-7f2275-prod-proposed-migration-environment-2-5905cfbb-879c-4c7e-a4fa-bbb61d14c52d from image adt/ubuntu-plucky-amd64-server-20250220.img (UUID 8ce549f8-ef4a-4335-bf9d-c468a6d98595)... 156s nova [W] Timed out waiting for 095fc8f8-7f99-4a71-bb5e-85024e233ce3 to get deleted.