0s autopkgtest [01:12:26]: starting date and time: 2025-02-21 01:12:26+0000 0s autopkgtest [01:12:26]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [01:12:26]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.l_8iidkv/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:numpy,src:geophar,src:mpi4py,src:onnxruntime,src:petsc4py,src:pyinstaller,src:sympy,src:umap-learn --apt-upgrade python-dtcwt --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=numpy/1:2.2.3+ds-2 geophar/18.10+dfsg1-6 mpi4py/4.0.3-1ubuntu1 onnxruntime/1.20.1+dfsg-2 petsc4py/3.22.3-1 pyinstaller/6.12.0+ds-2 sympy/1.13.3-3 umap-learn/0.5.4+dfsg-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@lcy02-7.secgroup --name adt-plucky-amd64-python-dtcwt-20250221-011226-juju-7f2275-prod-proposed-migration-environment-20-ea89c593-7d36-4b3f-898e-4d86f4a6a72e --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 45s autopkgtest [01:13:11]: testbed dpkg architecture: amd64 45s autopkgtest [01:13:11]: testbed apt version: 2.9.30ubuntu1 45s autopkgtest [01:13:11]: @@@@@@@@@@@@@@@@@@@@ test bed setup 45s autopkgtest [01:13:11]: testbed release detected to be: None 46s autopkgtest [01:13:12]: updating testbed package index (apt update) 46s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 46s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 46s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 46s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 46s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.8 kB] 46s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 46s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [732 kB] 46s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [91.8 kB] 46s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [138 kB] 46s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [110 kB] 46s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [7984 B] 46s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/restricted i386 Packages [2412 B] 46s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [266 kB] 46s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [697 kB] 46s Get:15 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [9128 B] 46s Get:16 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [22.5 kB] 46s Fetched 2205 kB in 0s (5633 kB/s) 47s Reading package lists... 47s Reading package lists... 48s Building dependency tree... 48s Reading state information... 48s Calculating upgrade... 48s Calculating upgrade... 48s The following NEW packages will be installed: 48s libjemalloc2 48s The following packages will be upgraded: 48s apparmor bind9-dnsutils bind9-host bind9-libs libapparmor1 tmux 48s 6 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 48s Need to get 3176 kB of archives. 48s After this operation, 1093 kB of additional disk space will be used. 48s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 libapparmor1 amd64 4.1.0~beta5-0ubuntu4 [54.6 kB] 48s Get:2 http://ftpmaster.internal/ubuntu plucky/main amd64 apparmor amd64 4.1.0~beta5-0ubuntu4 [700 kB] 48s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libjemalloc2 amd64 5.3.0-2build1 [256 kB] 48s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-dnsutils amd64 1:9.20.4-3ubuntu1 [169 kB] 48s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-host amd64 1:9.20.4-3ubuntu1 [51.9 kB] 48s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 bind9-libs amd64 1:9.20.4-3ubuntu1 [1380 kB] 48s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 tmux amd64 3.5a-3 [564 kB] 49s Preconfiguring packages ... 49s Fetched 3176 kB in 0s (32.6 MB/s) 49s (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 ... 108970 files and directories currently installed.) 49s Preparing to unpack .../0-libapparmor1_4.1.0~beta5-0ubuntu4_amd64.deb ... 49s Unpacking libapparmor1:amd64 (4.1.0~beta5-0ubuntu4) over (4.1.0~beta5-0ubuntu2) ... 49s Preparing to unpack .../1-apparmor_4.1.0~beta5-0ubuntu4_amd64.deb ... 50s Unpacking apparmor (4.1.0~beta5-0ubuntu4) over (4.1.0~beta5-0ubuntu2) ... 50s Selecting previously unselected package libjemalloc2:amd64. 50s Preparing to unpack .../2-libjemalloc2_5.3.0-2build1_amd64.deb ... 50s Unpacking libjemalloc2:amd64 (5.3.0-2build1) ... 50s Preparing to unpack .../3-bind9-dnsutils_1%3a9.20.4-3ubuntu1_amd64.deb ... 50s Unpacking bind9-dnsutils (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 50s Preparing to unpack .../4-bind9-host_1%3a9.20.4-3ubuntu1_amd64.deb ... 50s Unpacking bind9-host (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 50s Preparing to unpack .../5-bind9-libs_1%3a9.20.4-3ubuntu1_amd64.deb ... 50s Unpacking bind9-libs:amd64 (1:9.20.4-3ubuntu1) over (1:9.20.0-2ubuntu4) ... 50s Preparing to unpack .../6-tmux_3.5a-3_amd64.deb ... 50s Unpacking tmux (3.5a-3) over (3.4-7) ... 50s Setting up libapparmor1:amd64 (4.1.0~beta5-0ubuntu4) ... 50s Setting up libjemalloc2:amd64 (5.3.0-2build1) ... 50s Setting up apparmor (4.1.0~beta5-0ubuntu4) ... 50s Installing new version of config file /etc/apparmor.d/sbuild ... 50s Installing new version of config file /etc/apparmor.d/sbuild-abort ... 50s Installing new version of config file /etc/apparmor.d/sbuild-adduser ... 50s Installing new version of config file /etc/apparmor.d/sbuild-apt ... 50s Installing new version of config file /etc/apparmor.d/sbuild-checkpackages ... 50s Installing new version of config file /etc/apparmor.d/sbuild-clean ... 50s Installing new version of config file /etc/apparmor.d/sbuild-createchroot ... 50s Installing new version of config file /etc/apparmor.d/sbuild-destroychroot ... 50s Installing new version of config file /etc/apparmor.d/sbuild-distupgrade ... 50s Installing new version of config file /etc/apparmor.d/sbuild-hold ... 50s Installing new version of config file /etc/apparmor.d/sbuild-shell ... 50s Installing new version of config file /etc/apparmor.d/sbuild-unhold ... 50s Installing new version of config file /etc/apparmor.d/sbuild-update ... 50s Installing new version of config file /etc/apparmor.d/sbuild-upgrade ... 51s Reloading AppArmor profiles 53s Setting up tmux (3.5a-3) ... 53s Setting up bind9-libs:amd64 (1:9.20.4-3ubuntu1) ... 53s Setting up bind9-host (1:9.20.4-3ubuntu1) ... 53s Setting up bind9-dnsutils (1:9.20.4-3ubuntu1) ... 53s Processing triggers for systemd (257.2-3ubuntu1) ... 53s Processing triggers for man-db (2.13.0-1) ... 54s Processing triggers for debianutils (5.21) ... 54s Processing triggers for libc-bin (2.40-4ubuntu1) ... 54s Reading package lists... 55s Building dependency tree... 55s Reading state information... 55s Solving dependencies... 55s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 55s autopkgtest [01:13:21]: upgrading testbed (apt dist-upgrade and autopurge) 55s Reading package lists... 55s Building dependency tree... 55s Reading state information... 56s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 56s Starting 2 pkgProblemResolver with broken count: 0 56s Done 57s Entering ResolveByKeep 57s 57s Calculating upgrade... 57s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 57s Reading package lists... 57s Building dependency tree... 57s Reading state information... 58s Starting pkgProblemResolver with broken count: 0 58s Starting 2 pkgProblemResolver with broken count: 0 58s Done 58s Solving dependencies... 58s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 58s autopkgtest [01:13:24]: rebooting testbed after setup commands that affected boot 62s autopkgtest-virt-ssh: WARNING: ssh connection failed. Retrying in 3 seconds... 73s autopkgtest [01:13:39]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 16:02:16 UTC 2025 74s autopkgtest [01:13:40]: @@@@@@@@@@@@@@@@@@@@ apt-source python-dtcwt 75s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (dsc) [2520 B] 75s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (tar) [7457 kB] 75s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-dtcwt 0.12.0-5ubuntu1 (diff) [6792 B] 75s gpgv: Signature made Thu Jun 6 22:51:03 2024 UTC 75s gpgv: using RSA key 5C7ABEA20F8630459CC8C8B5E27F2CF8458C2FA4 75s gpgv: Can't check signature: No public key 75s dpkg-source: warning: cannot verify inline signature for ./python-dtcwt_0.12.0-5ubuntu1.dsc: no acceptable signature found 76s autopkgtest [01:13:42]: testing package python-dtcwt version 0.12.0-5ubuntu1 76s autopkgtest [01:13:42]: build not needed 76s autopkgtest [01:13:42]: test command1: preparing testbed 76s Reading package lists... 76s Building dependency tree... 76s Reading state information... 77s Starting pkgProblemResolver with broken count: 0 77s Starting 2 pkgProblemResolver with broken count: 0 77s Done 77s The following NEW packages will be installed: 77s libblas3 libgfortran5 liblapack3 liblbfgsb0 python3-all python3-decorator 77s python3-dtcwt python3-iniconfig python3-numpy python3-numpy-dev 77s python3-packaging python3-pluggy python3-pytest python3-scipy python3-six 77s python3.12 python3.12-minimal 77s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 77s Need to get 38.9 MB of archives. 77s After this operation, 191 MB of additional disk space will be used. 77s Get:1 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12-minimal amd64 3.12.9-1 [2348 kB] 77s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-numpy-dev amd64 1:2.2.3+ds-2 [147 kB] 77s Get:3 http://ftpmaster.internal/ubuntu plucky/main amd64 libblas3 amd64 3.12.1-2 [359 kB] 77s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 libgfortran5 amd64 15-20250213-1ubuntu1 [920 kB] 77s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 liblapack3 amd64 3.12.1-2 [3179 kB] 77s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 python3-numpy amd64 1:2.2.3+ds-2 [8537 kB] 77s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 python3.12 amd64 3.12.9-1 [671 kB] 77s Get:8 http://ftpmaster.internal/ubuntu plucky/universe amd64 liblbfgsb0 amd64 3.0+dfsg.4-1build1 [29.9 kB] 77s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-all amd64 3.13.1-1~exp2 [894 B] 77s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-decorator all 5.1.1-5 [10.1 kB] 77s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-six all 1.17.0-1 [13.2 kB] 77s Get:12 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-dtcwt all 0.12.0-5ubuntu1 [54.6 kB] 77s Get:13 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 77s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 python3-packaging all 24.2-1 [51.5 kB] 77s Get:15 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 77s Get:16 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-pytest all 8.3.4-1 [252 kB] 77s Get:17 http://ftpmaster.internal/ubuntu plucky/universe amd64 python3-scipy amd64 1.14.1-4ubuntu1 [22.3 MB] 78s Fetched 38.9 MB in 0s (113 MB/s) 78s Selecting previously unselected package python3.12-minimal. 78s (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.) 78s Preparing to unpack .../00-python3.12-minimal_3.12.9-1_amd64.deb ... 78s Unpacking python3.12-minimal (3.12.9-1) ... 78s Selecting previously unselected package python3-numpy-dev:amd64. 78s Preparing to unpack .../01-python3-numpy-dev_1%3a2.2.3+ds-2_amd64.deb ... 78s Unpacking python3-numpy-dev:amd64 (1:2.2.3+ds-2) ... 78s Selecting previously unselected package libblas3:amd64. 78s Preparing to unpack .../02-libblas3_3.12.1-2_amd64.deb ... 78s Unpacking libblas3:amd64 (3.12.1-2) ... 78s Selecting previously unselected package libgfortran5:amd64. 78s Preparing to unpack .../03-libgfortran5_15-20250213-1ubuntu1_amd64.deb ... 78s Unpacking libgfortran5:amd64 (15-20250213-1ubuntu1) ... 78s Selecting previously unselected package liblapack3:amd64. 78s Preparing to unpack .../04-liblapack3_3.12.1-2_amd64.deb ... 78s Unpacking liblapack3:amd64 (3.12.1-2) ... 78s Selecting previously unselected package python3-numpy. 78s Preparing to unpack .../05-python3-numpy_1%3a2.2.3+ds-2_amd64.deb ... 78s Unpacking python3-numpy (1:2.2.3+ds-2) ... 79s Selecting previously unselected package python3.12. 79s Preparing to unpack .../06-python3.12_3.12.9-1_amd64.deb ... 79s Unpacking python3.12 (3.12.9-1) ... 79s Selecting previously unselected package liblbfgsb0:amd64. 79s Preparing to unpack .../07-liblbfgsb0_3.0+dfsg.4-1build1_amd64.deb ... 79s Unpacking liblbfgsb0:amd64 (3.0+dfsg.4-1build1) ... 79s Selecting previously unselected package python3-all. 79s Preparing to unpack .../08-python3-all_3.13.1-1~exp2_amd64.deb ... 79s Unpacking python3-all (3.13.1-1~exp2) ... 79s Selecting previously unselected package python3-decorator. 79s Preparing to unpack .../09-python3-decorator_5.1.1-5_all.deb ... 79s Unpacking python3-decorator (5.1.1-5) ... 79s Selecting previously unselected package python3-six. 79s Preparing to unpack .../10-python3-six_1.17.0-1_all.deb ... 79s Unpacking python3-six (1.17.0-1) ... 79s Selecting previously unselected package python3-dtcwt. 79s Preparing to unpack .../11-python3-dtcwt_0.12.0-5ubuntu1_all.deb ... 79s Unpacking python3-dtcwt (0.12.0-5ubuntu1) ... 79s Selecting previously unselected package python3-iniconfig. 79s Preparing to unpack .../12-python3-iniconfig_1.1.1-2_all.deb ... 79s Unpacking python3-iniconfig (1.1.1-2) ... 79s Selecting previously unselected package python3-packaging. 79s Preparing to unpack .../13-python3-packaging_24.2-1_all.deb ... 79s Unpacking python3-packaging (24.2-1) ... 79s Selecting previously unselected package python3-pluggy. 79s Preparing to unpack .../14-python3-pluggy_1.5.0-1_all.deb ... 79s Unpacking python3-pluggy (1.5.0-1) ... 79s Selecting previously unselected package python3-pytest. 79s Preparing to unpack .../15-python3-pytest_8.3.4-1_all.deb ... 79s Unpacking python3-pytest (8.3.4-1) ... 79s Selecting previously unselected package python3-scipy. 79s Preparing to unpack .../16-python3-scipy_1.14.1-4ubuntu1_amd64.deb ... 79s Unpacking python3-scipy (1.14.1-4ubuntu1) ... 80s Setting up python3-iniconfig (1.1.1-2) ... 80s Setting up python3.12-minimal (3.12.9-1) ... 80s Setting up python3.12 (3.12.9-1) ... 81s Setting up python3-all (3.13.1-1~exp2) ... 81s Setting up python3-six (1.17.0-1) ... 82s Setting up python3-decorator (5.1.1-5) ... 82s Setting up libblas3:amd64 (3.12.1-2) ... 82s 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 82s Setting up python3-packaging (24.2-1) ... 82s Setting up python3-numpy-dev:amd64 (1:2.2.3+ds-2) ... 82s Setting up libgfortran5:amd64 (15-20250213-1ubuntu1) ... 82s Setting up python3-pluggy (1.5.0-1) ... 82s Setting up liblapack3:amd64 (3.12.1-2) ... 82s 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 82s Setting up python3-pytest (8.3.4-1) ... 83s Setting up python3-numpy (1:2.2.3+ds-2) ... 86s Setting up liblbfgsb0:amd64 (3.0+dfsg.4-1build1) ... 86s Setting up python3-dtcwt (0.12.0-5ubuntu1) ... 86s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 86s """Return a resampled version of *im* scaled to *shape*. 86s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 86s """ 86s /usr/lib/python3/dist-packages/dtcwt/sampling.py:132: SyntaxWarning: invalid escape sequence '\i' 86s """Return a resampled version of *im* scaled to *shape*. 86s /usr/lib/python3/dist-packages/dtcwt/tf/lowlevel.py:208: SyntaxWarning: invalid escape sequence '\p' 86s """ 86s Setting up python3-scipy (1.14.1-4ubuntu1) ... 93s Processing triggers for systemd (257.2-3ubuntu1) ... 93s Processing triggers for man-db (2.13.0-1) ... 93s Processing triggers for libc-bin (2.40-4ubuntu1) ... 94s autopkgtest [01:14:00]: test command1: set -e ; cp -r tests $AUTOPKGTEST_TMP ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -m pytest -v tests ; done 94s autopkgtest [01:14:00]: test command1: [----------------------- 94s Testing with python3.12: 94s ============================= test session starts ============================== 94s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12 94s cachedir: .pytest_cache 94s rootdir: /tmp/autopkgtest.F3GjY1/autopkgtest_tmp 94s plugins: typeguard-4.4.1 95s collecting ... collected 339 items 95s 95s tests/test_againstmatlab.py::test_mandrill_loaded PASSED [ 0%] 95s tests/test_againstmatlab.py::test_coldfilt FAILED [ 0%] 95s tests/test_againstmatlab.py::test_dtwavexfm2 FAILED [ 0%] 95s tests/test_againstmatlab.py::test_dtwavexfm2b FAILED [ 1%] 95s tests/test_againstmatlab.py::test_rescale_highpass FAILED [ 1%] 95s tests/test_againstmatlab.py::test_transform3d_numpy FAILED [ 1%] 95s tests/test_coeffs.py::test_antonini PASSED [ 2%] 95s tests/test_coeffs.py::test_legall PASSED [ 2%] 95s tests/test_coeffs.py::test_near_sym_a PASSED [ 2%] 95s tests/test_coeffs.py::test_qshift_06 PASSED [ 2%] 95s tests/test_coeffs.py::test_qshift_a PASSED [ 3%] 95s tests/test_coeffs.py::test_qshift_b PASSED [ 3%] 95s tests/test_coeffs.py::test_qshift_c PASSED [ 3%] 95s tests/test_coeffs.py::test_qshift_d PASSED [ 4%] 95s tests/test_coeffs.py::test_non_exist_biort PASSED [ 4%] 95s tests/test_coeffs.py::test_non_exist_qshift PASSED [ 4%] 95s tests/test_coeffs.py::test_wrong_type_a PASSED [ 5%] 95s tests/test_coeffs.py::test_wrong_type_b PASSED [ 5%] 95s tests/test_coldfilt.py::test_mandrill_loaded PASSED [ 5%] 95s tests/test_coldfilt.py::test_odd_filter FAILED [ 5%] 95s tests/test_coldfilt.py::test_different_size FAILED [ 6%] 95s tests/test_coldfilt.py::test_bad_input_size FAILED [ 6%] 95s tests/test_coldfilt.py::test_good_input_size FAILED [ 6%] 95s tests/test_coldfilt.py::test_good_input_size_non_orthogonal FAILED [ 7%] 95s tests/test_coldfilt.py::test_output_size FAILED [ 7%] 95s tests/test_colfilter.py::test_mandrill_loaded PASSED [ 7%] 95s tests/test_colfilter.py::test_odd_size FAILED [ 7%] 95s tests/test_colfilter.py::test_even_size FAILED [ 8%] 95s tests/test_colfilter.py::test_qshift FAILED [ 8%] 95s tests/test_colfilter.py::test_biort FAILED [ 8%] 96s tests/test_colfilter.py::test_odd_size_non_array FAILED [ 9%] 96s tests/test_colfilter.py::test_even_size_non_array FAILED [ 9%] 96s tests/test_colifilt.py::test_mandrill_loaded PASSED [ 9%] 96s tests/test_colifilt.py::test_odd_filter FAILED [ 10%] 96s tests/test_colifilt.py::test_different_size_h FAILED [ 10%] 96s tests/test_colifilt.py::test_zero_input FAILED [ 10%] 96s tests/test_colifilt.py::test_bad_input_size FAILED [ 10%] 96s tests/test_colifilt.py::test_good_input_size FAILED [ 11%] 96s tests/test_colifilt.py::test_output_size FAILED [ 11%] 96s tests/test_colifilt.py::test_non_orthogonal_input FAILED [ 11%] 96s tests/test_colifilt.py::test_output_size_non_mult_4 FAILED [ 12%] 96s tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 FAILED [ 12%] 96s tests/test_ifm1.py::test_reconstruct FAILED [ 12%] 96s tests/test_ifm1.py::test_reconstruct_2d FAILED [ 12%] 96s tests/test_ifm1.py::test_float32_input FAILED [ 13%] 96s tests/test_ifm2.py::test_mandrill_loaded PASSED [ 13%] 96s tests/test_ifm2.py::test_reconstruct FAILED [ 13%] 96s tests/test_ifm2.py::test_reconstruct_crop FAILED [ 14%] 96s tests/test_ifm2.py::test_reconstruct_custom_filter FAILED [ 14%] 96s tests/test_ifm2.py::test_float32_input FAILED [ 14%] 96s tests/test_import.py::test PASSED [ 15%] 96s tests/test_openclcoldfilt.py::test_mandrill_loaded PASSED [ 15%] 96s tests/test_openclcoldfilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 15%] 96s tests/test_openclcoldfilt.py::test_different_size SKIPPED (OpenCL no...) [ 15%] 96s tests/test_openclcoldfilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 16%] 96s tests/test_openclcoldfilt.py::test_real_wavelet SKIPPED (OpenCL not ...) [ 16%] 96s tests/test_openclcoldfilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 16%] 96s tests/test_openclcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 17%] 96s tests/test_openclcoldfilt.py::test_output_size SKIPPED (OpenCL not p...) [ 17%] 96s tests/test_openclcoldfilt.py::test_qshift SKIPPED (OpenCL not present) [ 17%] 96s tests/test_openclcolfilter.py::test_mandrill_loaded PASSED [ 17%] 96s tests/test_openclcolfilter.py::test_odd_size SKIPPED (OpenCL not pre...) [ 18%] 96s tests/test_openclcolfilter.py::test_even_size SKIPPED (OpenCL not pr...) [ 18%] 96s tests/test_openclcolfilter.py::test_qshift SKIPPED (OpenCL not present) [ 18%] 96s tests/test_openclcolfilter.py::test_biort SKIPPED (OpenCL not present) [ 19%] 96s tests/test_openclcolfilter.py::test_odd_size_non_array SKIPPED (Open...) [ 19%] 96s tests/test_openclcolfilter.py::test_even_size_non_array SKIPPED (Ope...) [ 19%] 96s tests/test_openclcolifilt.py::test_mandrill_loaded PASSED [ 20%] 96s tests/test_openclcolifilt.py::test_odd_filter SKIPPED (OpenCL not pr...) [ 20%] 96s tests/test_openclcolifilt.py::test_different_size_h SKIPPED (OpenCL ...) [ 20%] 96s tests/test_openclcolifilt.py::test_zero_input SKIPPED (OpenCL not pr...) [ 20%] 96s tests/test_openclcolifilt.py::test_bad_input_size SKIPPED (OpenCL no...) [ 21%] 96s tests/test_openclcolifilt.py::test_good_input_size SKIPPED (OpenCL n...) [ 21%] 96s tests/test_openclcolifilt.py::test_output_size SKIPPED (OpenCL not p...) [ 21%] 96s tests/test_openclcolifilt.py::test_non_orthogonal_input SKIPPED (Ope...) [ 22%] 96s tests/test_openclcolifilt.py::test_output_size_non_mult_4 SKIPPED (O...) [ 22%] 96s tests/test_openclcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 22%] 96s tests/test_openclcolifilt.py::test_qshift SKIPPED (OpenCL not present) [ 23%] 96s tests/test_openclcolifilt.py::test_qshift_odd_len_input_2 SKIPPED (O...) [ 23%] 96s tests/test_openclcolifilt.py::test_qshift_even_input SKIPPED (OpenCL...) [ 23%] 96s tests/test_openclxfm2.py::test_mandrill_loaded PASSED [ 23%] 96s tests/test_openclxfm2.py::test_simple SKIPPED (OpenCL not present) [ 24%] 96s tests/test_openclxfm2.py::test_specific_wavelet SKIPPED (OpenCL not ...) [ 24%] 96s tests/test_openclxfm2.py::test_1d SKIPPED (OpenCL not present) [ 24%] 96s tests/test_openclxfm2.py::test_3d SKIPPED (OpenCL not present) [ 25%] 96s tests/test_openclxfm2.py::test_simple_w_scale SKIPPED (OpenCL not pr...) [ 25%] 96s tests/test_openclxfm2.py::test_odd_rows SKIPPED (OpenCL not present) [ 25%] 96s tests/test_openclxfm2.py::test_odd_cols SKIPPED (OpenCL not present) [ 25%] 96s tests/test_openclxfm2.py::test_odd_rows_and_cols SKIPPED (OpenCL not...) [ 26%] 96s tests/test_openclxfm2.py::test_0_levels SKIPPED (OpenCL not present) [ 26%] 96s tests/test_openclxfm2.py::test_modified SKIPPED (OpenCL not present) [ 26%] 96s tests/test_reflect.py::test_linear_ramp_boundaries PASSED [ 27%] 96s tests/test_reflect.py::test_linear_ramp_values PASSED [ 27%] 96s tests/test_reflect.py::test_non_array_input PASSED [ 27%] 96s tests/test_registration.py::test_frames_loaded PASSED [ 28%] 96s tests/test_registration.py::test_estimatereg FAILED [ 28%] 96s tests/test_sampling.py::test_rescale_lanczos PASSED [ 28%] 96s tests/test_sampling.py::test_rescale_bilinear PASSED [ 28%] 96s tests/test_sampling.py::test_rescale_nearest PASSED [ 29%] 96s tests/test_switchbackends.py::TestSwitchBackends::test_default_backend PASSED [ 29%] 96s tests/test_switchbackends.py::TestSwitchBackends::test_no_pop_default_backend PASSED [ 29%] 96s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_invalid PASSED [ 30%] 96s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_numpy PASSED [ 30%] 96s tests/test_switchbackends.py::TestSwitchBackends::test_switch_to_opencl SKIPPED [ 30%] 96s tests/test_switchbackends.py::test_backend_with_guard PASSED [ 30%] 96s tests/test_switchbackends.py::test_backend_with_guard_and_exception PASSED [ 31%] 96s tests/test_tfTransform1d.py::test_simple SKIPPED (Tensorflow not pre...) [ 31%] 96s tests/test_tfTransform1d.py::test_simple_with_no_levels SKIPPED (Ten...) [ 31%] 96s tests/test_tfTransform1d.py::test_simple_with_scale SKIPPED (Tensorf...) [ 32%] 96s tests/test_tfTransform1d.py::test_simple_with_scale_and_no_levels SKIPPED [ 32%] 96s tests/test_tfTransform1d.py::test_perfect_recon SKIPPED (Tensorflow ...) [ 32%] 96s tests/test_tfTransform1d.py::test_simple_custom_filter SKIPPED (Tens...) [ 33%] 96s tests/test_tfTransform1d.py::test_single_level SKIPPED (Tensorflow n...) [ 33%] 96s tests/test_tfTransform1d.py::test_non_multiple_of_two SKIPPED (Tenso...) [ 33%] 96s tests/test_tfTransform1d.py::test_2d SKIPPED (Tensorflow not present) [ 33%] 96s tests/test_tfTransform1d.py::test_integer_input SKIPPED (Tensorflow ...) [ 34%] 96s tests/test_tfTransform1d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 34%] 96s tests/test_tfTransform1d.py::test_float32_input SKIPPED (Tensorflow ...) [ 34%] 96s tests/test_tfTransform1d.py::test_reconstruct SKIPPED (Tensorflow no...) [ 35%] 96s tests/test_tfTransform1d.py::test_reconstruct_2d SKIPPED (Tensorflow...) [ 35%] 96s tests/test_tfTransform1d.py::test_float32_input_inv SKIPPED (Tensorf...) [ 35%] 96s tests/test_tfTransform1d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 35%] 96s tests/test_tfTransform1d.py::test_numpy_in_batch SKIPPED (Tensorflow...) [ 36%] 96s tests/test_tfTransform1d.py::test_1d_input SKIPPED (Tensorflow not p...) [ 36%] 96s tests/test_tfTransform1d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 36%] 96s tests/test_tfTransform1d.py::test_3d_input SKIPPED (Tensorflow not p...) [ 37%] 96s tests/test_tfTransform1d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 37%] 96s tests/test_tfTransform1d.py::test_return_type SKIPPED (Tensorflow no...) [ 37%] 96s tests/test_tfTransform1d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 38%] 96s tests/test_tfTransform1d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 38%] 96s tests/test_tfTransform1d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 38%] 96s tests/test_tfTransform1d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 38%] 96s tests/test_tfTransform1d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 39%] 96s tests/test_tfTransform1d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 39%] 96s tests/test_tfTransform1d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 39%] 96s tests/test_tfTransform1d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 40%] 96s tests/test_tfTransform1d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 40%] 96s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 40%] 96s tests/test_tfTransform1d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 41%] 96s tests/test_tfTransform1d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 41%] 96s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 41%] 96s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 41%] 96s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 42%] 96s tests/test_tfTransform1d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 42%] 96s tests/test_tfTransform2d.py::test_mandrill_loaded SKIPPED (Tensorflo...) [ 42%] 96s tests/test_tfTransform2d.py::test_simple SKIPPED (Tensorflow not pre...) [ 43%] 96s tests/test_tfTransform2d.py::test_specific_wavelet SKIPPED (Tensorfl...) [ 43%] 96s tests/test_tfTransform2d.py::test_1d SKIPPED (Tensorflow not present) [ 43%] 96s tests/test_tfTransform2d.py::test_3d SKIPPED (Tensorflow not present) [ 43%] 96s tests/test_tfTransform2d.py::test_simple_w_scale SKIPPED (Tensorflow...) [ 44%] 96s tests/test_tfTransform2d.py::test_odd_rows SKIPPED (Tensorflow not p...) [ 44%] 96s tests/test_tfTransform2d.py::test_odd_rows_w_scale SKIPPED (Tensorfl...) [ 44%] 96s tests/test_tfTransform2d.py::test_odd_cols SKIPPED (Tensorflow not p...) [ 45%] 96s tests/test_tfTransform2d.py::test_odd_cols_w_scale SKIPPED (Tensorfl...) [ 45%] 96s tests/test_tfTransform2d.py::test_odd_rows_and_cols SKIPPED (Tensorf...) [ 45%] 96s tests/test_tfTransform2d.py::test_odd_rows_and_cols_w_scale SKIPPED [ 46%] 96s tests/test_tfTransform2d.py::test_rot_symm_modified SKIPPED (Tensorf...) [ 46%] 96s tests/test_tfTransform2d.py::test_0_levels SKIPPED (Tensorflow not p...) [ 46%] 96s tests/test_tfTransform2d.py::test_0_levels_w_scale SKIPPED (Tensorfl...) [ 46%] 96s tests/test_tfTransform2d.py::test_integer_input SKIPPED (Tensorflow ...) [ 47%] 96s tests/test_tfTransform2d.py::test_integer_perfect_recon SKIPPED (Ten...) [ 47%] 96s tests/test_tfTransform2d.py::test_mandrill_perfect_recon SKIPPED (Te...) [ 47%] 96s tests/test_tfTransform2d.py::test_float32_input SKIPPED (Tensorflow ...) [ 48%] 96s tests/test_tfTransform2d.py::test_numpy_in SKIPPED (Tensorflow not p...) [ 48%] 96s tests/test_tfTransform2d.py::test_numpy_in_batch[nhw] SKIPPED (Tenso...) [ 48%] 96s tests/test_tfTransform2d.py::test_numpy_in_batch[chw] SKIPPED (Tenso...) [ 48%] 96s tests/test_tfTransform2d.py::test_numpy_in_batch[hwn] SKIPPED (Tenso...) [ 49%] 96s tests/test_tfTransform2d.py::test_numpy_in_batch[hwc] SKIPPED (Tenso...) [ 49%] 96s tests/test_tfTransform2d.py::test_numpy_batch_ch[nhwc] SKIPPED (Tens...) [ 49%] 96s tests/test_tfTransform2d.py::test_numpy_batch_ch[nchw] SKIPPED (Tens...) [ 50%] 96s tests/test_tfTransform2d.py::test_2d_input SKIPPED (Tensorflow not p...) [ 50%] 96s tests/test_tfTransform2d.py::test_3d_input[nhw] SKIPPED (Tensorflow ...) [ 50%] 96s tests/test_tfTransform2d.py::test_3d_input[hwn] SKIPPED (Tensorflow ...) [ 51%] 96s tests/test_tfTransform2d.py::test_4d_input[nhwc] SKIPPED (Tensorflow...) [ 51%] 96s tests/test_tfTransform2d.py::test_4d_input[nchw] SKIPPED (Tensorflow...) [ 51%] 96s tests/test_tfTransform2d.py::test_2d_input_ph SKIPPED (Tensorflow no...) [ 51%] 96s tests/test_tfTransform2d.py::test_3d_input_ph SKIPPED (Tensorflow no...) [ 52%] 96s tests/test_tfTransform2d.py::test_4d_input_ph SKIPPED (Tensorflow no...) [ 52%] 96s tests/test_tfTransform2d.py::test_return_type SKIPPED (Tensorflow no...) [ 52%] 96s tests/test_tfTransform2d.py::test_results_match[test_input0-antonini-qshift_a] SKIPPED [ 53%] 96s tests/test_tfTransform2d.py::test_results_match[test_input1-legall-qshift_a] SKIPPED [ 53%] 96s tests/test_tfTransform2d.py::test_results_match[test_input2-near_sym_a-qshift_c] SKIPPED [ 53%] 96s tests/test_tfTransform2d.py::test_results_match[test_input3-near_sym_b-qshift_d] SKIPPED [ 53%] 96s tests/test_tfTransform2d.py::test_results_match[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 54%] 96s tests/test_tfTransform2d.py::test_results_match_inverse[test_input0-antonini-qshift_c] SKIPPED [ 54%] 96s tests/test_tfTransform2d.py::test_results_match_inverse[test_input1-near_sym_a-qshift_a] SKIPPED [ 54%] 96s tests/test_tfTransform2d.py::test_results_match_inverse[test_input2-legall-qshift_c] SKIPPED [ 55%] 96s tests/test_tfTransform2d.py::test_results_match_inverse[test_input3-near_sym_b-qshift_06] SKIPPED [ 55%] 96s tests/test_tfTransform2d.py::test_results_match_inverse[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 55%] 96s tests/test_tfTransform2d.py::test_results_match_invmask[antonini-qshift_c-gain_mask0] SKIPPED [ 56%] 96s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_a-qshift_a-gain_mask1] SKIPPED [ 56%] 96s tests/test_tfTransform2d.py::test_results_match_invmask[legall-qshift_c-gain_mask2] SKIPPED [ 56%] 96s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b-qshift_06-gain_mask3] SKIPPED [ 56%] 96s tests/test_tfTransform2d.py::test_results_match_invmask[near_sym_b_bp-qshift_b_bp-gain_mask4] SKIPPED [ 57%] 96s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input0-antonini-qshift_06] SKIPPED [ 57%] 96s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input1-near_sym_b-qshift_a] SKIPPED [ 57%] 96s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input2-near_sym_b-qshift_c] SKIPPED [ 58%] 96s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input3-near_sym_a-qshift_a] SKIPPED [ 58%] 96s tests/test_tfTransform2d.py::test_results_match_endtoend[test_input4-near_sym_b_bp-qshift_b_bp] SKIPPED [ 58%] 96s tests/test_tfTransform2d.py::test_forward_channels[nhwc] SKIPPED (Te...) [ 58%] 96s tests/test_tfTransform2d.py::test_forward_channels[nchw] SKIPPED (Te...) [ 59%] 96s tests/test_tfTransform2d.py::test_inverse_channels[nhwc] SKIPPED (Te...) [ 59%] 96s tests/test_tfTransform2d.py::test_inverse_channels[nchw] SKIPPED (Te...) [ 59%] 96s tests/test_tfcoldfilt.py::test_setup SKIPPED (Tensorflow not present) [ 60%] 96s tests/test_tfcoldfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 60%] 96s tests/test_tfcoldfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 60%] 96s tests/test_tfcoldfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 61%] 96s tests/test_tfcoldfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 61%] 96s tests/test_tfcoldfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 61%] 96s tests/test_tfcoldfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 61%] 96s tests/test_tfcoldfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 62%] 96s tests/test_tfcoldfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 62%] 96s tests/test_tfcoldfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 62%] 96s tests/test_tfcoldfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 63%] 96s tests/test_tfcolfilter.py::test_setup SKIPPED (Tensorflow not present) [ 63%] 96s tests/test_tfcolfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 63%] 96s tests/test_tfcolfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 64%] 96s tests/test_tfcolfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 64%] 96s tests/test_tfcolfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 64%] 96s tests/test_tfcolfilter.py::test_biort SKIPPED (Tensorflow not present) [ 64%] 96s tests/test_tfcolfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 65%] 96s tests/test_tfcolfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 65%] 96s tests/test_tfcolfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 65%] 96s tests/test_tfcolfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 66%] 96s tests/test_tfcolfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 66%] 96s tests/test_tfcolfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 66%] 96s tests/test_tfcolifilt.py::test_setup SKIPPED (Tensorflow not present) [ 66%] 96s tests/test_tfcolifilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 67%] 96s tests/test_tfcolifilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 67%] 96s tests/test_tfcolifilt.py::test_different_size_h SKIPPED (Tensorflow ...) [ 67%] 96s tests/test_tfcolifilt.py::test_zero_input SKIPPED (Tensorflow not pr...) [ 68%] 96s tests/test_tfcolifilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 68%] 96s tests/test_tfcolifilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 68%] 96s tests/test_tfcolifilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 69%] 96s tests/test_tfcolifilt.py::test_non_orthogonal_input SKIPPED (Tensorf...) [ 69%] 96s tests/test_tfcolifilt.py::test_output_size_non_mult_4 SKIPPED (Tenso...) [ 69%] 96s tests/test_tfcolifilt.py::test_non_orthogonal_input_non_mult_4 SKIPPED [ 69%] 96s tests/test_tfcolifilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 70%] 96s tests/test_tfcolifilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 70%] 96s tests/test_tfcolifilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 70%] 96s tests/test_tfinputshapes.py::test_scales[2-False] SKIPPED (Tensorflo...) [ 71%] 96s tests/test_tfinputshapes.py::test_scales[2-True] SKIPPED (Tensorflow...) [ 71%] 96s tests/test_tfinputshapes.py::test_scales[4-False] SKIPPED (Tensorflo...) [ 71%] 96s tests/test_tfinputshapes.py::test_scales[3-True] SKIPPED (Tensorflow...) [ 71%] 96s tests/test_tfinputshapes.py::test_2d_input_tuple[2-False] SKIPPED (T...) [ 72%] 96s tests/test_tfinputshapes.py::test_2d_input_tuple[2-True] SKIPPED (Te...) [ 72%] 96s tests/test_tfinputshapes.py::test_2d_input_tuple[4-False] SKIPPED (T...) [ 72%] 96s tests/test_tfinputshapes.py::test_2d_input_tuple[3-True] SKIPPED (Te...) [ 73%] 96s tests/test_tfinputshapes.py::test_batch_input[2-False-None] SKIPPED [ 73%] 96s tests/test_tfinputshapes.py::test_batch_input[2-True-10] SKIPPED (Te...) [ 73%] 96s tests/test_tfinputshapes.py::test_batch_input[4-False-None] SKIPPED [ 74%] 96s tests/test_tfinputshapes.py::test_batch_input[3-True-2] SKIPPED (Ten...) [ 74%] 96s tests/test_tfinputshapes.py::test_batch_input_tuple[2-False-None] SKIPPED [ 74%] 96s tests/test_tfinputshapes.py::test_batch_input_tuple[2-True-10] SKIPPED [ 74%] 96s tests/test_tfinputshapes.py::test_batch_input_tuple[4-False-None] SKIPPED [ 75%] 96s tests/test_tfinputshapes.py::test_batch_input_tuple[3-True-2] SKIPPED [ 75%] 96s tests/test_tfinputshapes.py::test_multichannel[2-5] SKIPPED (Tensorf...) [ 75%] 96s tests/test_tfinputshapes.py::test_multichannel[2-2] SKIPPED (Tensorf...) [ 76%] 96s tests/test_tfinputshapes.py::test_multichannel[4-10] SKIPPED (Tensor...) [ 76%] 96s tests/test_tfinputshapes.py::test_multichannel[3-6] SKIPPED (Tensorf...) [ 76%] 96s tests/test_tfrowdfilt.py::test_setup SKIPPED (Tensorflow not present) [ 76%] 96s tests/test_tfrowdfilt.py::test_mandrill_loaded SKIPPED (Tensorflow n...) [ 77%] 96s tests/test_tfrowdfilt.py::test_odd_filter SKIPPED (Tensorflow not pr...) [ 77%] 96s tests/test_tfrowdfilt.py::test_different_size SKIPPED (Tensorflow no...) [ 77%] 96s tests/test_tfrowdfilt.py::test_bad_input_size SKIPPED (Tensorflow no...) [ 78%] 96s tests/test_tfrowdfilt.py::test_good_input_size SKIPPED (Tensorflow n...) [ 78%] 96s tests/test_tfrowdfilt.py::test_good_input_size_non_orthogonal SKIPPED [ 78%] 96s tests/test_tfrowdfilt.py::test_output_size SKIPPED (Tensorflow not p...) [ 79%] 96s tests/test_tfrowdfilt.py::test_equal_small_in SKIPPED (Tensorflow no...) [ 79%] 96s tests/test_tfrowdfilt.py::test_equal_numpy_qshift1 SKIPPED (Tensorfl...) [ 79%] 96s tests/test_tfrowdfilt.py::test_equal_numpy_qshift2 SKIPPED (Tensorfl...) [ 79%] 96s tests/test_tfrowfilter.py::test_setup SKIPPED (Tensorflow not present) [ 80%] 96s tests/test_tfrowfilter.py::test_mandrill_loaded SKIPPED (Tensorflow ...) [ 80%] 96s tests/test_tfrowfilter.py::test_odd_size SKIPPED (Tensorflow not pre...) [ 80%] 96s tests/test_tfrowfilter.py::test_even_size SKIPPED (Tensorflow not pr...) [ 81%] 96s tests/test_tfrowfilter.py::test_qshift SKIPPED (Tensorflow not present) [ 81%] 96s tests/test_tfrowfilter.py::test_biort SKIPPED (Tensorflow not present) [ 81%] 96s tests/test_tfrowfilter.py::test_even_size_batch SKIPPED (Tensorflow ...) [ 82%] 96s tests/test_tfrowfilter.py::test_equal_small_in SKIPPED (Tensorflow n...) [ 82%] 96s tests/test_tfrowfilter.py::test_equal_numpy_biort1 SKIPPED (Tensorfl...) [ 82%] 96s tests/test_tfrowfilter.py::test_equal_numpy_biort2 SKIPPED (Tensorfl...) [ 82%] 96s tests/test_tfrowfilter.py::test_equal_numpy_qshift1 SKIPPED (Tensorf...) [ 83%] 96s tests/test_tfrowfilter.py::test_equal_numpy_qshift2 SKIPPED (Tensorf...) [ 83%] 96s tests/test_utils.py::test_complex_type_for_complex FAILED [ 83%] 96s tests/test_utils.py::test_complex_type_for_float FAILED [ 84%] 96s tests/test_utils.py::test_draw_circ PASSED [ 84%] 96s tests/test_utils.py::test_draw_edge PASSED [ 84%] 96s tests/test_utils.py::test_stacked_2d_matrix_vector_product PASSED [ 84%] 96s tests/test_utils.py::test_stacked_2d_vector_matrix_product PASSED [ 85%] 96s tests/test_utils.py::test_stacked_2d_matrix_matrix_product PASSED [ 85%] 96s tests/test_xfm1.py::test_simple FAILED [ 85%] 96s tests/test_xfm1.py::test_simple_with_no_levels FAILED [ 86%] 96s tests/test_xfm1.py::test_simple_with_scale FAILED [ 86%] 96s tests/test_xfm1.py::test_simple_with_scale_and_no_levels FAILED [ 86%] 96s tests/test_xfm1.py::test_perfect_recon FAILED [ 87%] 96s tests/test_xfm1.py::test_simple_custom_filter FAILED [ 87%] 96s tests/test_xfm1.py::test_single_level FAILED [ 87%] 96s tests/test_xfm1.py::test_non_multiple_of_two FAILED [ 87%] 96s tests/test_xfm1.py::test_2d FAILED [ 88%] 97s tests/test_xfm1.py::test_integer_input FAILED [ 88%] 97s tests/test_xfm1.py::test_integer_perfect_recon FAILED [ 88%] 97s tests/test_xfm1.py::test_float32_input FAILED [ 89%] 97s tests/test_xfm2.py::test_mandrill_loaded PASSED [ 89%] 97s tests/test_xfm2.py::test_simple FAILED [ 89%] 97s tests/test_xfm2.py::test_specific_wavelet FAILED [ 89%] 97s tests/test_xfm2.py::test_1d FAILED [ 90%] 97s tests/test_xfm2.py::test_3d FAILED [ 90%] 97s tests/test_xfm2.py::test_simple_w_scale FAILED [ 90%] 97s tests/test_xfm2.py::test_odd_rows FAILED [ 91%] 97s tests/test_xfm2.py::test_odd_rows_w_scale FAILED [ 91%] 97s tests/test_xfm2.py::test_odd_cols FAILED [ 91%] 97s tests/test_xfm2.py::test_odd_cols_w_scale FAILED [ 92%] 97s tests/test_xfm2.py::test_odd_rows_and_cols FAILED [ 92%] 97s tests/test_xfm2.py::test_odd_rows_and_cols_w_scale FAILED [ 92%] 97s tests/test_xfm2.py::test_rot_symm_modified FAILED [ 92%] 97s tests/test_xfm2.py::test_0_levels FAILED [ 93%] 97s tests/test_xfm2.py::test_0_levels_w_scale FAILED [ 93%] 97s tests/test_xfm2.py::test_integer_input FAILED [ 93%] 97s tests/test_xfm2.py::test_integer_perfect_recon FAILED [ 94%] 97s tests/test_xfm2.py::test_float32_input FAILED [ 94%] 97s tests/test_xfm3.py::test_ellipsoid PASSED [ 94%] 97s tests/test_xfm3.py::test_simple_level_1_xfm FAILED [ 94%] 97s tests/test_xfm3.py::test_simple_level_1_recon FAILED [ 95%] 97s tests/test_xfm3.py::test_simple_level_1_recon_haar FAILED [ 95%] 97s tests/test_xfm3.py::test_simple_level_2_xfm FAILED [ 95%] 97s tests/test_xfm3.py::test_simple_level_2_recon FAILED [ 96%] 97s tests/test_xfm3.py::test_simple_level_4_xfm FAILED [ 96%] 97s tests/test_xfm3.py::test_simple_level_4_recon FAILED [ 96%] 97s tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets FAILED [ 97%] 97s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 FAILED [ 97%] 97s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 FAILED [ 97%] 97s tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 FAILED [ 97%] 97s tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 FAILED [ 98%] 97s tests/test_xfm3.py::test_integer_input FAILED [ 98%] 97s tests/test_xfm3.py::test_integer_perfect_recon FAILED [ 98%] 97s tests/test_xfm3.py::test_float32_input FAILED [ 99%] 98s tests/test_xfm3.py::test_float32_recon FAILED [ 99%] 98s tests/test_xfm3.py::test_level_4_recon_discarding_level_1 FAILED [ 99%] 98s tests/test_xfm3.py::test_level_4_discarding_level_1 FAILED [100%] 98s 98s =================================== FAILURES =================================== 98s ________________________________ test_coldfilt _________________________________ 98s 98s def test_coldfilt(): 98s h0o, g0o, h1o, g1o = biort('near_sym_b') 98s h0a, h0b, g0a, g0b, h1a, h1b, g1a, g1b = qshift('qshift_d') 98s > A = colifilt(mandrill, g0b, g0a) 98s 98s tests/test_againstmatlab.py:81: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_dtwavexfm2 ________________________________ 98s 98s def test_dtwavexfm2(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill, 4, 'near_sym_a', 'qshift_a', include_scale=True) 98s 98s tests/test_againstmatlab.py:85: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_dtwavexfm2b _______________________________ 98s 98s def test_dtwavexfm2b(): 98s > Yl, Yh, Yscale = dtwavexfm2b(mandrill, 4, 'near_sym_b_bp', 'qshift_b_bp', include_scale=True) 98s 98s tests/test_againstmatlab.py:95: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_rescale_highpass _____________________________ 98s 98s def test_rescale_highpass(): 98s # N.B we can only test bilinear rescaling since cpxinterb2b doesn't support Lanczos 98s > Yl, Yh = dtwavexfm2b(mandrill, 3, 'near_sym_a', 'qshift_a') 98s 98s tests/test_againstmatlab.py:106: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_transform3d_numpy ____________________________ 98s 98s def test_transform3d_numpy(): 98s transform = Transform3d(biort='near_sym_b',qshift='qshift_b') 98s > td_signal = transform.forward(qbgn, nlevels=3, include_scale=True, discard_level_1=False) 98s 98s tests/test_againstmatlab.py:117: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_odd_filter ________________________________ 98s 98s def test_odd_filter(): 98s with raises(ValueError): 98s > coldfilt(mandrill, (-1,2,-1), (-1,2,1)) 98s 98s tests/test_coldfilt.py:22: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_different_size ______________________________ 98s 98s def test_different_size(): 98s with raises(ValueError): 98s > coldfilt(mandrill, (-0.5,-1,2,1,0.5), (-1,2,-1)) 98s 98s tests/test_coldfilt.py:26: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_bad_input_size ______________________________ 98s 98s def test_bad_input_size(): 98s with raises(ValueError): 98s > coldfilt(mandrill[:511,:], (-1,1), (1,-1)) 98s 98s tests/test_coldfilt.py:30: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_good_input_size _____________________________ 98s 98s def test_good_input_size(): 98s > coldfilt(mandrill[:,:511], (-1,1), (1,-1)) 98s 98s tests/test_coldfilt.py:33: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________ test_good_input_size_non_orthogonal ______________________ 98s 98s def test_good_input_size_non_orthogonal(): 98s > coldfilt(mandrill[:,:511], (1,1), (1,1)) 98s 98s tests/test_coldfilt.py:36: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_output_size _______________________________ 98s 98s def test_output_size(): 98s > Y = coldfilt(mandrill, (-1,1), (1,-1)) 98s 98s tests/test_coldfilt.py:39: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:113: in coldfilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________________ test_odd_size _________________________________ 98s 98s def test_odd_size(): 98s > y = colfilter(mandrill, (-1,2,-1)) 98s 98s tests/test_colfilter.py:28: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________________ test_even_size ________________________________ 98s 98s def test_even_size(): 98s > y = colfilter(np.zeros_like(mandrill), (-1,1)) 98s 98s tests/test_colfilter.py:40: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _________________________________ test_qshift __________________________________ 98s 98s def test_qshift(): 98s > y = colfilter(mandrill, qshift('qshift_a')[0]) 98s 98s tests/test_colfilter.py:32: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________________ test_biort __________________________________ 98s 98s def test_biort(): 98s > y = colfilter(mandrill, biort('antonini')[0]) 98s 98s tests/test_colfilter.py:36: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_odd_size_non_array ____________________________ 98s 98s def test_odd_size_non_array(): 98s > y = colfilter(mandrill.tolist(), (-1,2,-1)) 98s 98s tests/test_colfilter.py:45: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_even_size_non_array ___________________________ 98s 98s def test_even_size_non_array(): 98s > y = colfilter(mandrill.tolist(), (-1,1)) 98s 98s tests/test_colfilter.py:49: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:65: in colfilter 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_odd_filter ________________________________ 98s 98s def test_odd_filter(): 98s with raises(ValueError): 98s > colifilt(mandrill, (-1,2,-1), (-1,2,1)) 98s 98s tests/test_colifilt.py:22: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_different_size_h _____________________________ 98s 98s def test_different_size_h(): 98s with raises(ValueError): 98s > colifilt(mandrill, (-1,2,1), (-0.5,-1,2,-1,0.5)) 98s 98s tests/test_colifilt.py:26: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_zero_input ________________________________ 98s 98s def test_zero_input(): 98s > Y = colifilt(np.zeros_like(mandrill), (-1,1), (1,-1)) 98s 98s tests/test_colifilt.py:29: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_bad_input_size ______________________________ 98s 98s def test_bad_input_size(): 98s with raises(ValueError): 98s > colifilt(mandrill[:511,:], (-1,1), (1,-1)) 98s 98s tests/test_colifilt.py:34: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_good_input_size _____________________________ 98s 98s def test_good_input_size(): 98s > colifilt(mandrill[:,:511], (-1,1), (1,-1)) 98s 98s tests/test_colifilt.py:37: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_output_size _______________________________ 98s 98s def test_output_size(): 98s > Y = colifilt(mandrill, (-1,1), (1,-1)) 98s 98s tests/test_colifilt.py:40: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_non_orthogonal_input ___________________________ 98s 98s def test_non_orthogonal_input(): 98s > Y = colifilt(mandrill, (1,1), (1,1)) 98s 98s tests/test_colifilt.py:44: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _________________________ test_output_size_non_mult_4 __________________________ 98s 98s def test_output_size_non_mult_4(): 98s > Y = colifilt(mandrill, (-1,0,0,1), (1,0,0,-1)) 98s 98s tests/test_colifilt.py:48: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________ test_non_orthogonal_input_non_mult_4 _____________________ 98s 98s def test_non_orthogonal_input_non_mult_4(): 98s > Y = colifilt(mandrill, (1,0,0,1), (1,0,0,1)) 98s 98s tests/test_colifilt.py:52: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/lowlevel.py:184: in colifilt 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_reconstruct _______________________________ 98s 98s def test_reconstruct(): 98s # Reconstruction up to tolerance 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec) 98s 98s tests/test_ifm1.py:12: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_reconstruct_2d ______________________________ 98s 98s def test_reconstruct_2d(): 98s # Reconstruction up to tolerance 98s vec = np.random.rand(630, 20) 98s > Yl, Yh = dtwavexfm(vec) 98s 98s tests/test_ifm1.py:19: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_input ______________________________ 98s 98s def test_float32_input(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm(np.array([1, 2, 3, 4]).astype(np.float32)) 98s 98s tests/test_ifm1.py:25: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_reconstruct _______________________________ 98s 98s def test_reconstruct(): 98s # Reconstruction up to tolerance 98s > Yl, Yh = dtwavexfm2(mandrill) 98s 98s tests/test_ifm2.py:23: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_reconstruct_crop _____________________________ 98s 98s def test_reconstruct_crop(): 98s # Reconstruction up to tolerance 98s > Yl_crop, Yh_crop = dtwavexfm2(mandrill_crop) 98s 98s tests/test_ifm2.py:29: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________ test_reconstruct_custom_filter ________________________ 98s 98s def test_reconstruct_custom_filter(): 98s # Reconstruction up to tolerance 98s > Yl, Yh = dtwavexfm2(mandrill, 4, biort('legall'), qshift('qshift_06')) 98s 98s tests/test_ifm2.py:35: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_input ______________________________ 98s 98s def test_float32_input(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 98s 98s tests/test_ifm2.py:41: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________________ test_estimatereg _______________________________ 98s 98s def test_estimatereg(): 98s nlevels = 6 98s trans = Transform2d() 98s > t1 = trans.forward(f1, nlevels=nlevels) 98s 98s tests/test_registration.py:29: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________ test_complex_type_for_complex _________________________ 98s 98s def test_complex_type_for_complex(): 98s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.complex64)), np.complex64) 98s 98s tests/test_utils.py:8: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'issubsctype' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _________________________ test_complex_type_for_float __________________________ 98s 98s def test_complex_type_for_float(): 98s > assert np.issubsctype(appropriate_complex_type_for(np.zeros((2,3), np.float32)), np.complex64) 98s 98s tests/test_utils.py:12: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'issubsctype' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.issubsctype` was removed in the NumPy 2.0 release. Use `np.issubdtype` instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _________________________________ test_simple __________________________________ 98s 98s def test_simple(): 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec, 3) 98s 98s tests/test_xfm1.py:12: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_simple_with_no_levels __________________________ 98s 98s def test_simple_with_no_levels(): 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec, 0) 98s 98s tests/test_xfm1.py:17: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_simple_with_scale ____________________________ 98s 98s def test_simple_with_scale(): 98s vec = np.random.rand(630) 98s > Yl, Yh, Yscale = dtwavexfm(vec, 3, include_scale=True) 98s 98s tests/test_xfm1.py:22: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________ test_simple_with_scale_and_no_levels _____________________ 98s 98s def test_simple_with_scale_and_no_levels(): 98s vec = np.random.rand(630) 98s > Yl, Yh, Yscale = dtwavexfm(vec, 0, include_scale=True) 98s 98s tests/test_xfm1.py:28: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_perfect_recon ______________________________ 98s 98s def test_perfect_recon(): 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec) 98s 98s tests/test_xfm1.py:34: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_simple_custom_filter ___________________________ 98s 98s def test_simple_custom_filter(): 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec, 4, biort('legall'), qshift('qshift_06')) 98s 98s tests/test_xfm1.py:40: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_single_level _______________________________ 98s 98s def test_single_level(): 98s vec = np.random.rand(630) 98s > Yl, Yh = dtwavexfm(vec, 1) 98s 98s tests/test_xfm1.py:46: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_non_multiple_of_two ___________________________ 98s 98s def test_non_multiple_of_two(): 98s vec = np.random.rand(631) 98s with raises(ValueError): 98s > Yl, Yh = dtwavexfm(vec, 1) 98s 98s tests/test_xfm1.py:51: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________________ test_2d ____________________________________ 98s 98s def test_2d(): 98s > Yl, Yh = dtwavexfm(np.random.rand(10,10)) 98s 98s tests/test_xfm1.py:54: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_integer_input ______________________________ 98s 98s def test_integer_input(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array 98s > Yl, Yh = dtwavexfm([1,2,3,4]) 98s 98s tests/test_xfm1.py:59: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_integer_perfect_recon __________________________ 98s 98s def test_integer_perfect_recon(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array and reconstructed 98s A = np.array([1,2,3,4], dtype=np.int32) 98s > Yl, Yh = dtwavexfm(A) 98s 98s tests/test_xfm1.py:66: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_input ______________________________ 98s 98s def test_float32_input(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm(np.array([1,2,3,4]).astype(np.float32)) 98s 98s tests/test_xfm1.py:72: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:63: in dtwavexfm 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform1d.py:51: in forward 98s X = asfarray(X) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _________________________________ test_simple __________________________________ 98s 98s def test_simple(): 98s > Yl, Yh = dtwavexfm2(mandrill) 98s 98s tests/test_xfm2.py:22: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_specific_wavelet _____________________________ 98s 98s def test_specific_wavelet(): 98s > Yl, Yh = dtwavexfm2(mandrill, biort=biort('antonini'), qshift=qshift('qshift_06')) 98s 98s tests/test_xfm2.py:25: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________________ test_1d ____________________________________ 98s 98s def test_1d(): 98s > Yl, Yh = dtwavexfm2(mandrill[0,:]) 98s 98s tests/test_xfm2.py:28: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________________ test_3d ____________________________________ 98s 98s def test_3d(): 98s with raises(ValueError): 98s > Yl, Yh = dtwavexfm2(np.dstack((mandrill, mandrill))) 98s 98s tests/test_xfm2.py:32: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________________ test_simple_w_scale ______________________________ 98s 98s def test_simple_w_scale(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill, include_scale=True) 98s 98s tests/test_xfm2.py:35: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________________ test_odd_rows _________________________________ 98s 98s def test_odd_rows(): 98s > Yl, Yh = dtwavexfm2(mandrill[:509,:]) 98s 98s tests/test_xfm2.py:42: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_odd_rows_w_scale _____________________________ 98s 98s def test_odd_rows_w_scale(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:], include_scale=True) 98s 98s tests/test_xfm2.py:45: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________________ test_odd_cols _________________________________ 98s 98s def test_odd_cols(): 98s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 98s 98s tests/test_xfm2.py:48: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_odd_cols_w_scale _____________________________ 98s 98s def test_odd_cols_w_scale(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 98s 98s tests/test_xfm2.py:51: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_odd_rows_and_cols ____________________________ 98s 98s def test_odd_rows_and_cols(): 98s > Yl, Yh = dtwavexfm2(mandrill[:,:509]) 98s 98s tests/test_xfm2.py:54: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________ test_odd_rows_and_cols_w_scale ________________________ 98s 98s def test_odd_rows_and_cols_w_scale(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill[:509,:509], include_scale=True) 98s 98s tests/test_xfm2.py:57: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_rot_symm_modified ____________________________ 98s 98s def test_rot_symm_modified(): 98s # This test only checks there is no error running these functions, not that they work 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill, biort='near_sym_b_bp', qshift='qshift_b_bp', include_scale=True) 98s 98s tests/test_xfm2.py:61: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________________ test_0_levels _________________________________ 98s 98s def test_0_levels(): 98s > Yl, Yh = dtwavexfm2(mandrill, nlevels=0) 98s 98s tests/test_xfm2.py:65: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________________ test_0_levels_w_scale _____________________________ 98s 98s def test_0_levels_w_scale(): 98s > Yl, Yh, Yscale = dtwavexfm2(mandrill, nlevels=0, include_scale=True) 98s 98s tests/test_xfm2.py:70: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_integer_input ______________________________ 98s 98s def test_integer_input(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array 98s > Yl, Yh = dtwavexfm2([[1,2,3,4], [1,2,3,4]]) 98s 98s tests/test_xfm2.py:78: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_integer_perfect_recon __________________________ 98s 98s def test_integer_perfect_recon(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array and reconstructed 98s A = np.array([[1,2,3,4], [5,6,7,8]], dtype=np.int32) 98s > Yl, Yh = dtwavexfm2(A) 98s 98s tests/test_xfm2.py:85: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_input ______________________________ 98s 98s def test_float32_input(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm2(mandrill.astype(np.float32)) 98s 98s tests/test_xfm2.py:91: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:138: in dtwavexfm2 98s res = trans.forward(X, nlevels, include_scale) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform2d.py:73: in forward 98s X = np.atleast_2d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_simple_level_1_xfm ____________________________ 98s 98s def test_simple_level_1_xfm(): 98s # Just tests that the transform broadly works and gives expected size output 98s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 98s 98s tests/test_xfm3.py:31: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_simple_level_1_recon ___________________________ 98s 98s def test_simple_level_1_recon(): 98s # Test for perfect reconstruction with 1 level 98s > Yl, Yh = dtwavexfm3(ellipsoid, 1) 98s 98s tests/test_xfm3.py:37: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ________________________ test_simple_level_1_recon_haar ________________________ 98s 98s def test_simple_level_1_recon_haar(): 98s # Test for perfect reconstruction with 1 level and Haar wavelets 98s 98s # Form Haar wavelets 98s h0 = np.array((1.0, 1.0)) 98s g0 = h0 98s h0 = h0 / np.sum(h0) 98s g0 = g0 / np.sum(g0) 98s h1 = g0 * np.cumprod(-np.ones_like(g0)) 98s g1 = -h0 * np.cumprod(-np.ones_like(h0)) 98s 98s haar = (h0, g0, h1, g1) 98s 98s > Yl, Yh = dtwavexfm3(ellipsoid, 1, biort=haar) 98s 98s tests/test_xfm3.py:55: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_simple_level_2_xfm ____________________________ 98s 98s def test_simple_level_2_xfm(): 98s # Just tests that the transform broadly works and gives expected size output 98s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 98s 98s tests/test_xfm3.py:62: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_simple_level_2_recon ___________________________ 98s 98s def test_simple_level_2_recon(): 98s # Test for perfect reconstruction with 2 levels 98s > Yl, Yh = dtwavexfm3(ellipsoid, 2) 98s 98s tests/test_xfm3.py:68: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ___________________________ test_simple_level_4_xfm ____________________________ 98s 98s def test_simple_level_4_xfm(): 98s # Just tests that the transform broadly works and gives expected size output 98s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 98s 98s tests/test_xfm3.py:75: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_simple_level_4_recon ___________________________ 98s 98s def test_simple_level_4_recon(): 98s # Test for perfect reconstruction with 3 levels 98s > Yl, Yh = dtwavexfm3(ellipsoid, 4) 98s 98s tests/test_xfm3.py:81: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________ test_simple_level_4_recon_custom_wavelets ___________________ 98s 98s def test_simple_level_4_recon_custom_wavelets(): 98s # Test for perfect reconstruction with 3 levels 98s b = biort('legall') 98s q = qshift('qshift_06') 98s > Yl, Yh = dtwavexfm3(ellipsoid, 4, biort=b, qshift=q) 98s 98s tests/test_xfm3.py:90: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________ test_simple_level_4_xfm_ext_mode_8 ______________________ 98s 98s def test_simple_level_4_xfm_ext_mode_8(): 98s # Just tests that the transform broadly works and gives expected size output 98s crop_ellipsoid = ellipsoid[:62,:58,:54] 98s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 98s 98s tests/test_xfm3.py:98: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________ test_simple_level_4_recon_ext_mode_8 _____________________ 98s 98s def test_simple_level_4_recon_ext_mode_8(): 98s # Test for perfect reconstruction with 3 levels 98s crop_ellipsoid = ellipsoid[:62,:58,:54] 98s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=8) 98s 98s tests/test_xfm3.py:104: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________ test_simple_level_4_xfm_ext_mode_4 ______________________ 98s 98s def test_simple_level_4_xfm_ext_mode_4(): 98s # Just tests that the transform broadly works and gives expected size output 98s crop_ellipsoid = ellipsoid[:62,:54,:58] 98s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 98s 98s tests/test_xfm3.py:112: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _____________________ test_simple_level_4_recon_ext_mode_4 _____________________ 98s 98s def test_simple_level_4_recon_ext_mode_4(): 98s # Test for perfect reconstruction with 3 levels 98s crop_ellipsoid = ellipsoid[:62,:54,:58] 98s > Yl, Yh = dtwavexfm3(crop_ellipsoid, 4, ext_mode=4) 98s 98s tests/test_xfm3.py:118: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_integer_input ______________________________ 98s 98s def test_integer_input(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array 98s > Yl, Yh = dtwavexfm3(np.ones((4,4,4), dtype=int)) 98s 98s tests/test_xfm3.py:126: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s __________________________ test_integer_perfect_recon __________________________ 98s 98s def test_integer_perfect_recon(): 98s # Check that an integer input is correctly coerced into a floating point 98s # array and reconstructed 98s A = (np.random.random((4,4,4)) * 5).astype(np.int32) 98s > Yl, Yh = dtwavexfm3(A) 98s 98s tests/test_xfm3.py:133: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_input ______________________________ 98s 98s def test_float32_input(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 98s 98s tests/test_xfm3.py:139: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ______________________________ test_float32_recon ______________________________ 98s 98s def test_float32_recon(): 98s # Check that an float32 input is correctly output as float32 98s > Yl, Yh = dtwavexfm3(ellipsoid.astype(np.float32)) 98s 98s tests/test_xfm3.py:145: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s ____________________ test_level_4_recon_discarding_level_1 _____________________ 98s 98s def test_level_4_recon_discarding_level_1(): 98s # Test for non-perfect but reasonable reconstruction 98s > Yl, Yh = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 98s 98s tests/test_xfm3.py:154: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s _______________________ test_level_4_discarding_level_1 ________________________ 98s 98s def test_level_4_discarding_level_1(): 98s # Test that level >= 2 highpasses are identical 98s > Yl1, Yh1 = dtwavexfm3(ellipsoid, 4, discard_level_1=True) 98s 98s tests/test_xfm3.py:163: 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s /usr/lib/python3/dist-packages/dtcwt/compat.py:241: in dtwavexfm3 98s res = trans.forward(X, nlevels, include_scale, discard_level_1) 98s /usr/lib/python3/dist-packages/dtcwt/numpy/transform3d.py:82: in forward 98s X = np.atleast_3d(asfarray(X)) 98s /usr/lib/python3/dist-packages/dtcwt/utils.py:105: in asfarray 98s return np.asfarray(X, dtype=X.dtype) 98s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 98s 98s attr = 'asfarray' 98s 98s def __getattr__(attr): 98s # Warn for expired attributes 98s import warnings 98s 98s if attr == "linalg": 98s import numpy.linalg as linalg 98s return linalg 98s elif attr == "fft": 98s import numpy.fft as fft 98s return fft 98s elif attr == "dtypes": 98s import numpy.dtypes as dtypes 98s return dtypes 98s elif attr == "random": 98s import numpy.random as random 98s return random 98s elif attr == "polynomial": 98s import numpy.polynomial as polynomial 98s return polynomial 98s elif attr == "ma": 98s import numpy.ma as ma 98s return ma 98s elif attr == "ctypeslib": 98s import numpy.ctypeslib as ctypeslib 98s return ctypeslib 98s elif attr == "exceptions": 98s import numpy.exceptions as exceptions 98s return exceptions 98s elif attr == "testing": 98s import numpy.testing as testing 98s return testing 98s elif attr == "matlib": 98s import numpy.matlib as matlib 98s return matlib 98s elif attr == "f2py": 98s import numpy.f2py as f2py 98s return f2py 98s elif attr == "typing": 98s import numpy.typing as typing 98s return typing 98s elif attr == "rec": 98s import numpy.rec as rec 98s return rec 98s elif attr == "char": 98s import numpy.char as char 98s return char 98s elif attr == "array_api": 98s raise AttributeError("`numpy.array_api` is not available from " 98s "numpy 2.0 onwards", name=None) 98s elif attr == "core": 98s import numpy.core as core 98s return core 98s elif attr == "strings": 98s import numpy.strings as strings 98s return strings 98s elif attr == "distutils": 98s if 'distutils' in __numpy_submodules__: 98s import numpy.distutils as distutils 98s return distutils 98s else: 98s raise AttributeError("`numpy.distutils` is not available from " 98s "Python 3.12 onwards", name=None) 98s 98s if attr in __future_scalars__: 98s # And future warnings for those that will change, but also give 98s # the AttributeError 98s warnings.warn( 98s f"In the future `np.{attr}` will be defined as the " 98s "corresponding NumPy scalar.", FutureWarning, stacklevel=2) 98s 98s if attr in __former_attrs__: 98s raise AttributeError(__former_attrs__[attr], name=None) 98s 98s if attr in __expired_attributes__: 98s > raise AttributeError( 98s f"`np.{attr}` was removed in the NumPy 2.0 release. " 98s f"{__expired_attributes__[attr]}", 98s name=None 98s ) 98s E AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead. 98s 98s /usr/lib/python3/dist-packages/numpy/__init__.py:400: AttributeError 98s =========================== short test summary info ============================ 98s FAILED tests/test_againstmatlab.py::test_coldfilt - AttributeError: `np.asfar... 98s FAILED tests/test_againstmatlab.py::test_dtwavexfm2 - AttributeError: `np.asf... 98s FAILED tests/test_againstmatlab.py::test_dtwavexfm2b - AttributeError: `np.as... 98s FAILED tests/test_againstmatlab.py::test_rescale_highpass - AttributeError: `... 98s FAILED tests/test_againstmatlab.py::test_transform3d_numpy - AttributeError: ... 98s FAILED tests/test_coldfilt.py::test_odd_filter - AttributeError: `np.asfarray... 98s FAILED tests/test_coldfilt.py::test_different_size - AttributeError: `np.asfa... 98s FAILED tests/test_coldfilt.py::test_bad_input_size - AttributeError: `np.asfa... 98s FAILED tests/test_coldfilt.py::test_good_input_size - AttributeError: `np.asf... 98s FAILED tests/test_coldfilt.py::test_good_input_size_non_orthogonal - Attribut... 98s FAILED tests/test_coldfilt.py::test_output_size - AttributeError: `np.asfarra... 98s FAILED tests/test_colfilter.py::test_odd_size - AttributeError: `np.asfarray`... 98s FAILED tests/test_colfilter.py::test_even_size - AttributeError: `np.asfarray... 98s FAILED tests/test_colfilter.py::test_qshift - AttributeError: `np.asfarray` w... 98s FAILED tests/test_colfilter.py::test_biort - AttributeError: `np.asfarray` wa... 98s FAILED tests/test_colfilter.py::test_odd_size_non_array - AttributeError: `np... 98s FAILED tests/test_colfilter.py::test_even_size_non_array - AttributeError: `n... 98s FAILED tests/test_colifilt.py::test_odd_filter - AttributeError: `np.asfarray... 98s FAILED tests/test_colifilt.py::test_different_size_h - AttributeError: `np.as... 98s FAILED tests/test_colifilt.py::test_zero_input - AttributeError: `np.asfarray... 98s FAILED tests/test_colifilt.py::test_bad_input_size - AttributeError: `np.asfa... 98s FAILED tests/test_colifilt.py::test_good_input_size - AttributeError: `np.asf... 98s FAILED tests/test_colifilt.py::test_output_size - AttributeError: `np.asfarra... 98s FAILED tests/test_colifilt.py::test_non_orthogonal_input - AttributeError: `n... 98s FAILED tests/test_colifilt.py::test_output_size_non_mult_4 - AttributeError: ... 98s FAILED tests/test_colifilt.py::test_non_orthogonal_input_non_mult_4 - Attribu... 98s FAILED tests/test_ifm1.py::test_reconstruct - AttributeError: `np.asfarray` w... 98s FAILED tests/test_ifm1.py::test_reconstruct_2d - AttributeError: `np.asfarray... 98s FAILED tests/test_ifm1.py::test_float32_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_ifm2.py::test_reconstruct - AttributeError: `np.asfarray` w... 98s FAILED tests/test_ifm2.py::test_reconstruct_crop - AttributeError: `np.asfarr... 98s FAILED tests/test_ifm2.py::test_reconstruct_custom_filter - AttributeError: `... 98s FAILED tests/test_ifm2.py::test_float32_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_registration.py::test_estimatereg - AttributeError: `np.asf... 98s FAILED tests/test_utils.py::test_complex_type_for_complex - AttributeError: `... 98s FAILED tests/test_utils.py::test_complex_type_for_float - AttributeError: `np... 98s FAILED tests/test_xfm1.py::test_simple - AttributeError: `np.asfarray` was re... 98s FAILED tests/test_xfm1.py::test_simple_with_no_levels - AttributeError: `np.a... 98s FAILED tests/test_xfm1.py::test_simple_with_scale - AttributeError: `np.asfar... 98s FAILED tests/test_xfm1.py::test_simple_with_scale_and_no_levels - AttributeEr... 98s FAILED tests/test_xfm1.py::test_perfect_recon - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm1.py::test_simple_custom_filter - AttributeError: `np.as... 98s FAILED tests/test_xfm1.py::test_single_level - AttributeError: `np.asfarray` ... 98s FAILED tests/test_xfm1.py::test_non_multiple_of_two - AttributeError: `np.asf... 98s FAILED tests/test_xfm1.py::test_2d - AttributeError: `np.asfarray` was remove... 98s FAILED tests/test_xfm1.py::test_integer_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm1.py::test_integer_perfect_recon - AttributeError: `np.a... 98s FAILED tests/test_xfm1.py::test_float32_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm2.py::test_simple - AttributeError: `np.asfarray` was re... 98s FAILED tests/test_xfm2.py::test_specific_wavelet - AttributeError: `np.asfarr... 98s FAILED tests/test_xfm2.py::test_1d - AttributeError: `np.asfarray` was remove... 98s FAILED tests/test_xfm2.py::test_3d - AttributeError: `np.asfarray` was remove... 98s FAILED tests/test_xfm2.py::test_simple_w_scale - AttributeError: `np.asfarray... 98s FAILED tests/test_xfm2.py::test_odd_rows - AttributeError: `np.asfarray` was ... 98s FAILED tests/test_xfm2.py::test_odd_rows_w_scale - AttributeError: `np.asfarr... 98s FAILED tests/test_xfm2.py::test_odd_cols - AttributeError: `np.asfarray` was ... 98s FAILED tests/test_xfm2.py::test_odd_cols_w_scale - AttributeError: `np.asfarr... 98s FAILED tests/test_xfm2.py::test_odd_rows_and_cols - AttributeError: `np.asfar... 98s FAILED tests/test_xfm2.py::test_odd_rows_and_cols_w_scale - AttributeError: `... 98s FAILED tests/test_xfm2.py::test_rot_symm_modified - AttributeError: `np.asfar... 98s FAILED tests/test_xfm2.py::test_0_levels - AttributeError: `np.asfarray` was ... 98s FAILED tests/test_xfm2.py::test_0_levels_w_scale - AttributeError: `np.asfarr... 98s FAILED tests/test_xfm2.py::test_integer_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm2.py::test_integer_perfect_recon - AttributeError: `np.a... 98s FAILED tests/test_xfm2.py::test_float32_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm3.py::test_simple_level_1_xfm - AttributeError: `np.asfa... 98s FAILED tests/test_xfm3.py::test_simple_level_1_recon - AttributeError: `np.as... 98s FAILED tests/test_xfm3.py::test_simple_level_1_recon_haar - AttributeError: `... 98s FAILED tests/test_xfm3.py::test_simple_level_2_xfm - AttributeError: `np.asfa... 98s FAILED tests/test_xfm3.py::test_simple_level_2_recon - AttributeError: `np.as... 98s FAILED tests/test_xfm3.py::test_simple_level_4_xfm - AttributeError: `np.asfa... 98s FAILED tests/test_xfm3.py::test_simple_level_4_recon - AttributeError: `np.as... 98s FAILED tests/test_xfm3.py::test_simple_level_4_recon_custom_wavelets - Attrib... 98s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_8 - AttributeErro... 98s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_8 - AttributeEr... 98s FAILED tests/test_xfm3.py::test_simple_level_4_xfm_ext_mode_4 - AttributeErro... 98s FAILED tests/test_xfm3.py::test_simple_level_4_recon_ext_mode_4 - AttributeEr... 98s FAILED tests/test_xfm3.py::test_integer_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm3.py::test_integer_perfect_recon - AttributeError: `np.a... 98s FAILED tests/test_xfm3.py::test_float32_input - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm3.py::test_float32_recon - AttributeError: `np.asfarray`... 98s FAILED tests/test_xfm3.py::test_level_4_recon_discarding_level_1 - AttributeE... 98s FAILED tests/test_xfm3.py::test_level_4_discarding_level_1 - AttributeError: ... 98s ================== 83 failed, 42 passed, 214 skipped in 3.49s ================== 98s autopkgtest [01:14:04]: test command1: -----------------------] 98s command1 FAIL non-zero exit status 1 98s autopkgtest [01:14:04]: test command1: - - - - - - - - - - results - - - - - - - - - - 98s autopkgtest [01:14:04]: @@@@@@@@@@@@@@@@@@@@ summary 98s command1 FAIL non-zero exit status 1 113s nova [W] Skipping flock for amd64 113s Creating nova instance adt-plucky-amd64-python-dtcwt-20250221-011226-juju-7f2275-prod-proposed-migration-environment-20-ea89c593-7d36-4b3f-898e-4d86f4a6a72e from image adt/ubuntu-plucky-amd64-server-20250221.img (UUID c1e73dc6-ac8e-4368-b017-f8cd363a3a68)... 113s nova [W] Timed out waiting for 0598f41b-7b65-4eed-b785-a117ac99cd62 to get deleted.