0s autopkgtest [16:26:22]: starting date and time: 2025-07-03 16:26:22+0000 0s autopkgtest [16:26:22]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [16:26:22]: host juju-7f2275-prod-proposed-migration-environment-21; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.18hggrte/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-anndata --apt-upgrade python-anndata --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python-anndata/0.12.0~rc1-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-21@sto01-17.secgroup --name adt-questing-i386-python-anndata-20250703-154234-juju-7f2275-prod-proposed-migration-environment-21-f91f2228-a043-4dda-9715-f8e0f238046c --image adt/ubuntu-questing-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-21 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-questing-i386-python-anndata-20250703-154234-juju-7f2275-prod-proposed-migration-environment-21-f91f2228-a043-4dda-9715-f8e0f238046c from image adt/ubuntu-questing-amd64-server-20250703.img (UUID a8c9fe9f-e571-4802-ba4c-154ce99a087c)... 44s autopkgtest [16:27:06]: testbed dpkg architecture: amd64 44s autopkgtest [16:27:06]: testbed apt version: 3.1.2 44s autopkgtest [16:27:06]: @@@@@@@@@@@@@@@@@@@@ test bed setup 44s autopkgtest [16:27:06]: testbed release detected to be: None 45s autopkgtest [16:27:07]: updating testbed package index (apt update) 45s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [249 kB] 45s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 45s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 45s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 45s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [16.8 kB] 46s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [357 kB] 46s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [27.4 kB] 46s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main amd64 Packages [39.1 kB] 46s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main i386 Packages [25.6 kB] 46s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/universe amd64 Packages [257 kB] 46s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe i386 Packages [114 kB] 46s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/multiverse i386 Packages [10.1 kB] 46s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/multiverse amd64 Packages [16.6 kB] 46s Fetched 1113 kB in 1s (1706 kB/s) 46s Reading package lists... 47s autopkgtest [16:27:09]: upgrading testbed (apt dist-upgrade and autopurge) 47s Reading package lists... 47s Building dependency tree... 47s Reading state information... 47s Calculating upgrade... 47s The following packages will be upgraded: 47s libdrm-amdgpu1 libdrm-common libdrm2 libpython3.13 libpython3.13-minimal 47s libpython3.13-stdlib python3.13 python3.13-gdbm python3.13-minimal 47s 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 47s Need to get 8523 kB of archives. 47s After this operation, 9216 B disk space will be freed. 47s Get:1 http://ftpmaster.internal/ubuntu questing/main amd64 python3.13 amd64 3.13.5-2 [745 kB] 48s Get:2 http://ftpmaster.internal/ubuntu questing/main amd64 python3.13-minimal amd64 3.13.5-2 [2373 kB] 48s Get:3 http://ftpmaster.internal/ubuntu questing/main amd64 libpython3.13 amd64 3.13.5-2 [2346 kB] 48s Get:4 http://ftpmaster.internal/ubuntu questing/main amd64 libpython3.13-stdlib amd64 3.13.5-2 [2069 kB] 48s Get:5 http://ftpmaster.internal/ubuntu questing/main amd64 libpython3.13-minimal amd64 3.13.5-2 [885 kB] 48s Get:6 http://ftpmaster.internal/ubuntu questing/main amd64 libdrm-common all 2.4.125-1 [9012 B] 48s Get:7 http://ftpmaster.internal/ubuntu questing/main amd64 libdrm2 amd64 2.4.125-1 [41.4 kB] 48s Get:8 http://ftpmaster.internal/ubuntu questing/main amd64 libdrm-amdgpu1 amd64 2.4.125-1 [21.6 kB] 48s Get:9 http://ftpmaster.internal/ubuntu questing/main amd64 python3.13-gdbm amd64 3.13.5-2 [32.3 kB] 48s Fetched 8523 kB in 1s (14.6 MB/s) 48s (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 ... 120968 files and directories currently installed.) 48s Preparing to unpack .../0-python3.13_3.13.5-2_amd64.deb ... 48s Unpacking python3.13 (3.13.5-2) over (3.13.5-1) ... 48s Preparing to unpack .../1-python3.13-minimal_3.13.5-2_amd64.deb ... 48s Unpacking python3.13-minimal (3.13.5-2) over (3.13.5-1) ... 48s Preparing to unpack .../2-libpython3.13_3.13.5-2_amd64.deb ... 48s Unpacking libpython3.13:amd64 (3.13.5-2) over (3.13.5-1) ... 48s Preparing to unpack .../3-libpython3.13-stdlib_3.13.5-2_amd64.deb ... 48s Unpacking libpython3.13-stdlib:amd64 (3.13.5-2) over (3.13.5-1) ... 49s Preparing to unpack .../4-libpython3.13-minimal_3.13.5-2_amd64.deb ... 49s Unpacking libpython3.13-minimal:amd64 (3.13.5-2) over (3.13.5-1) ... 49s Preparing to unpack .../5-libdrm-common_2.4.125-1_all.deb ... 49s Unpacking libdrm-common (2.4.125-1) over (2.4.124-2) ... 49s Preparing to unpack .../6-libdrm2_2.4.125-1_amd64.deb ... 49s Unpacking libdrm2:amd64 (2.4.125-1) over (2.4.124-2) ... 49s Preparing to unpack .../7-libdrm-amdgpu1_2.4.125-1_amd64.deb ... 49s Unpacking libdrm-amdgpu1:amd64 (2.4.125-1) over (2.4.124-2) ... 49s Preparing to unpack .../8-python3.13-gdbm_3.13.5-2_amd64.deb ... 49s Unpacking python3.13-gdbm (3.13.5-2) over (3.13.5-1) ... 49s Setting up libpython3.13-minimal:amd64 (3.13.5-2) ... 49s Setting up python3.13-minimal (3.13.5-2) ... 49s Setting up libdrm-common (2.4.125-1) ... 49s Setting up libpython3.13-stdlib:amd64 (3.13.5-2) ... 49s Setting up python3.13-gdbm (3.13.5-2) ... 49s Setting up libpython3.13:amd64 (3.13.5-2) ... 49s Setting up python3.13 (3.13.5-2) ... 50s Setting up libdrm2:amd64 (2.4.125-1) ... 50s Setting up libdrm-amdgpu1:amd64 (2.4.125-1) ... 50s Processing triggers for systemd (257.6-1ubuntu1) ... 50s Processing triggers for man-db (2.13.1-1) ... 50s Processing triggers for libc-bin (2.41-6ubuntu2) ... 51s Reading package lists... 51s Building dependency tree... 51s Reading state information... 51s Solving dependencies... 51s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 53s autopkgtest [16:27:15]: testbed running kernel: Linux 6.15.0-3-generic #3-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 4 08:34:48 UTC 2025 53s autopkgtest [16:27:15]: @@@@@@@@@@@@@@@@@@@@ apt-source python-anndata 54s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/universe python-anndata 0.12.0~rc1-1 (dsc) [3137 B] 54s Get:2 http://ftpmaster.internal/ubuntu questing-proposed/universe python-anndata 0.12.0~rc1-1 (tar) [575 kB] 54s Get:3 http://ftpmaster.internal/ubuntu questing-proposed/universe python-anndata 0.12.0~rc1-1 (diff) [6956 B] 54s gpgv: Signature made Wed Jul 2 21:48:07 2025 UTC 54s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 54s gpgv: issuer "tchet@debian.org" 54s gpgv: Can't check signature: No public key 54s dpkg-source: warning: cannot verify inline signature for ./python-anndata_0.12.0~rc1-1.dsc: no acceptable signature found 54s autopkgtest [16:27:16]: testing package python-anndata version 0.12.0~rc1-1 55s autopkgtest [16:27:17]: build not needed 55s autopkgtest [16:27:17]: test run-unit-test: preparing testbed 55s Reading package lists... 55s Building dependency tree... 55s Reading state information... 55s Solving dependencies... 56s The following NEW packages will be installed: 56s blt diffstat docutils-common fontconfig-config fonts-dejavu-core 56s fonts-dejavu-mono fonts-lyx gettext libaec0 libblas3 libblosc1 libdeflate0 56s libfontconfig1 libgfortran5 libgomp1 libgraphite2-3 libharfbuzz0b 56s libhdf5-310 libhdf5-hl-310 libhwloc15 libimagequant0 libjbig0 libjpeg-turbo8 56s libjpeg8 libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 56s libjs-jquery-metadata libjs-jquery-tablesorter 56s libjs-jquery-throttle-debounce libjs-jquery-ui libjs-sphinxdoc 56s libjs-underscore libjson-perl liblapack3 liblcms2-2 liblerc4 libllvm19 56s liblzf1 libopenjp2-7 libpfm4 libqhull-r8.0 libraqm0 libsharpyuv0 56s libsnappy1v5 libsz2 libtbb12 libtbbbind-2-5 libtbbmalloc2 libtcl8.6 libtiff6 56s libtk8.6 libwebp7 libwebpdemux2 libwebpmux3 libxft2 libxrender1 libxslt1.1 56s libxss1 llvm-19 llvm-19-linker-tools llvm-19-runtime 56s node-fortawesome-fontawesome-free python-matplotlib-data 56s python3-accessible-pygments python3-alabaster python3-all python3-anndata 56s python3-array-api-compat python3-awkward python3-boltons python3-brotli 56s python3-bs4 python3-click python3-cloudpickle python3-contourpy 56s python3-coverage python3-crc32c python3-cycler python3-dask 56s python3-decorator python3-defusedxml python3-distributed python3-docutils 56s python3-donfig python3-et-xmlfile python3-execnet python3-filelock 56s python3-fonttools python3-fs python3-fsspec python3-h5py python3-h5py-serial 56s python3-imagesize python3-iniconfig python3-joblib python3-kiwisolver 56s python3-llvmlite python3-locket python3-lxml python3-lz4 python3-matplotlib 56s python3-mpmath python3-msgpack python3-natsort python3-numba 56s python3-numcodecs python3-numpy python3-numpy-dev python3-openpyxl 56s python3-pandas python3-pandas-lib python3-partd python3-pil 56s python3-pil.imagetk python3-platformdirs python3-pluggy python3-psutil 56s python3-pydata-sphinx-theme python3-pytest python3-pytest-cov 56s python3-pytest-mock python3-pytest-xdist python3-pytz python3-roman 56s python3-scipy python3-sklearn python3-sklearn-lib python3-snowballstemmer 56s python3-sortedcontainers python3-soupsieve python3-sphinx 56s python3-sphinx-copybutton python3-sympy python3-tblib python3-threadpoolctl 56s python3-tk python3-toolz python3-tornado python3-ufolib2 python3-xarray 56s python3-xlrd python3-zarr python3-zict python3.13-tk quilt sgml-base 56s sphinx-common tk8.6-blt2.5 unicode-data x11-common xml-core 56s 0 upgraded, 152 newly installed, 0 to remove and 0 not upgraded. 56s Need to get 158 MB of archives. 56s After this operation, 730 MB of additional disk space will be used. 56s Get:1 http://ftpmaster.internal/ubuntu questing/main amd64 python3-numpy-dev amd64 1:2.2.4+ds-1ubuntu1 [147 kB] 56s Get:2 http://ftpmaster.internal/ubuntu questing/main amd64 libblas3 amd64 3.12.1-2build1 [262 kB] 56s Get:3 http://ftpmaster.internal/ubuntu questing/main amd64 libgfortran5 amd64 15.1.0-8ubuntu1 [940 kB] 56s Get:4 http://ftpmaster.internal/ubuntu questing/main amd64 liblapack3 amd64 3.12.1-2build1 [2672 kB] 56s Get:5 http://ftpmaster.internal/ubuntu questing/main amd64 python3-numpy amd64 1:2.2.4+ds-1ubuntu1 [5377 kB] 56s Get:6 http://ftpmaster.internal/ubuntu questing/main amd64 libtcl8.6 amd64 8.6.16+dfsg-1 [1086 kB] 56s Get:7 http://ftpmaster.internal/ubuntu questing/main amd64 fonts-dejavu-mono all 2.37-8 [502 kB] 56s Get:8 http://ftpmaster.internal/ubuntu questing/main amd64 fonts-dejavu-core all 2.37-8 [835 kB] 56s Get:9 http://ftpmaster.internal/ubuntu questing/main amd64 fontconfig-config amd64 2.15.0-2.2ubuntu1 [37.8 kB] 56s Get:10 http://ftpmaster.internal/ubuntu questing/main amd64 libfontconfig1 amd64 2.15.0-2.2ubuntu1 [164 kB] 56s Get:11 http://ftpmaster.internal/ubuntu questing/main amd64 libxrender1 amd64 1:0.9.12-1 [19.8 kB] 56s Get:12 http://ftpmaster.internal/ubuntu questing/main amd64 libxft2 amd64 2.3.6-1build1 [45.3 kB] 56s Get:13 http://ftpmaster.internal/ubuntu questing/main amd64 x11-common all 1:7.7+24ubuntu1 [22.4 kB] 56s Get:14 http://ftpmaster.internal/ubuntu questing/main amd64 libxss1 amd64 1:1.2.3-1build3 [7204 B] 56s Get:15 http://ftpmaster.internal/ubuntu questing/main amd64 libtk8.6 amd64 8.6.16-1 [868 kB] 56s Get:16 http://ftpmaster.internal/ubuntu questing/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-8 [694 kB] 56s Get:17 http://ftpmaster.internal/ubuntu questing/main amd64 blt amd64 2.5.3+dfsg-8 [4824 B] 56s Get:18 http://ftpmaster.internal/ubuntu questing/main amd64 diffstat amd64 1.68-0ubuntu1 [31.1 kB] 56s Get:19 http://ftpmaster.internal/ubuntu questing/main amd64 sgml-base all 1.31+nmu1 [11.0 kB] 56s Get:20 http://ftpmaster.internal/ubuntu questing/main amd64 xml-core all 0.19 [20.3 kB] 56s Get:21 http://ftpmaster.internal/ubuntu questing/main amd64 docutils-common all 0.21.2+dfsg-2 [131 kB] 56s Get:22 http://ftpmaster.internal/ubuntu questing/universe amd64 fonts-lyx all 2.4.3-1 [171 kB] 56s Get:23 http://ftpmaster.internal/ubuntu questing/main amd64 libgomp1 amd64 15.1.0-8ubuntu1 [151 kB] 56s Get:24 http://ftpmaster.internal/ubuntu questing/main amd64 gettext amd64 0.23.1-2build1 [1472 kB] 56s Get:25 http://ftpmaster.internal/ubuntu questing/universe amd64 libaec0 amd64 1.1.3-1 [22.7 kB] 56s Get:26 http://ftpmaster.internal/ubuntu questing/main amd64 libsnappy1v5 amd64 1.2.2-1 [30.9 kB] 56s Get:27 http://ftpmaster.internal/ubuntu questing/universe amd64 libblosc1 amd64 1.21.5+ds-1build1 [36.2 kB] 56s Get:28 http://ftpmaster.internal/ubuntu questing/main amd64 libdeflate0 amd64 1.23-2 [49.9 kB] 56s Get:29 http://ftpmaster.internal/ubuntu questing/main amd64 libgraphite2-3 amd64 1.3.14-2ubuntu1 [73.1 kB] 56s Get:30 http://ftpmaster.internal/ubuntu questing/main amd64 libharfbuzz0b amd64 10.2.0-1 [543 kB] 56s Get:31 http://ftpmaster.internal/ubuntu questing/universe amd64 libsz2 amd64 1.1.3-1 [5456 B] 56s Get:32 http://ftpmaster.internal/ubuntu questing/universe amd64 libhdf5-310 amd64 1.14.5+repack-3build1 [1411 kB] 56s Get:33 http://ftpmaster.internal/ubuntu questing/universe amd64 libhdf5-hl-310 amd64 1.14.5+repack-3build1 [59.8 kB] 56s Get:34 http://ftpmaster.internal/ubuntu questing/universe amd64 libhwloc15 amd64 2.12.0-4build1 [175 kB] 56s Get:35 http://ftpmaster.internal/ubuntu questing/main amd64 libimagequant0 amd64 2.18.0-1build1 [36.3 kB] 56s Get:36 http://ftpmaster.internal/ubuntu questing/main amd64 libjpeg-turbo8 amd64 2.1.5-3ubuntu2 [179 kB] 56s Get:37 http://ftpmaster.internal/ubuntu questing/main amd64 libjpeg8 amd64 8c-2ubuntu11 [2148 B] 56s Get:38 http://ftpmaster.internal/ubuntu questing/main amd64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 56s Get:39 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-metadata all 12-4 [6582 B] 56s Get:40 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 56s Get:41 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 56s Get:42 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-ui all 1.13.2+dfsg-1 [252 kB] 56s Get:43 http://ftpmaster.internal/ubuntu questing/main amd64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 56s Get:44 http://ftpmaster.internal/ubuntu questing/main amd64 libjs-sphinxdoc all 8.2.3-1ubuntu2 [28.0 kB] 56s Get:45 http://ftpmaster.internal/ubuntu questing/main amd64 libjson-perl all 4.10000-1 [81.9 kB] 56s Get:46 http://ftpmaster.internal/ubuntu questing/main amd64 liblcms2-2 amd64 2.16-2 [212 kB] 56s Get:47 http://ftpmaster.internal/ubuntu questing/main amd64 liblerc4 amd64 4.0.0+ds-5ubuntu1 [271 kB] 56s Get:48 http://ftpmaster.internal/ubuntu questing/main amd64 libllvm19 amd64 1:19.1.7-5ubuntu2 [28.6 MB] 57s Get:49 http://ftpmaster.internal/ubuntu questing/universe amd64 liblzf1 amd64 3.6-4 [7624 B] 57s Get:50 http://ftpmaster.internal/ubuntu questing/universe amd64 libqhull-r8.0 amd64 2020.2-6build1 [193 kB] 57s Get:51 http://ftpmaster.internal/ubuntu questing/main amd64 libraqm0 amd64 0.10.2-1 [17.2 kB] 57s Get:52 http://ftpmaster.internal/ubuntu questing/main amd64 libsharpyuv0 amd64 1.5.0-0.1 [25.9 kB] 57s Get:53 http://ftpmaster.internal/ubuntu questing/universe amd64 libtbbbind-2-5 amd64 2022.1.0-1 [14.7 kB] 57s Get:54 http://ftpmaster.internal/ubuntu questing/universe amd64 libtbbmalloc2 amd64 2022.1.0-1 [53.7 kB] 57s Get:55 http://ftpmaster.internal/ubuntu questing/universe amd64 libtbb12 amd64 2022.1.0-1 [93.5 kB] 57s Get:56 http://ftpmaster.internal/ubuntu questing/main amd64 libjbig0 amd64 2.1-6.1ubuntu2 [29.7 kB] 57s Get:57 http://ftpmaster.internal/ubuntu questing/main amd64 libwebp7 amd64 1.5.0-0.1 [378 kB] 57s Get:58 http://ftpmaster.internal/ubuntu questing/main amd64 libtiff6 amd64 4.7.0-3ubuntu1 [204 kB] 57s Get:59 http://ftpmaster.internal/ubuntu questing/main amd64 libwebpdemux2 amd64 1.5.0-0.1 [13.0 kB] 57s Get:60 http://ftpmaster.internal/ubuntu questing/main amd64 libwebpmux3 amd64 1.5.0-0.1 [27.6 kB] 57s Get:61 http://ftpmaster.internal/ubuntu questing/main amd64 libxslt1.1 amd64 1.1.43-0exp1 [163 kB] 57s Get:62 http://ftpmaster.internal/ubuntu questing/universe amd64 llvm-19-runtime amd64 1:19.1.7-5ubuntu2 [553 kB] 57s Get:63 http://ftpmaster.internal/ubuntu questing/universe amd64 llvm-19-linker-tools amd64 1:19.1.7-5ubuntu2 [1324 kB] 57s Get:64 http://ftpmaster.internal/ubuntu questing/universe amd64 libpfm4 amd64 4.13.0+git99-gc5587f9-1 [437 kB] 57s Get:65 http://ftpmaster.internal/ubuntu questing/universe amd64 llvm-19 amd64 1:19.1.7-5ubuntu2 [17.8 MB] 57s Get:66 http://ftpmaster.internal/ubuntu questing/universe amd64 node-fortawesome-fontawesome-free all 6.7.2+ds1-1 [1653 kB] 57s Get:67 http://ftpmaster.internal/ubuntu questing/universe amd64 python-matplotlib-data all 3.10.1+dfsg1-4 [2930 kB] 57s Get:68 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-accessible-pygments all 0.0.5-2 [790 kB] 57s Get:69 http://ftpmaster.internal/ubuntu questing/main amd64 python3-all amd64 3.13.4-1 [880 B] 57s Get:70 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-array-api-compat all 1.11.2-1 [33.4 kB] 57s Get:71 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-h5py-serial amd64 3.13.0-1ubuntu1 [1184 kB] 57s Get:72 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-h5py all 3.13.0-1ubuntu1 [8230 B] 57s Get:73 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-natsort all 8.0.2-2 [33.8 kB] 57s Get:74 http://ftpmaster.internal/ubuntu questing/main amd64 python3-pytz all 2025.2-3 [163 kB] 57s Get:75 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pandas-lib amd64 2.2.3+dfsg-9 [4949 kB] 58s Get:76 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pandas all 2.2.3+dfsg-9 [3112 kB] 58s Get:77 http://ftpmaster.internal/ubuntu questing/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 58s Get:78 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-scipy amd64 1.15.3-1 [16.6 MB] 58s Get:79 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-crc32c amd64 2.7.1-1 [24.2 kB] 58s Get:80 http://ftpmaster.internal/ubuntu questing/main amd64 python3-defusedxml all 0.7.1-3 [42.2 kB] 58s Get:81 http://ftpmaster.internal/ubuntu questing/main amd64 sphinx-common all 8.2.3-1ubuntu2 [656 kB] 58s Get:82 http://ftpmaster.internal/ubuntu questing/main amd64 python3-alabaster all 0.7.16-0.1 [18.5 kB] 58s Get:83 http://ftpmaster.internal/ubuntu questing/main amd64 python3-roman all 5.0-1 [10.3 kB] 58s Get:84 http://ftpmaster.internal/ubuntu questing/main amd64 python3-docutils all 0.21.2+dfsg-2 [409 kB] 58s Get:85 http://ftpmaster.internal/ubuntu questing/main amd64 python3-imagesize all 1.4.1-1 [6844 B] 58s Get:86 http://ftpmaster.internal/ubuntu questing/main amd64 python3-snowballstemmer all 2.2.0-4build1 [59.8 kB] 58s Get:87 http://ftpmaster.internal/ubuntu questing/main amd64 python3-sphinx all 8.2.3-1ubuntu2 [482 kB] 58s Get:88 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-sphinx-copybutton all 0.5.2-2 [16.6 kB] 58s Get:89 http://ftpmaster.internal/ubuntu questing/main amd64 python3-soupsieve all 2.7-1 [33.5 kB] 58s Get:90 http://ftpmaster.internal/ubuntu questing/main amd64 python3-bs4 all 4.13.4-3 [137 kB] 58s Get:91 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pydata-sphinx-theme all 0.16.1+dfsg-3 [959 kB] 58s Get:92 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-donfig all 0.8.1+dfsg-3 [17.3 kB] 58s Get:93 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-numcodecs amd64 0.16.0+ds-1 [413 kB] 58s Get:94 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-zarr all 3.0.6-2 [2009 kB] 58s Get:95 http://ftpmaster.internal/ubuntu questing-proposed/universe amd64 python3-anndata all 0.12.0~rc1-1 [117 kB] 58s Get:96 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-fsspec all 2025.3.0-1 [216 kB] 58s Get:97 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-awkward amd64 2.6.5-1build1 [877 kB] 58s Get:98 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-boltons all 25.0.0-1 [134 kB] 58s Get:99 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-brotli amd64 1.1.0-2build4 [367 kB] 58s Get:100 http://ftpmaster.internal/ubuntu questing/main amd64 python3-click all 8.2.0+0.really.8.1.8-1 [80.0 kB] 58s Get:101 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-cloudpickle all 3.1.1-1 [22.4 kB] 58s Get:102 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-contourpy amd64 1.3.1-1build1 [218 kB] 58s Get:103 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1 [157 kB] 58s Get:104 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-cycler all 0.12.1-1 [9716 B] 58s Get:105 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-toolz all 1.0.0-2 [45.0 kB] 58s Get:106 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-locket all 1.0.0-2 [5872 B] 58s Get:107 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-partd all 1.4.2-1 [15.7 kB] 58s Get:108 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-dask all 2024.12.1+dfsg-2 [875 kB] 58s Get:109 http://ftpmaster.internal/ubuntu questing/main amd64 python3-msgpack amd64 1.0.3-3build4 [87.7 kB] 58s Get:110 http://ftpmaster.internal/ubuntu questing/main amd64 python3-psutil amd64 5.9.8-2build3 [196 kB] 58s Get:111 http://ftpmaster.internal/ubuntu questing/main amd64 python3-sortedcontainers all 2.4.0-2 [27.6 kB] 58s Get:112 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-tblib all 3.1.0-1 [13.0 kB] 58s Get:113 http://ftpmaster.internal/ubuntu questing/main amd64 python3-tornado amd64 6.4.2-3 [299 kB] 58s Get:114 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-zict all 3.0.0-2ubuntu1 [30.4 kB] 58s Get:115 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-distributed all 2024.12.1+ds-1 [1019 kB] 58s Get:116 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-et-xmlfile all 2.0.0-1 [79.4 kB] 58s Get:117 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-execnet all 2.1.1-1 [33.4 kB] 58s Get:118 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-filelock all 3.18.0-1 [13.0 kB] 58s Get:119 http://ftpmaster.internal/ubuntu questing/main amd64 python3-platformdirs all 4.3.7-1 [16.9 kB] 58s Get:120 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-fs all 2.4.16-7 [90.8 kB] 58s Get:121 http://ftpmaster.internal/ubuntu questing/main amd64 python3-lxml amd64 5.4.0-1build1 [1383 kB] 58s Get:122 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-lz4 amd64 4.4.0+dfsg-2 [26.6 kB] 58s Get:123 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-mpmath all 1.3.0-1 [425 kB] 58s Get:124 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-sympy all 1.13.3-5 [4229 kB] 58s Get:125 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-ufolib2 all 0.17.1+dfsg1-1 [33.5 kB] 58s Get:126 http://ftpmaster.internal/ubuntu questing/universe amd64 unicode-data all 15.1.0-1 [8878 kB] 58s Get:127 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-fonttools amd64 4.55.3-2build1 [1536 kB] 58s Get:128 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-iniconfig all 1.1.1-2 [6024 B] 58s Get:129 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-joblib all 1.4.2-4 [205 kB] 58s Get:130 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-kiwisolver amd64 1.4.7-3build1 [55.6 kB] 58s Get:131 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-llvmlite amd64 0.44.0-1 [207 kB] 58s Get:132 http://ftpmaster.internal/ubuntu questing/main amd64 libopenjp2-7 amd64 2.5.3-2 [218 kB] 59s Get:133 http://ftpmaster.internal/ubuntu questing/main amd64 python3-pil amd64 11.1.0-5build1 [583 kB] 59s Get:134 http://ftpmaster.internal/ubuntu questing/main amd64 python3.13-tk amd64 3.13.5-2 [107 kB] 59s Get:135 http://ftpmaster.internal/ubuntu questing/main amd64 python3-tk amd64 3.13.4-1 [9884 B] 59s Get:136 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pil.imagetk amd64 11.1.0-5build1 [9828 B] 59s Get:137 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-matplotlib amd64 3.10.1+dfsg1-4 [18.0 MB] 59s Get:138 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-numba amd64 0.61.2+dfsg-1 [1811 kB] 59s Get:139 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-openpyxl all 3.1.5+dfsg-2 [152 kB] 59s Get:140 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pluggy all 1.5.0-1 [21.0 kB] 59s Get:141 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pytest all 8.3.5-2 [252 kB] 59s Get:142 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 59s Get:143 http://ftpmaster.internal/ubuntu questing/universe amd64 libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 59s Get:144 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pytest-cov all 5.0.0-1 [21.3 kB] 59s Get:145 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pytest-mock all 3.14.0-3 [11.8 kB] 59s Get:146 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-pytest-xdist all 3.6.1-1 [33.8 kB] 59s Get:147 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-threadpoolctl all 3.1.0-1 [21.3 kB] 59s Get:148 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-sklearn-lib amd64 1.4.2+dfsg-8 [4359 kB] 59s Get:149 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-sklearn all 1.4.2+dfsg-8 [2258 kB] 59s Get:150 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-xarray all 2025.03.1-8 [831 kB] 59s Get:151 http://ftpmaster.internal/ubuntu questing/universe amd64 python3-xlrd all 2.0.1-2 [83.1 kB] 59s Get:152 http://ftpmaster.internal/ubuntu questing/universe amd64 quilt all 0.68-1 [439 kB] 59s Fetched 158 MB in 4s (44.4 MB/s) 59s Selecting previously unselected package python3-numpy-dev:amd64. 59s (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 ... 120968 files and directories currently installed.) 59s Preparing to unpack .../000-python3-numpy-dev_1%3a2.2.4+ds-1ubuntu1_amd64.deb ... 59s Unpacking python3-numpy-dev:amd64 (1:2.2.4+ds-1ubuntu1) ... 59s Selecting previously unselected package libblas3:amd64. 59s Preparing to unpack .../001-libblas3_3.12.1-2build1_amd64.deb ... 59s Unpacking libblas3:amd64 (3.12.1-2build1) ... 59s Selecting previously unselected package libgfortran5:amd64. 60s Preparing to unpack .../002-libgfortran5_15.1.0-8ubuntu1_amd64.deb ... 60s Unpacking libgfortran5:amd64 (15.1.0-8ubuntu1) ... 60s Selecting previously unselected package liblapack3:amd64. 60s Preparing to unpack .../003-liblapack3_3.12.1-2build1_amd64.deb ... 60s Unpacking liblapack3:amd64 (3.12.1-2build1) ... 60s Selecting previously unselected package python3-numpy. 60s Preparing to unpack .../004-python3-numpy_1%3a2.2.4+ds-1ubuntu1_amd64.deb ... 60s Unpacking python3-numpy (1:2.2.4+ds-1ubuntu1) ... 60s Selecting previously unselected package libtcl8.6:amd64. 60s Preparing to unpack .../005-libtcl8.6_8.6.16+dfsg-1_amd64.deb ... 60s Unpacking libtcl8.6:amd64 (8.6.16+dfsg-1) ... 60s Selecting previously unselected package fonts-dejavu-mono. 60s Preparing to unpack .../006-fonts-dejavu-mono_2.37-8_all.deb ... 60s Unpacking fonts-dejavu-mono (2.37-8) ... 60s Selecting previously unselected package fonts-dejavu-core. 60s Preparing to unpack .../007-fonts-dejavu-core_2.37-8_all.deb ... 60s Unpacking fonts-dejavu-core (2.37-8) ... 60s Selecting previously unselected package fontconfig-config. 60s Preparing to unpack .../008-fontconfig-config_2.15.0-2.2ubuntu1_amd64.deb ... 60s Unpacking fontconfig-config (2.15.0-2.2ubuntu1) ... 60s Selecting previously unselected package libfontconfig1:amd64. 60s Preparing to unpack .../009-libfontconfig1_2.15.0-2.2ubuntu1_amd64.deb ... 60s Unpacking libfontconfig1:amd64 (2.15.0-2.2ubuntu1) ... 60s Selecting previously unselected package libxrender1:amd64. 60s Preparing to unpack .../010-libxrender1_1%3a0.9.12-1_amd64.deb ... 60s Unpacking libxrender1:amd64 (1:0.9.12-1) ... 60s Selecting previously unselected package libxft2:amd64. 60s Preparing to unpack .../011-libxft2_2.3.6-1build1_amd64.deb ... 60s Unpacking libxft2:amd64 (2.3.6-1build1) ... 60s Selecting previously unselected package x11-common. 60s Preparing to unpack .../012-x11-common_1%3a7.7+24ubuntu1_all.deb ... 60s Unpacking x11-common (1:7.7+24ubuntu1) ... 60s Selecting previously unselected package libxss1:amd64. 60s Preparing to unpack .../013-libxss1_1%3a1.2.3-1build3_amd64.deb ... 60s Unpacking libxss1:amd64 (1:1.2.3-1build3) ... 60s Selecting previously unselected package libtk8.6:amd64. 60s Preparing to unpack .../014-libtk8.6_8.6.16-1_amd64.deb ... 60s Unpacking libtk8.6:amd64 (8.6.16-1) ... 60s Selecting previously unselected package tk8.6-blt2.5. 60s Preparing to unpack .../015-tk8.6-blt2.5_2.5.3+dfsg-8_amd64.deb ... 60s Unpacking tk8.6-blt2.5 (2.5.3+dfsg-8) ... 60s Selecting previously unselected package blt. 60s Preparing to unpack .../016-blt_2.5.3+dfsg-8_amd64.deb ... 60s Unpacking blt (2.5.3+dfsg-8) ... 60s Selecting previously unselected package diffstat. 60s Preparing to unpack .../017-diffstat_1.68-0ubuntu1_amd64.deb ... 60s Unpacking diffstat (1.68-0ubuntu1) ... 60s Selecting previously unselected package sgml-base. 60s Preparing to unpack .../018-sgml-base_1.31+nmu1_all.deb ... 60s Unpacking sgml-base (1.31+nmu1) ... 60s Selecting previously unselected package xml-core. 60s Preparing to unpack .../019-xml-core_0.19_all.deb ... 60s Unpacking xml-core (0.19) ... 60s Selecting previously unselected package docutils-common. 60s Preparing to unpack .../020-docutils-common_0.21.2+dfsg-2_all.deb ... 60s Unpacking docutils-common (0.21.2+dfsg-2) ... 60s Selecting previously unselected package fonts-lyx. 60s Preparing to unpack .../021-fonts-lyx_2.4.3-1_all.deb ... 60s Unpacking fonts-lyx (2.4.3-1) ... 60s Selecting previously unselected package libgomp1:amd64. 60s Preparing to unpack .../022-libgomp1_15.1.0-8ubuntu1_amd64.deb ... 60s Unpacking libgomp1:amd64 (15.1.0-8ubuntu1) ... 60s Selecting previously unselected package gettext. 60s Preparing to unpack .../023-gettext_0.23.1-2build1_amd64.deb ... 60s Unpacking gettext (0.23.1-2build1) ... 60s Selecting previously unselected package libaec0:amd64. 60s Preparing to unpack .../024-libaec0_1.1.3-1_amd64.deb ... 60s Unpacking libaec0:amd64 (1.1.3-1) ... 60s Selecting previously unselected package libsnappy1v5:amd64. 60s Preparing to unpack .../025-libsnappy1v5_1.2.2-1_amd64.deb ... 60s Unpacking libsnappy1v5:amd64 (1.2.2-1) ... 60s Selecting previously unselected package libblosc1:amd64. 60s Preparing to unpack .../026-libblosc1_1.21.5+ds-1build1_amd64.deb ... 60s Unpacking libblosc1:amd64 (1.21.5+ds-1build1) ... 60s Selecting previously unselected package libdeflate0:amd64. 60s Preparing to unpack .../027-libdeflate0_1.23-2_amd64.deb ... 60s Unpacking libdeflate0:amd64 (1.23-2) ... 61s Selecting previously unselected package libgraphite2-3:amd64. 61s Preparing to unpack .../028-libgraphite2-3_1.3.14-2ubuntu1_amd64.deb ... 61s Unpacking libgraphite2-3:amd64 (1.3.14-2ubuntu1) ... 61s Selecting previously unselected package libharfbuzz0b:amd64. 61s Preparing to unpack .../029-libharfbuzz0b_10.2.0-1_amd64.deb ... 61s Unpacking libharfbuzz0b:amd64 (10.2.0-1) ... 61s Selecting previously unselected package libsz2:amd64. 61s Preparing to unpack .../030-libsz2_1.1.3-1_amd64.deb ... 61s Unpacking libsz2:amd64 (1.1.3-1) ... 61s Selecting previously unselected package libhdf5-310:amd64. 61s Preparing to unpack .../031-libhdf5-310_1.14.5+repack-3build1_amd64.deb ... 61s Unpacking libhdf5-310:amd64 (1.14.5+repack-3build1) ... 61s Selecting previously unselected package libhdf5-hl-310:amd64. 61s Preparing to unpack .../032-libhdf5-hl-310_1.14.5+repack-3build1_amd64.deb ... 61s Unpacking libhdf5-hl-310:amd64 (1.14.5+repack-3build1) ... 61s Selecting previously unselected package libhwloc15:amd64. 61s Preparing to unpack .../033-libhwloc15_2.12.0-4build1_amd64.deb ... 61s Unpacking libhwloc15:amd64 (2.12.0-4build1) ... 61s Selecting previously unselected package libimagequant0:amd64. 61s Preparing to unpack .../034-libimagequant0_2.18.0-1build1_amd64.deb ... 61s Unpacking libimagequant0:amd64 (2.18.0-1build1) ... 61s Selecting previously unselected package libjpeg-turbo8:amd64. 61s Preparing to unpack .../035-libjpeg-turbo8_2.1.5-3ubuntu2_amd64.deb ... 61s Unpacking libjpeg-turbo8:amd64 (2.1.5-3ubuntu2) ... 61s Selecting previously unselected package libjpeg8:amd64. 61s Preparing to unpack .../036-libjpeg8_8c-2ubuntu11_amd64.deb ... 61s Unpacking libjpeg8:amd64 (8c-2ubuntu11) ... 61s Selecting previously unselected package libjs-jquery. 61s Preparing to unpack .../037-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 61s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 61s Selecting previously unselected package libjs-jquery-metadata. 61s Preparing to unpack .../038-libjs-jquery-metadata_12-4_all.deb ... 61s Unpacking libjs-jquery-metadata (12-4) ... 61s Selecting previously unselected package libjs-jquery-tablesorter. 61s Preparing to unpack .../039-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 61s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 61s Selecting previously unselected package libjs-jquery-throttle-debounce. 61s Preparing to unpack .../040-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 61s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 61s Selecting previously unselected package libjs-jquery-ui. 61s Preparing to unpack .../041-libjs-jquery-ui_1.13.2+dfsg-1_all.deb ... 61s Unpacking libjs-jquery-ui (1.13.2+dfsg-1) ... 61s Selecting previously unselected package libjs-underscore. 61s Preparing to unpack .../042-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 61s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 61s Selecting previously unselected package libjs-sphinxdoc. 61s Preparing to unpack .../043-libjs-sphinxdoc_8.2.3-1ubuntu2_all.deb ... 61s Unpacking libjs-sphinxdoc (8.2.3-1ubuntu2) ... 61s Selecting previously unselected package libjson-perl. 61s Preparing to unpack .../044-libjson-perl_4.10000-1_all.deb ... 61s Unpacking libjson-perl (4.10000-1) ... 61s Selecting previously unselected package liblcms2-2:amd64. 61s Preparing to unpack .../045-liblcms2-2_2.16-2_amd64.deb ... 61s Unpacking liblcms2-2:amd64 (2.16-2) ... 61s Selecting previously unselected package liblerc4:amd64. 61s Preparing to unpack .../046-liblerc4_4.0.0+ds-5ubuntu1_amd64.deb ... 61s Unpacking liblerc4:amd64 (4.0.0+ds-5ubuntu1) ... 61s Selecting previously unselected package libllvm19. 61s Preparing to unpack .../047-libllvm19_1%3a19.1.7-5ubuntu2_amd64.deb ... 61s Unpacking libllvm19 (1:19.1.7-5ubuntu2) ... 61s Selecting previously unselected package liblzf1:amd64. 61s Preparing to unpack .../048-liblzf1_3.6-4_amd64.deb ... 61s Unpacking liblzf1:amd64 (3.6-4) ... 61s Selecting previously unselected package libqhull-r8.0:amd64. 61s Preparing to unpack .../049-libqhull-r8.0_2020.2-6build1_amd64.deb ... 61s Unpacking libqhull-r8.0:amd64 (2020.2-6build1) ... 61s Selecting previously unselected package libraqm0:amd64. 61s Preparing to unpack .../050-libraqm0_0.10.2-1_amd64.deb ... 61s Unpacking libraqm0:amd64 (0.10.2-1) ... 61s Selecting previously unselected package libsharpyuv0:amd64. 61s Preparing to unpack .../051-libsharpyuv0_1.5.0-0.1_amd64.deb ... 61s Unpacking libsharpyuv0:amd64 (1.5.0-0.1) ... 61s Selecting previously unselected package libtbbbind-2-5:amd64. 61s Preparing to unpack .../052-libtbbbind-2-5_2022.1.0-1_amd64.deb ... 61s Unpacking libtbbbind-2-5:amd64 (2022.1.0-1) ... 61s Selecting previously unselected package libtbbmalloc2:amd64. 61s Preparing to unpack .../053-libtbbmalloc2_2022.1.0-1_amd64.deb ... 61s Unpacking libtbbmalloc2:amd64 (2022.1.0-1) ... 61s Selecting previously unselected package libtbb12:amd64. 61s Preparing to unpack .../054-libtbb12_2022.1.0-1_amd64.deb ... 61s Unpacking libtbb12:amd64 (2022.1.0-1) ... 61s Selecting previously unselected package libjbig0:amd64. 62s Preparing to unpack .../055-libjbig0_2.1-6.1ubuntu2_amd64.deb ... 62s Unpacking libjbig0:amd64 (2.1-6.1ubuntu2) ... 62s Selecting previously unselected package libwebp7:amd64. 62s Preparing to unpack .../056-libwebp7_1.5.0-0.1_amd64.deb ... 62s Unpacking libwebp7:amd64 (1.5.0-0.1) ... 62s Selecting previously unselected package libtiff6:amd64. 62s Preparing to unpack .../057-libtiff6_4.7.0-3ubuntu1_amd64.deb ... 62s Unpacking libtiff6:amd64 (4.7.0-3ubuntu1) ... 62s Selecting previously unselected package libwebpdemux2:amd64. 62s Preparing to unpack .../058-libwebpdemux2_1.5.0-0.1_amd64.deb ... 62s Unpacking libwebpdemux2:amd64 (1.5.0-0.1) ... 62s Selecting previously unselected package libwebpmux3:amd64. 62s Preparing to unpack .../059-libwebpmux3_1.5.0-0.1_amd64.deb ... 62s Unpacking libwebpmux3:amd64 (1.5.0-0.1) ... 62s Selecting previously unselected package libxslt1.1:amd64. 62s Preparing to unpack .../060-libxslt1.1_1.1.43-0exp1_amd64.deb ... 62s Unpacking libxslt1.1:amd64 (1.1.43-0exp1) ... 62s Selecting previously unselected package llvm-19-runtime. 62s Preparing to unpack .../061-llvm-19-runtime_1%3a19.1.7-5ubuntu2_amd64.deb ... 62s Unpacking llvm-19-runtime (1:19.1.7-5ubuntu2) ... 62s Selecting previously unselected package llvm-19-linker-tools. 62s Preparing to unpack .../062-llvm-19-linker-tools_1%3a19.1.7-5ubuntu2_amd64.deb ... 62s Unpacking llvm-19-linker-tools (1:19.1.7-5ubuntu2) ... 62s Selecting previously unselected package libpfm4:amd64. 62s Preparing to unpack .../063-libpfm4_4.13.0+git99-gc5587f9-1_amd64.deb ... 62s Unpacking libpfm4:amd64 (4.13.0+git99-gc5587f9-1) ... 62s Selecting previously unselected package llvm-19. 62s Preparing to unpack .../064-llvm-19_1%3a19.1.7-5ubuntu2_amd64.deb ... 62s Unpacking llvm-19 (1:19.1.7-5ubuntu2) ... 62s Selecting previously unselected package node-fortawesome-fontawesome-free. 62s Preparing to unpack .../065-node-fortawesome-fontawesome-free_6.7.2+ds1-1_all.deb ... 62s Unpacking node-fortawesome-fontawesome-free (6.7.2+ds1-1) ... 62s Selecting previously unselected package python-matplotlib-data. 62s Preparing to unpack .../066-python-matplotlib-data_3.10.1+dfsg1-4_all.deb ... 62s Unpacking python-matplotlib-data (3.10.1+dfsg1-4) ... 62s Selecting previously unselected package python3-accessible-pygments. 62s Preparing to unpack .../067-python3-accessible-pygments_0.0.5-2_all.deb ... 62s Unpacking python3-accessible-pygments (0.0.5-2) ... 62s Selecting previously unselected package python3-all. 62s Preparing to unpack .../068-python3-all_3.13.4-1_amd64.deb ... 62s Unpacking python3-all (3.13.4-1) ... 62s Selecting previously unselected package python3-array-api-compat. 62s Preparing to unpack .../069-python3-array-api-compat_1.11.2-1_all.deb ... 62s Unpacking python3-array-api-compat (1.11.2-1) ... 62s Selecting previously unselected package python3-h5py-serial. 62s Preparing to unpack .../070-python3-h5py-serial_3.13.0-1ubuntu1_amd64.deb ... 62s Unpacking python3-h5py-serial (3.13.0-1ubuntu1) ... 62s Selecting previously unselected package python3-h5py. 62s Preparing to unpack .../071-python3-h5py_3.13.0-1ubuntu1_all.deb ... 62s Unpacking python3-h5py (3.13.0-1ubuntu1) ... 62s Selecting previously unselected package python3-natsort. 62s Preparing to unpack .../072-python3-natsort_8.0.2-2_all.deb ... 62s Unpacking python3-natsort (8.0.2-2) ... 62s Selecting previously unselected package python3-pytz. 62s Preparing to unpack .../073-python3-pytz_2025.2-3_all.deb ... 62s Unpacking python3-pytz (2025.2-3) ... 62s Selecting previously unselected package python3-pandas-lib:amd64. 62s Preparing to unpack .../074-python3-pandas-lib_2.2.3+dfsg-9_amd64.deb ... 62s Unpacking python3-pandas-lib:amd64 (2.2.3+dfsg-9) ... 63s Selecting previously unselected package python3-pandas. 63s Preparing to unpack .../075-python3-pandas_2.2.3+dfsg-9_all.deb ... 63s Unpacking python3-pandas (2.2.3+dfsg-9) ... 63s Selecting previously unselected package python3-decorator. 63s Preparing to unpack .../076-python3-decorator_5.2.1-2_all.deb ... 63s Unpacking python3-decorator (5.2.1-2) ... 63s Selecting previously unselected package python3-scipy. 63s Preparing to unpack .../077-python3-scipy_1.15.3-1_amd64.deb ... 63s Unpacking python3-scipy (1.15.3-1) ... 63s Selecting previously unselected package python3-crc32c. 63s Preparing to unpack .../078-python3-crc32c_2.7.1-1_amd64.deb ... 63s Unpacking python3-crc32c (2.7.1-1) ... 63s Selecting previously unselected package python3-defusedxml. 63s Preparing to unpack .../079-python3-defusedxml_0.7.1-3_all.deb ... 63s Unpacking python3-defusedxml (0.7.1-3) ... 63s Selecting previously unselected package sphinx-common. 63s Preparing to unpack .../080-sphinx-common_8.2.3-1ubuntu2_all.deb ... 63s Unpacking sphinx-common (8.2.3-1ubuntu2) ... 63s Selecting previously unselected package python3-alabaster. 63s Preparing to unpack .../081-python3-alabaster_0.7.16-0.1_all.deb ... 63s Unpacking python3-alabaster (0.7.16-0.1) ... 63s Selecting previously unselected package python3-roman. 63s Preparing to unpack .../082-python3-roman_5.0-1_all.deb ... 63s Unpacking python3-roman (5.0-1) ... 63s Selecting previously unselected package python3-docutils. 63s Preparing to unpack .../083-python3-docutils_0.21.2+dfsg-2_all.deb ... 63s Unpacking python3-docutils (0.21.2+dfsg-2) ... 63s Selecting previously unselected package python3-imagesize. 63s Preparing to unpack .../084-python3-imagesize_1.4.1-1_all.deb ... 63s Unpacking python3-imagesize (1.4.1-1) ... 63s Selecting previously unselected package python3-snowballstemmer. 63s Preparing to unpack .../085-python3-snowballstemmer_2.2.0-4build1_all.deb ... 63s Unpacking python3-snowballstemmer (2.2.0-4build1) ... 63s Selecting previously unselected package python3-sphinx. 63s Preparing to unpack .../086-python3-sphinx_8.2.3-1ubuntu2_all.deb ... 63s Unpacking python3-sphinx (8.2.3-1ubuntu2) ... 63s Selecting previously unselected package python3-sphinx-copybutton. 63s Preparing to unpack .../087-python3-sphinx-copybutton_0.5.2-2_all.deb ... 63s Unpacking python3-sphinx-copybutton (0.5.2-2) ... 63s Selecting previously unselected package python3-soupsieve. 63s Preparing to unpack .../088-python3-soupsieve_2.7-1_all.deb ... 63s Unpacking python3-soupsieve (2.7-1) ... 63s Selecting previously unselected package python3-bs4. 63s Preparing to unpack .../089-python3-bs4_4.13.4-3_all.deb ... 63s Unpacking python3-bs4 (4.13.4-3) ... 63s Selecting previously unselected package python3-pydata-sphinx-theme. 63s Preparing to unpack .../090-python3-pydata-sphinx-theme_0.16.1+dfsg-3_all.deb ... 63s Unpacking python3-pydata-sphinx-theme (0.16.1+dfsg-3) ... 64s Selecting previously unselected package python3-donfig. 64s Preparing to unpack .../091-python3-donfig_0.8.1+dfsg-3_all.deb ... 64s Unpacking python3-donfig (0.8.1+dfsg-3) ... 64s Selecting previously unselected package python3-numcodecs. 64s Preparing to unpack .../092-python3-numcodecs_0.16.0+ds-1_amd64.deb ... 64s Unpacking python3-numcodecs (0.16.0+ds-1) ... 64s Selecting previously unselected package python3-zarr. 64s Preparing to unpack .../093-python3-zarr_3.0.6-2_all.deb ... 64s Unpacking python3-zarr (3.0.6-2) ... 64s Selecting previously unselected package python3-anndata. 64s Preparing to unpack .../094-python3-anndata_0.12.0~rc1-1_all.deb ... 64s Unpacking python3-anndata (0.12.0~rc1-1) ... 64s Selecting previously unselected package python3-fsspec. 64s Preparing to unpack .../095-python3-fsspec_2025.3.0-1_all.deb ... 64s Unpacking python3-fsspec (2025.3.0-1) ... 64s Selecting previously unselected package python3-awkward. 64s Preparing to unpack .../096-python3-awkward_2.6.5-1build1_amd64.deb ... 64s Unpacking python3-awkward (2.6.5-1build1) ... 64s Selecting previously unselected package python3-boltons. 64s Preparing to unpack .../097-python3-boltons_25.0.0-1_all.deb ... 64s Unpacking python3-boltons (25.0.0-1) ... 64s Selecting previously unselected package python3-brotli. 64s Preparing to unpack .../098-python3-brotli_1.1.0-2build4_amd64.deb ... 64s Unpacking python3-brotli (1.1.0-2build4) ... 64s Selecting previously unselected package python3-click. 64s Preparing to unpack .../099-python3-click_8.2.0+0.really.8.1.8-1_all.deb ... 64s Unpacking python3-click (8.2.0+0.really.8.1.8-1) ... 64s Selecting previously unselected package python3-cloudpickle. 64s Preparing to unpack .../100-python3-cloudpickle_3.1.1-1_all.deb ... 64s Unpacking python3-cloudpickle (3.1.1-1) ... 64s Selecting previously unselected package python3-contourpy. 64s Preparing to unpack .../101-python3-contourpy_1.3.1-1build1_amd64.deb ... 64s Unpacking python3-contourpy (1.3.1-1build1) ... 64s Selecting previously unselected package python3-coverage. 64s Preparing to unpack .../102-python3-coverage_7.8.2+dfsg1-1_amd64.deb ... 64s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 64s Selecting previously unselected package python3-cycler. 64s Preparing to unpack .../103-python3-cycler_0.12.1-1_all.deb ... 64s Unpacking python3-cycler (0.12.1-1) ... 64s Selecting previously unselected package python3-toolz. 64s Preparing to unpack .../104-python3-toolz_1.0.0-2_all.deb ... 64s Unpacking python3-toolz (1.0.0-2) ... 64s Selecting previously unselected package python3-locket. 64s Preparing to unpack .../105-python3-locket_1.0.0-2_all.deb ... 64s Unpacking python3-locket (1.0.0-2) ... 64s Selecting previously unselected package python3-partd. 64s Preparing to unpack .../106-python3-partd_1.4.2-1_all.deb ... 64s Unpacking python3-partd (1.4.2-1) ... 64s Selecting previously unselected package python3-dask. 64s Preparing to unpack .../107-python3-dask_2024.12.1+dfsg-2_all.deb ... 64s Unpacking python3-dask (2024.12.1+dfsg-2) ... 64s Selecting previously unselected package python3-msgpack. 64s Preparing to unpack .../108-python3-msgpack_1.0.3-3build4_amd64.deb ... 64s Unpacking python3-msgpack (1.0.3-3build4) ... 64s Selecting previously unselected package python3-psutil. 64s Preparing to unpack .../109-python3-psutil_5.9.8-2build3_amd64.deb ... 64s Unpacking python3-psutil (5.9.8-2build3) ... 64s Selecting previously unselected package python3-sortedcontainers. 64s Preparing to unpack .../110-python3-sortedcontainers_2.4.0-2_all.deb ... 64s Unpacking python3-sortedcontainers (2.4.0-2) ... 64s Selecting previously unselected package python3-tblib. 64s Preparing to unpack .../111-python3-tblib_3.1.0-1_all.deb ... 64s Unpacking python3-tblib (3.1.0-1) ... 64s Selecting previously unselected package python3-tornado. 64s Preparing to unpack .../112-python3-tornado_6.4.2-3_amd64.deb ... 64s Unpacking python3-tornado (6.4.2-3) ... 64s Selecting previously unselected package python3-zict. 64s Preparing to unpack .../113-python3-zict_3.0.0-2ubuntu1_all.deb ... 64s Unpacking python3-zict (3.0.0-2ubuntu1) ... 64s Selecting previously unselected package python3-distributed. 64s Preparing to unpack .../114-python3-distributed_2024.12.1+ds-1_all.deb ... 64s Unpacking python3-distributed (2024.12.1+ds-1) ... 64s Selecting previously unselected package python3-et-xmlfile. 64s Preparing to unpack .../115-python3-et-xmlfile_2.0.0-1_all.deb ... 64s Unpacking python3-et-xmlfile (2.0.0-1) ... 64s Selecting previously unselected package python3-execnet. 64s Preparing to unpack .../116-python3-execnet_2.1.1-1_all.deb ... 64s Unpacking python3-execnet (2.1.1-1) ... 64s Selecting previously unselected package python3-filelock. 64s Preparing to unpack .../117-python3-filelock_3.18.0-1_all.deb ... 64s Unpacking python3-filelock (3.18.0-1) ... 64s Selecting previously unselected package python3-platformdirs. 64s Preparing to unpack .../118-python3-platformdirs_4.3.7-1_all.deb ... 64s Unpacking python3-platformdirs (4.3.7-1) ... 64s Selecting previously unselected package python3-fs. 64s Preparing to unpack .../119-python3-fs_2.4.16-7_all.deb ... 64s Unpacking python3-fs (2.4.16-7) ... 64s Selecting previously unselected package python3-lxml:amd64. 64s Preparing to unpack .../120-python3-lxml_5.4.0-1build1_amd64.deb ... 64s Unpacking python3-lxml:amd64 (5.4.0-1build1) ... 65s Selecting previously unselected package python3-lz4. 65s Preparing to unpack .../121-python3-lz4_4.4.0+dfsg-2_amd64.deb ... 65s Unpacking python3-lz4 (4.4.0+dfsg-2) ... 65s Selecting previously unselected package python3-mpmath. 65s Preparing to unpack .../122-python3-mpmath_1.3.0-1_all.deb ... 65s Unpacking python3-mpmath (1.3.0-1) ... 65s Selecting previously unselected package python3-sympy. 65s Preparing to unpack .../123-python3-sympy_1.13.3-5_all.deb ... 65s Unpacking python3-sympy (1.13.3-5) ... 65s Selecting previously unselected package python3-ufolib2. 65s Preparing to unpack .../124-python3-ufolib2_0.17.1+dfsg1-1_all.deb ... 65s Unpacking python3-ufolib2 (0.17.1+dfsg1-1) ... 65s Selecting previously unselected package unicode-data. 65s Preparing to unpack .../125-unicode-data_15.1.0-1_all.deb ... 65s Unpacking unicode-data (15.1.0-1) ... 65s Selecting previously unselected package python3-fonttools. 65s Preparing to unpack .../126-python3-fonttools_4.55.3-2build1_amd64.deb ... 65s Unpacking python3-fonttools (4.55.3-2build1) ... 65s Selecting previously unselected package python3-iniconfig. 65s Preparing to unpack .../127-python3-iniconfig_1.1.1-2_all.deb ... 65s Unpacking python3-iniconfig (1.1.1-2) ... 65s Selecting previously unselected package python3-joblib. 65s Preparing to unpack .../128-python3-joblib_1.4.2-4_all.deb ... 65s Unpacking python3-joblib (1.4.2-4) ... 65s Selecting previously unselected package python3-kiwisolver. 65s Preparing to unpack .../129-python3-kiwisolver_1.4.7-3build1_amd64.deb ... 65s Unpacking python3-kiwisolver (1.4.7-3build1) ... 65s Selecting previously unselected package python3-llvmlite. 65s Preparing to unpack .../130-python3-llvmlite_0.44.0-1_amd64.deb ... 65s Unpacking python3-llvmlite (0.44.0-1) ... 65s Selecting previously unselected package libopenjp2-7:amd64. 65s Preparing to unpack .../131-libopenjp2-7_2.5.3-2_amd64.deb ... 65s Unpacking libopenjp2-7:amd64 (2.5.3-2) ... 65s Selecting previously unselected package python3-pil:amd64. 65s Preparing to unpack .../132-python3-pil_11.1.0-5build1_amd64.deb ... 65s Unpacking python3-pil:amd64 (11.1.0-5build1) ... 65s Selecting previously unselected package python3.13-tk. 65s Preparing to unpack .../133-python3.13-tk_3.13.5-2_amd64.deb ... 65s Unpacking python3.13-tk (3.13.5-2) ... 65s Selecting previously unselected package python3-tk:amd64. 65s Preparing to unpack .../134-python3-tk_3.13.4-1_amd64.deb ... 65s Unpacking python3-tk:amd64 (3.13.4-1) ... 65s Selecting previously unselected package python3-pil.imagetk:amd64. 65s Preparing to unpack .../135-python3-pil.imagetk_11.1.0-5build1_amd64.deb ... 65s Unpacking python3-pil.imagetk:amd64 (11.1.0-5build1) ... 65s Selecting previously unselected package python3-matplotlib. 65s Preparing to unpack .../136-python3-matplotlib_3.10.1+dfsg1-4_amd64.deb ... 65s Unpacking python3-matplotlib (3.10.1+dfsg1-4) ... 66s Selecting previously unselected package python3-numba. 66s Preparing to unpack .../137-python3-numba_0.61.2+dfsg-1_amd64.deb ... 66s Unpacking python3-numba (0.61.2+dfsg-1) ... 66s Selecting previously unselected package python3-openpyxl. 66s Preparing to unpack .../138-python3-openpyxl_3.1.5+dfsg-2_all.deb ... 66s Unpacking python3-openpyxl (3.1.5+dfsg-2) ... 66s Selecting previously unselected package python3-pluggy. 66s Preparing to unpack .../139-python3-pluggy_1.5.0-1_all.deb ... 66s Unpacking python3-pluggy (1.5.0-1) ... 66s Selecting previously unselected package python3-pytest. 66s Preparing to unpack .../140-python3-pytest_8.3.5-2_all.deb ... 66s Unpacking python3-pytest (8.3.5-2) ... 66s Selecting previously unselected package libjs-jquery-hotkeys. 66s Preparing to unpack .../141-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 66s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 66s Selecting previously unselected package libjs-jquery-isonscreen. 66s Preparing to unpack .../142-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 66s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 66s Selecting previously unselected package python3-pytest-cov. 66s Preparing to unpack .../143-python3-pytest-cov_5.0.0-1_all.deb ... 66s Unpacking python3-pytest-cov (5.0.0-1) ... 66s Selecting previously unselected package python3-pytest-mock. 66s Preparing to unpack .../144-python3-pytest-mock_3.14.0-3_all.deb ... 66s Unpacking python3-pytest-mock (3.14.0-3) ... 66s Selecting previously unselected package python3-pytest-xdist. 66s Preparing to unpack .../145-python3-pytest-xdist_3.6.1-1_all.deb ... 66s Unpacking python3-pytest-xdist (3.6.1-1) ... 66s Selecting previously unselected package python3-threadpoolctl. 66s Preparing to unpack .../146-python3-threadpoolctl_3.1.0-1_all.deb ... 66s Unpacking python3-threadpoolctl (3.1.0-1) ... 66s Selecting previously unselected package python3-sklearn-lib:amd64. 66s Preparing to unpack .../147-python3-sklearn-lib_1.4.2+dfsg-8_amd64.deb ... 66s Unpacking python3-sklearn-lib:amd64 (1.4.2+dfsg-8) ... 66s Selecting previously unselected package python3-sklearn. 66s Preparing to unpack .../148-python3-sklearn_1.4.2+dfsg-8_all.deb ... 66s Unpacking python3-sklearn (1.4.2+dfsg-8) ... 66s Selecting previously unselected package python3-xarray. 66s Preparing to unpack .../149-python3-xarray_2025.03.1-8_all.deb ... 66s Unpacking python3-xarray (2025.03.1-8) ... 66s Selecting previously unselected package python3-xlrd. 66s Preparing to unpack .../150-python3-xlrd_2.0.1-2_all.deb ... 66s Unpacking python3-xlrd (2.0.1-2) ... 66s Selecting previously unselected package quilt. 66s Preparing to unpack .../151-quilt_0.68-1_all.deb ... 66s Unpacking quilt (0.68-1) ... 66s Setting up libgraphite2-3:amd64 (1.3.14-2ubuntu1) ... 66s Setting up liblcms2-2:amd64 (2.16-2) ... 66s Setting up python3-iniconfig (1.1.1-2) ... 66s Setting up libtbbmalloc2:amd64 (2022.1.0-1) ... 66s Setting up libllvm19 (1:19.1.7-5ubuntu2) ... 66s Setting up python3-tornado (6.4.2-3) ... 67s Setting up libsharpyuv0:amd64 (1.5.0-0.1) ... 67s Setting up python3-filelock (3.18.0-1) ... 67s Setting up liblerc4:amd64 (4.0.0+ds-5ubuntu1) ... 67s Setting up python3-tblib (3.1.0-1) ... 67s Setting up libxrender1:amd64 (1:0.9.12-1) ... 67s Setting up python3-joblib (1.4.2-4) ... 67s Setting up python3-lz4 (4.4.0+dfsg-2) ... 67s Setting up python3-boltons (25.0.0-1) ... 67s Setting up python3-defusedxml (0.7.1-3) ... 67s Setting up python3-alabaster (0.7.16-0.1) ... 67s Setting up fonts-lyx (2.4.3-1) ... 67s Setting up python3-fsspec (2025.3.0-1) ... 67s Setting up python3-threadpoolctl (3.1.0-1) ... 68s Setting up x11-common (1:7.7+24ubuntu1) ... 68s Setting up libdeflate0:amd64 (1.23-2) ... 68s Setting up python3-array-api-compat (1.11.2-1) ... 68s Setting up libqhull-r8.0:amd64 (2020.2-6build1) ... 68s Setting up python3-all (3.13.4-1) ... 68s Setting up python3-coverage (7.8.2+dfsg1-1) ... 68s Setting up python3-pytz (2025.2-3) ... 68s Setting up python3-sortedcontainers (2.4.0-2) ... 68s Setting up node-fortawesome-fontawesome-free (6.7.2+ds1-1) ... 68s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 68s Setting up libgomp1:amd64 (15.1.0-8ubuntu1) ... 68s Setting up python3-click (8.2.0+0.really.8.1.8-1) ... 68s Setting up libjbig0:amd64 (2.1-6.1ubuntu2) ... 68s Setting up libaec0:amd64 (1.1.3-1) ... 68s Setting up python3-platformdirs (4.3.7-1) ... 68s Setting up python3-psutil (5.9.8-2build3) ... 69s Setting up python3-natsort (8.0.2-2) ... 69s Setting up python3-cloudpickle (3.1.1-1) ... 69s Setting up libsnappy1v5:amd64 (1.2.2-1) ... 69s Setting up python3-fs (2.4.16-7) ... 69s Setting up unicode-data (15.1.0-1) ... 69s Setting up python3-roman (5.0-1) ... 69s Setting up python3-decorator (5.2.1-2) ... 69s Setting up libblas3:amd64 (3.12.1-2build1) ... 69s 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 69s Setting up libpfm4:amd64 (4.13.0+git99-gc5587f9-1) ... 69s Setting up python3-accessible-pygments (0.0.5-2) ... 69s Setting up python3-snowballstemmer (2.2.0-4build1) ... 69s Setting up python3-brotli (1.1.0-2build4) ... 69s Setting up liblzf1:amd64 (3.6-4) ... 69s Setting up python3-cycler (0.12.1-1) ... 69s Setting up diffstat (1.68-0ubuntu1) ... 69s Setting up libimagequant0:amd64 (2.18.0-1build1) ... 69s Setting up fonts-dejavu-mono (2.37-8) ... 69s Setting up python3-kiwisolver (1.4.7-3build1) ... 69s Setting up libhwloc15:amd64 (2.12.0-4build1) ... 69s Setting up python3-numpy-dev:amd64 (1:2.2.4+ds-1ubuntu1) ... 69s Setting up libtcl8.6:amd64 (8.6.16+dfsg-1) ... 69s Setting up fonts-dejavu-core (2.37-8) ... 70s Setting up libjpeg-turbo8:amd64 (2.1.5-3ubuntu2) ... 70s Setting up python3-crc32c (2.7.1-1) ... 70s Setting up libgfortran5:amd64 (15.1.0-8ubuntu1) ... 70s Setting up python3-pluggy (1.5.0-1) ... 70s Setting up libwebp7:amd64 (1.5.0-0.1) ... 70s Setting up libjson-perl (4.10000-1) ... 70s Setting up libxslt1.1:amd64 (1.1.43-0exp1) ... 70s Setting up libblosc1:amd64 (1.21.5+ds-1build1) ... 70s Setting up python3-et-xmlfile (2.0.0-1) ... 70s Setting up python3-xlrd (2.0.1-2) ... 70s Setting up libopenjp2-7:amd64 (2.5.3-2) ... 70s Setting up python3-toolz (1.0.0-2) ... 70s Setting up libharfbuzz0b:amd64 (10.2.0-1) ... 70s Setting up sgml-base (1.31+nmu1) ... 70s Setting up python3-msgpack (1.0.3-3build4) ... 70s Setting up llvm-19-linker-tools (1:19.1.7-5ubuntu2) ... 70s Setting up python3-donfig (0.8.1+dfsg-3) ... 70s Setting up libxss1:amd64 (1:1.2.3-1build3) ... 70s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 70s Setting up python3-mpmath (1.3.0-1) ... 70s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 70s Setting up llvm-19-runtime (1:19.1.7-5ubuntu2) ... 70s Setting up python3-execnet (2.1.1-1) ... 71s Setting up python3-zict (3.0.0-2ubuntu1) ... 71s Setting up python-matplotlib-data (3.10.1+dfsg1-4) ... 71s Setting up libwebpmux3:amd64 (1.5.0-0.1) ... 71s Setting up python3-locket (1.0.0-2) ... 71s Setting up python3-soupsieve (2.7-1) ... 71s Setting up libsz2:amd64 (1.1.3-1) ... 71s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 71s Setting up python3-imagesize (1.4.1-1) ... 71s Setting up libjpeg8:amd64 (8c-2ubuntu11) ... 71s Setting up python3-partd (1.4.2-1) ... 71s Setting up python3-sympy (1.13.3-5) ... 74s Setting up liblapack3:amd64 (3.12.1-2build1) ... 74s 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 74s Setting up gettext (0.23.1-2build1) ... 74s Setting up fontconfig-config (2.15.0-2.2ubuntu1) ... 75s Setting up python3-pytest (8.3.5-2) ... 75s Setting up libwebpdemux2:amd64 (1.5.0-0.1) ... 75s Setting up python3-dask (2024.12.1+dfsg-2) ... 75s Setting up quilt (0.68-1) ... 75s Setting up python3-bs4 (4.13.4-3) ... 76s Setting up libtbbbind-2-5:amd64 (2022.1.0-1) ... 76s Setting up python3-distributed (2024.12.1+ds-1) ... 76s Setting up libjs-jquery-ui (1.13.2+dfsg-1) ... 76s Setting up libjs-jquery-metadata (12-4) ... 76s Setting up libraqm0:amd64 (0.10.2-1) ... 76s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 76s Setting up python3-numpy (1:2.2.4+ds-1ubuntu1) ... 77s Setting up libjs-sphinxdoc (8.2.3-1ubuntu2) ... 77s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 77s Setting up libhdf5-310:amd64 (1.14.5+repack-3build1) ... 77s Setting up python3-pytest-mock (3.14.0-3) ... 77s Setting up python3-lxml:amd64 (5.4.0-1build1) ... 78s Setting up libtiff6:amd64 (4.7.0-3ubuntu1) ... 78s Setting up xml-core (0.19) ... 78s Setting up python3-awkward (2.6.5-1build1) ... 78s Setting up python3-contourpy (1.3.1-1build1) ... 78s Setting up llvm-19 (1:19.1.7-5ubuntu2) ... 78s Setting up libfontconfig1:amd64 (2.15.0-2.2ubuntu1) ... 78s Setting up libhdf5-hl-310:amd64 (1.14.5+repack-3build1) ... 78s Setting up libxft2:amd64 (2.3.6-1build1) ... 78s Setting up python3-scipy (1.15.3-1) ... 80s Setting up python3-pytest-xdist (3.6.1-1) ... 80s Setting up libtk8.6:amd64 (8.6.16-1) ... 80s Setting up python3-pandas-lib:amd64 (2.2.3+dfsg-9) ... 80s Setting up python3-sklearn-lib:amd64 (1.4.2+dfsg-8) ... 80s Setting up python3-h5py-serial (3.13.0-1ubuntu1) ... 80s Setting up python3-pytest-cov (5.0.0-1) ... 81s Setting up libtbb12:amd64 (2022.1.0-1) ... 81s Setting up python3.13-tk (3.13.5-2) ... 81s Setting up python3-pil:amd64 (11.1.0-5build1) ... 81s Setting up python3-llvmlite (0.44.0-1) ... 81s Setting up python3-pandas (2.2.3+dfsg-9) ... 84s Setting up python3-openpyxl (3.1.5+dfsg-2) ... 84s Setting up sphinx-common (8.2.3-1ubuntu2) ... 84s Setting up python3-h5py (3.13.0-1ubuntu1) ... 84s Setting up python3-sklearn (1.4.2+dfsg-8) ... 85s Setting up tk8.6-blt2.5 (2.5.3+dfsg-8) ... 85s Setting up blt (2.5.3+dfsg-8) ... 85s Setting up python3-xarray (2025.03.1-8) ... 86s Setting up python3-tk:amd64 (3.13.4-1) ... 86s Setting up python3-numba (0.61.2+dfsg-1) ... 86s update-alternatives: using /usr/share/python3-numba/numba to provide /usr/bin/numba (numba) in auto mode 87s Setting up python3-pil.imagetk:amd64 (11.1.0-5build1) ... 87s Setting up python3-fonttools (4.55.3-2build1) ... 88s Setting up python3-ufolib2 (0.17.1+dfsg1-1) ... 88s Setting up python3-matplotlib (3.10.1+dfsg1-4) ... 89s Processing triggers for libc-bin (2.41-6ubuntu2) ... 89s Processing triggers for systemd (257.6-1ubuntu1) ... 89s Processing triggers for man-db (2.13.1-1) ... 89s Processing triggers for install-info (7.1.1-1) ... 90s Processing triggers for sgml-base (1.31+nmu1) ... 90s Setting up docutils-common (0.21.2+dfsg-2) ... 90s Processing triggers for sgml-base (1.31+nmu1) ... 90s Setting up python3-docutils (0.21.2+dfsg-2) ... 90s Setting up python3-sphinx (8.2.3-1ubuntu2) ... 90s Setting up python3-sphinx-copybutton (0.5.2-2) ... 90s Setting up python3-pydata-sphinx-theme (0.16.1+dfsg-3) ... 90s Setting up python3-numcodecs (0.16.0+ds-1) ... 91s Setting up python3-zarr (3.0.6-2) ... 91s Setting up python3-anndata (0.12.0~rc1-1) ... 92s autopkgtest [16:27:54]: test environment configured for cross building 92s autopkgtest [16:27:54]: test run-unit-test: [----------------------- 92s ++ pwd 92s + CUR_DIR=/tmp/autopkgtest.tHHpAk/build.m4n/src 92s + QUILT_PATCHES=debian/patches 92s + quilt push -a 92s File series fully applied, ends at patch debian/patches/skip_awkward.patch 92s + true 92s + '[' /tmp/autopkgtest.tHHpAk/autopkgtest_tmp = '' ']' 92s + cp -a tests/ /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/ 92s + echo 92s + cd /tmp/autopkgtest.tHHpAk/autopkgtest_tmp 92s ++ py3versions --supported 92s Testing with python3.13: 92s + for py in $(py3versions --supported) 92s + echo 'Testing with python3.13:' 92s + python3.13 -m pytest 94s ============================= test session starts ============================== 94s platform linux -- Python 3.13.5, pytest-8.3.5, pluggy-1.5.0 94s rootdir: /tmp/autopkgtest.tHHpAk/autopkgtest_tmp 94s plugins: cov-5.0.0, xdist-3.6.1, mock-3.14.0, typeguard-4.4.2 94s collected 6026 items / 3 skipped 94s 106s tests/lazy/test_concat.py .............................................. [ 0%] 126s ................................................. [ 1%] 128s tests/lazy/test_read.py .... [ 1%] 139s tests/lazy/test_concat.py ........................ [ 2%] 141s tests/lazy/test_read.py .... [ 2%] 150s tests/lazy/test_concat.py ........................ [ 2%] 151s tests/lazy/test_read.py .... [ 2%] 160s tests/lazy/test_concat.py ........ssss........ssss [ 2%] 161s tests/lazy/test_read.py .... [ 3%] 170s tests/lazy/test_concat.py ........ssss........ssss [ 3%] 171s tests/lazy/test_read.py .... [ 3%] 180s tests/lazy/test_concat.py ........ssss........ssss [ 3%] 181s tests/lazy/test_read.py .... [ 3%] 191s tests/lazy/test_concat.py ........ssss........ssss [ 4%] 193s tests/lazy/test_read.py .... [ 4%] 202s tests/lazy/test_concat.py ........................ [ 4%] 203s tests/lazy/test_read.py .... [ 4%] 215s tests/lazy/test_concat.py ........................ [ 5%] 222s tests/lazy/test_read.py ................................... [ 5%] 230s tests/lazy/test_concat.py ........ssss........ssss [ 6%] 231s tests/lazy/test_read.py .... [ 6%] 242s tests/lazy/test_concat.py ........ssss........ssss [ 6%] 243s tests/lazy/test_read.py .... [ 6%] 253s tests/lazy/test_concat.py ........................ [ 7%] 254s tests/lazy/test_read.py .... [ 7%] 265s tests/lazy/test_concat.py ........................ [ 7%] 273s tests/lazy/test_read.py ................................... [ 8%] 283s tests/lazy/test_concat.py ........ssss........ssss [ 8%] 285s tests/lazy/test_read.py .... [ 8%] 295s tests/lazy/test_concat.py ........ssss........ssss [ 9%] 297s tests/lazy/test_read.py .... [ 9%] 306s tests/lazy/test_concat.py ........................ [ 9%] 315s tests/lazy/test_read.py ................................................ [ 10%] 318s .................. [ 10%] 329s tests/lazy/test_concat.py .............................................. [ 11%] 333s ........ [ 11%] 333s tests/lazy/test_write.py ................ [ 11%] 333s tests/test_anncollection.py ..... [ 11%] 333s tests/test_annot.py ...... [ 12%] 333s tests/test_backed_dense.py ........................... [ 12%] 338s tests/test_backed_hdf5.py ...........................x........x..x..x..x [ 13%] 357s ..x..x..x..............................................................x [ 14%] 372s ........x..x..x..x..x..x..x..x........x..x..x..x..x..x..x..x........x..x [ 15%] 388s ..x..x..x..x..x..x........x..x..x..x..x..x..x..x........x..x..x..x..x..x [ 16%] 402s ..x..x........x..x..x..x..x..x..x..x........x..x..x..x..x..x..x......... [ 18%] 402s . [ 18%] 408s tests/test_backed_sparse.py ............................................ [ 18%] 418s ........................................................................ [ 19%] 428s ........................................................................ [ 21%] 438s ........................................................................ [ 22%] 448s ........................................................................ [ 23%] 450s ........................................................................ [ 24%] 452s ........................................................................ [ 25%] 453s .................................................ss [ 26%] 453s tests/test_base.py ..................................................... [ 27%] 453s ......................... [ 28%] 456s tests/test_concatenate.py ...............FFFFFF..............FFFFFF..... [ 28%] 458s ..........FFFFFF......................FFFFFF.....................FFFFFFF [ 30%] 460s FF......................FFF.......FFF.......FFF.......FFF.......FFF..... [ 31%] 461s ..FFF................................................................... [ 32%] 461s ........................................................................ [ 33%] 462s ........................................................................ [ 34%] 465s ........................................................................ [ 35%] 469s ........................................................................ [ 37%] 473s ............................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 38%] 475s FFFFFFFFFFFFFFFF........................................................ [ 39%] 476s .....x.x................FFF.......FFF.......FFF.......FFF.......FFF..... [ 40%] 477s ...s.......FFF.......... [ 41%] 571s tests/test_concatenate_disk.py ......................................... [ 41%] 696s ............................................................... [ 42%] 717s tests/test_dask.py ..................................................... [ 43%] 720s ....................F... [ 44%] 720s tests/test_deprecations.py .................... [ 44%] 720s tests/test_extensions.py .................... [ 44%] 720s tests/test_get_vector.py . [ 44%] 722s tests/test_helpers.py .............................FFFFFFFFFF.......FFFF [ 45%] 722s FFFFFFFFFFF [ 45%] 723s tests/test_inplace_subset.py ........................................... [ 46%] 725s ........................................................................ [ 47%] 726s ......................... [ 48%] 727s tests/test_io_backwards_compat.py ..... [ 48%] 732s tests/test_io_conversion.py ................... [ 48%] 740s tests/test_io_dispatched.py ..... [ 48%] 742s tests/test_io_elementwise.py ........................................... [ 49%] 746s ............................................FFFFFFFFFFFFFFFFFFFFFFFF.... [ 50%] 822s ........................................................................ [ 51%] 838s ........................................................................ [ 52%] 843s ................. [ 53%] 843s tests/test_io_partial.py ......sss [ 53%] 843s tests/test_io_utils.py .......... [ 53%] 844s tests/test_io_warnings.py s. [ 53%] 844s tests/test_layers.py .......s... [ 53%] 844s tests/test_obsmvarm.py ....... [ 53%] 844s tests/test_obspvarp.py ......... [ 54%] 844s tests/test_raw.py ......xx.... [ 54%] 857s tests/test_readwrite.py ...............FFFF....FFFF......FF............. [ 55%] 867s ...........sssssssss........x....................................sssssss [ 56%] 879s .................................s [ 56%] 879s tests/test_repr.py ......... [ 56%] 879s tests/test_settings.py .................. [ 57%] 879s tests/test_structured_arrays.py ... [ 57%] 879s tests/test_transpose.py .............. [ 57%] 879s tests/test_uns.py . [ 57%] 879s tests/test_utils.py .. [ 57%] 880s tests/test_views.py ........................FFFFFFFFF................... [ 58%] 880s ........................................................................ [ 59%] 880s ........................................................................ [ 60%] 881s ....................................................FFFFFFFFFFFFFFFFFFFF [ 62%] 883s FFFFFFFFFF.............................................................. [ 63%] 885s ........................................................................ [ 64%] 887s ........................................................................ [ 65%] 890s ........................................................................ [ 66%] 892s ........................................................................ [ 68%] 894s ........................................................................ [ 69%] 896s ........................................................................ [ 70%] 898s ........................................................................ [ 71%] 901s ........................................................................ [ 72%] 903s ........................................................................ [ 73%] 905s ........................................................................ [ 75%] 908s ........................................................................ [ 76%] 910s ........................................................................ [ 77%] 915s ...............xxxxxxxxxx............................................... [ 78%] 919s ...........................................xxxxxxxxxx................... [ 79%] 924s .......................................................................x [ 81%] 929s xxxxxxxxx............................................................... [ 82%] 934s ...........................xxxxxxxxxx................................... [ 83%] 939s .......................................................xxxxxxxxxx....... [ 84%] 944s ........................................................................ [ 85%] 949s ...........xxxxxxxxxx................................................... [ 87%] 955s .......................................xxxxxxxxxx....................... [ 88%] 961s ...............................................FFFFFFFFFFFFFFFFFFFFFFFFF [ 89%] 964s FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 90%] 966s FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 91%] 969s FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 93%] 972s FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF............. [ 94%] 973s ........................................................................ [ 95%] 975s .......................FFF.............................................. [ 96%] 977s .......................................................FFFFFFFFFFFFFFFFF [ 97%] 977s FFFF...... [ 98%] 978s tests/test_x.py ........................................................ [ 98%] 980s ........................x....x....x....x...................... [100%] 980s 980s =================================== FAILURES =================================== 980s _______ test_concatenate_roundtrip[inner-cupy_array-concat_func0-False] ________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 1., 0., 1., 1.], 980s [1., 0., 0., 0., 1., 1., 0., 0., 0., 0.], 980s [0., 0., 0., ... 1.], 980s [0., 0., 1., 1., 0., 1., 0., 2., 0., 0.], 980s [1., 2., 0., 0., 0., 0., 2., 1., 2., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_concatenate_roundtrip[inner-cupy_array--True] __________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 2., 0., 2., 2., 0.], 980s [0., 1., 0., ... 0.], 980s [0., 1., 2., 1., 0., 0., 0., 1., 0., 0.], 980s [0., 1., 2., 0., 3., 0., 0., 1., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_concatenate_roundtrip[inner-cupy_csr-concat_func0-False] _________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 3., 0., 0., 2., 0., 0., 1., 0.], 980s [0., 0., 1., 1., 2., 1., 0., 0., 1., 0.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 3., 0., 1., 0., 0., 0., 1., 2.], 980s [0., 1., 1., 1., 0., 0., 0., 1., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_concatenate_roundtrip[inner-cupy_csr--True] ___________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., 0., 0., 0., 0., 1., 1., 0.], 980s [3., 0., 0., 0., 2., 0., 0., 2., 0., 1.], 980s [1., 0., 1., ... 0.], 980s [1., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 1., 1., 1., 0., 1., 4., 2., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_concatenate_roundtrip[inner-cupy_csc-concat_func0-False] _________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 3., 0., 1., 1., 0., 0., 0., 0.], 980s [2., 0., 0., 1., 0., 0., 0., 1., 1., 1.], 980s [0., 0., 0., ... 1.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 0., 1., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_concatenate_roundtrip[inner-cupy_csc--True] ___________ 980s 980s join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 3., 1., 0., 0., 0., 0., 0.], 980s [1., 0., 0., 0., 1., 0., 1., 1., 0., 0.], 980s [1., 1., 1., ... 1.], 980s [0., 1., 1., 1., 0., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_concatenate_roundtrip[outer-cupy_array-concat_func0-False] ________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 1., 0., 1., 1.], 980s [0., 0., 1., 0., 1., 2., 1., 1., 0., 0.], 980s [0., 0., 0., ... 2.], 980s [0., 0., 1., 1., 0., 1., 1., 0., 1., 0.], 980s [0., 0., 2., 1., 2., 2., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_concatenate_roundtrip[outer-cupy_array--True] __________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 2., 1., 0., 1., 0., 0.], 980s [0., 0., 1., 1., 0., 0., 2., 2., 0., 1.], 980s [1., 0., 0., ... 0.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 0., 0.], 980s [1., 0., 2., 0., 1., 0., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_concatenate_roundtrip[outer-cupy_csr-concat_func0-False] _________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 1., 0., 3.], 980s [0., 0., 0., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 1., 1., ... 0.], 980s [0., 0., 0., 1., 0., 1., 0., 1., 0., 0.], 980s [1., 0., 0., 0., 0., 1., 0., 0., 1., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_concatenate_roundtrip[outer-cupy_csr--True] ___________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 1., 0., 2., 1., 0., 0.], 980s [0., 1., 1., 0., 1., 1., 2., 0., 0., 1.], 980s [0., 0., 0., ... 0.], 980s [0., 2., 3., 1., 0., 1., 0., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 1., 0., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_concatenate_roundtrip[outer-cupy_csc-concat_func0-False] _________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = functools.partial(, merge='unique') 980s backwards_compat = False 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 1., 1., 1., 0., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 1., 1., 0., 1.], 980s [2., 1., 0., ... 2.], 980s [0., 0., 1., 1., 0., 1., 0., 1., 0., 1.], 980s [2., 1., 0., 0., 1., 2., 0., 1., 1., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_concatenate_roundtrip[outer-cupy_csc--True] ___________ 980s 980s join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s concat_func = at 0x75a2690ec860>, backwards_compat = True 980s 980s @mark_legacy_concatenate 980s @pytest.mark.parametrize( 980s ("concat_func", "backwards_compat"), 980s [ 980s (partial(concat, merge="unique"), False), 980s (lambda x, **kwargs: x[0].concatenate(x[1:], **kwargs), True), 980s ], 980s ) 980s def test_concatenate_roundtrip(join_type, array_type, concat_func, backwards_compat): 980s > adata = gen_adata((100, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:185: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 1., 1., 1., 0., 1., 1.], 980s [0., 1., 3., 0., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 0., ... 1.], 980s [1., 1., 0., 1., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 4., 0., 0., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_concatenate_layers[cupy_array-inner] ___________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________________ test_concatenate_layers[cupy_array-outer] ___________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________________ test_concatenate_layers[cupy_csr-inner] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________________ test_concatenate_layers[cupy_csr-outer] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________________ test_concatenate_layers[cupy_csc-inner] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________________ test_concatenate_layers[cupy_csc-outer] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:291: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_concatenate_layers_misaligned[cupy_array-inner] _____________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_concatenate_layers_misaligned[cupy_array-outer] _____________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_concatenate_layers_misaligned[cupy_csr-inner] ______________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_concatenate_layers_misaligned[cupy_csr-outer] ______________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_concatenate_layers_misaligned[cupy_csc-inner] ______________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'inner' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_concatenate_layers_misaligned[cupy_csc-outer] ______________ 980s 980s array_type = functools.partial(, typ=) 980s join_type = 'outer' 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_misaligned(array_type, join_type): 980s adatas = [] 980s for _ in range(5): 980s > a = array_type(sparse.random(100, 200, format="csr")) 980s 980s tests/test_concatenate.py:461: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________________ test_concatenate_layers_outer[cupy_array-0] __________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 0 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________________ test_concatenate_layers_outer[cupy_array-nan] _________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = nan 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_concatenate_layers_outer[cupy_array-3.141592653589793] __________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 3.141592653589793 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________________ test_concatenate_layers_outer[cupy_csr-0] ___________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 0 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________________ test_concatenate_layers_outer[cupy_csr-nan] __________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = nan 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_concatenate_layers_outer[cupy_csr-3.141592653589793] ___________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 3.141592653589793 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_concatenate_layers_outer[cupy_csc-0] ___________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 0 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________________ test_concatenate_layers_outer[cupy_csc-nan] __________________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = nan 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_concatenate_layers_outer[cupy_csc-3.141592653589793] ___________ 980s 980s array_type = functools.partial(, typ=) 980s fill_val = 3.141592653589793 980s 980s @mark_legacy_concatenate 980s def test_concatenate_layers_outer(array_type, fill_val): 980s # Testing that issue #368 is fixed 980s a = AnnData( 980s X=np.ones((10, 20)), 980s > layers={"a": array_type(sparse.random(10, 20, format="csr"))}, 980s ) 980s 980s tests/test_concatenate.py:476: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_pairwise_concat[obs-cupy_array] _____________________ 980s 980s axis_name = 'obs' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_pairwise_concat[obs-cupy_csr] ______________________ 980s 980s axis_name = 'obs' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_pairwise_concat[obs-cupy_csc] ______________________ 980s 980s axis_name = 'obs' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_pairwise_concat[var-cupy_array] _____________________ 980s 980s axis_name = 'var' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_pairwise_concat[var-cupy_csr] ______________________ 980s 980s axis_name = 'var' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_pairwise_concat[var-cupy_csc] ______________________ 980s 980s axis_name = 'var' 980s array_type = functools.partial(, typ=) 980s 980s def test_pairwise_concat(axis_name, array_type): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s _, alt_axis_name = merge._resolve_axis(1 - axis) 980s axis_sizes = [[100, 200, 50], [50, 50, 50]] 980s if axis_name == "var": 980s axis_sizes.reverse() 980s Ms, Ns = axis_sizes 980s axis_attr = f"{axis_name}p" 980s alt_attr = f"{alt_axis_name}p" 980s 980s def gen_axis_array(m): 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s 980s adatas = { 980s k: AnnData( 980s X=sparse.csr_matrix((m, n)), 980s > obsp={"arr": gen_axis_array(m)}, 980s varp={"arr": gen_axis_array(n)}, 980s ) 980s for k, m, n in zip("abc", Ms, Ns) 980s } 980s 980s tests/test_concatenate.py:855: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s tests/test_concatenate.py:850: in gen_axis_array 980s return array_type(sparse.random(m, m, format="csr", density=0.1)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_nan_merge[obs-inner-cupy_array] _____________________ 980s 980s axis_name = 'obs', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_nan_merge[obs-inner-cupy_csr] ______________________ 980s 980s axis_name = 'obs', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_nan_merge[obs-inner-cupy_csc] ______________________ 980s 980s axis_name = 'obs', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_nan_merge[obs-outer-cupy_array] _____________________ 980s 980s axis_name = 'obs', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_nan_merge[obs-outer-cupy_csr] ______________________ 980s 980s axis_name = 'obs', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_nan_merge[obs-outer-cupy_csc] ______________________ 980s 980s axis_name = 'obs', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_nan_merge[var-inner-cupy_array] _____________________ 980s 980s axis_name = 'var', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_nan_merge[var-inner-cupy_csr] ______________________ 980s 980s axis_name = 'var', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_nan_merge[var-inner-cupy_csc] ______________________ 980s 980s axis_name = 'var', join_type = 'inner' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_nan_merge[var-outer-cupy_array] _____________________ 980s 980s axis_name = 'var', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________________ test_nan_merge[var-outer-cupy_csr] ______________________ 980s 980s axis_name = 'var', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________________ test_nan_merge[var-outer-cupy_csc] ______________________ 980s 980s axis_name = 'var', join_type = 'outer' 980s array_type = functools.partial(, typ=) 980s 980s def test_nan_merge(axis_name, join_type, array_type): 980s axis, _ = merge._resolve_axis(axis_name) 980s alt_axis, alt_axis_name = merge._resolve_axis(1 - axis) 980s mapping_attr = f"{alt_axis_name}m" 980s adata_shape = (20, 10) 980s 980s > arr = array_type( 980s sparse.random(adata_shape[alt_axis], 10, density=0.1, format="csr") 980s ) 980s 980s tests/test_concatenate.py:903: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-inner-None] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 2., 1., 0., 1., 2., 1., 0., 1., 1.], 980s [0., 1., 0., ... 0.], 980s [1., 1., 0., 0., 0., 3., 2., 0., 2., 0.], 980s [1., 1., 0., 0., 3., 2., 0., 0., 1., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-inner-same] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 0., 1., 1., 0.], 980s [0., 2., 0., 1., 0., 0., 0., 0., 0., 1.], 980s [1., 0., 1., ... 0.], 980s [2., 2., 0., 3., 0., 0., 1., 1., 0., 1.], 980s [0., 2., 0., 1., 0., 0., 2., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_transposed_concat[cupy_array-obs-inner-unique] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 2., 0., 1., 0., 1., 0.], 980s [1., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 2., 1., ... 1.], 980s [1., 1., 0., 2., 2., 0., 1., 0., 1., 1.], 980s [2., 0., 0., 1., 0., 0., 0., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-inner-first] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 0., 1., 1., 0., 3.], 980s [0., 0., 1., 1., 1., 0., 0., 0., 1., 0.], 980s [0., 1., 0., ... 1.], 980s [0., 0., 2., 1., 1., 1., 1., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-inner-only] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 2., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 1., 1., 1.], 980s [0., 0., 0., ... 0.], 980s [0., 2., 1., 1., 1., 0., 0., 1., 1., 1.], 980s [0., 2., 1., 1., 0., 0., 0., 1., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-outer-None] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 1., 0., 0.], 980s [0., 2., 0., ... 1.], 980s [0., 0., 1., 1., 1., 0., 0., 0., 1., 0.], 980s [0., 1., 0., 1., 1., 0., 0., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-outer-same] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 0., 1., 0., 0., 1., 0.], 980s [1., 2., 2., 0., 0., 0., 1., 0., 1., 1.], 980s [1., 0., 0., ... 0.], 980s [2., 1., 2., 1., 1., 1., 0., 2., 1., 1.], 980s [0., 0., 0., 1., 0., 0., 1., 2., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_transposed_concat[cupy_array-obs-outer-unique] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 2., 0., 1., 1., 0., 1.], 980s [1., 0., 0., 0., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 1., ... 0.], 980s [1., 1., 1., 0., 0., 0., 2., 0., 0., 0.], 980s [1., 1., 1., 2., 0., 1., 0., 1., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-outer-first] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 1., 0., 1., 0., 0., 0.], 980s [0., 1., 1., 1., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 1., ... 0.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 0., 3., 0., 3.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-obs-outer-only] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 0., 1., 0., 0., 0., 1.], 980s [0., 0., 1., 1., 0., 0., 1., 0., 1., 0.], 980s [0., 2., 0., ... 0.], 980s [0., 0., 1., 2., 1., 2., 0., 2., 0., 1.], 980s [1., 2., 0., 1., 0., 1., 0., 1., 2., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-inner-None] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 0., 1., 2., 0.], 980s [0., 0., 2., 0., 1., 0., 2., 1., 2., 1.], 980s [0., 0., 0., ... 1.], 980s [1., 0., 0., 0., 1., 0., 0., 0., 1., 0.], 980s [1., 0., 1., 0., 0., 2., 1., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-inner-same] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 1., 0., 2., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 2., 1., 2.], 980s [0., 0., 1., ... 1.], 980s [0., 0., 0., 2., 0., 1., 0., 1., 1., 0.], 980s [0., 1., 0., 2., 1., 0., 1., 1., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_transposed_concat[cupy_array-var-inner-unique] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 0., 1., 0., 1.], 980s [0., 2., 0., 0., 0., 2., 1., 0., 0., 1.], 980s [0., 0., 1., ... 0.], 980s [1., 0., 1., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 1., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-inner-first] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 0.], 980s [1., 0., 0., ... 0.], 980s [0., 0., 1., 1., 0., 2., 0., 4., 0., 0.], 980s [0., 0., 1., 1., 2., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-inner-only] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 1., 0., 2., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 1., 0., 0., 0.], 980s [2., 1., 0., ... 0.], 980s [2., 0., 1., 1., 0., 0., 0., 0., 0., 3.], 980s [0., 0., 1., 1., 0., 1., 1., 0., 2., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-outer-None] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 0., 1., 1.], 980s [1., 0., 0., 0., 0., 2., 0., 1., 0., 0.], 980s [0., 0., 2., ... 0.], 980s [0., 0., 1., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 1., 1., 2., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-outer-same] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 2., 0., 0., 1., 0., 1.], 980s [0., 0., 0., 1., 1., 1., 0., 0., 2., 0.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 0., 0., 0., 0., 0., 2., 0., 0.], 980s [0., 1., 0., 1., 1., 0., 1., 0., 2., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_transposed_concat[cupy_array-var-outer-unique] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 1., 0., 1., 0., 0., 2.], 980s [1., 1., 1., 1., 1., 0., 1., 0., 1., 0.], 980s [1., 0., 0., ... 2.], 980s [1., 0., 2., 1., 0., 0., 0., 2., 0., 1.], 980s [1., 0., 0., 0., 0., 0., 1., 0., 0., 3.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-outer-first] ______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 2., 0., 0., 0., 1., 0., 1.], 980s [0., 2., 2., 0., 0., 0., 0., 0., 1., 0.], 980s [1., 0., 0., ... 1.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 1., 2.], 980s [0., 0., 1., 0., 0., 0., 1., 2., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_array-var-outer-only] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 2., 2., 0., 1., 1., 0., 2.], 980s [0., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [1., 1., 1., ... 2.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [3., 0., 1., 0., 0., 0., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-inner-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 1., 2., 0., 1., 0., 0.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 0., 0., 0., 0., 2., 0., 0., 2.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-inner-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 2., 1., 0., 3.], 980s [0., 1., 0., 0., 0., 0., 0., 1., 0., 2.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csr-obs-inner-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 1., 1., 0.], 980s [1., 2., 0., ... 1.], 980s [1., 3., 2., 0., 1., 0., 0., 1., 1., 1.], 980s [0., 0., 0., 1., 0., 0., 1., 2., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-inner-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 1., 0., 1., 1., 0., 0.], 980s [3., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 1., 1., ... 1.], 980s [1., 0., 0., 1., 0., 1., 0., 0., 2., 0.], 980s [0., 1., 0., 0., 2., 0., 2., 2., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-inner-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 1., 2., 1., 0.], 980s [2., 0., 0., 0., 1., 0., 0., 2., 3., 1.], 980s [2., 0., 0., ... 0.], 980s [0., 0., 0., 0., 1., 1., 1., 0., 1., 0.], 980s [0., 2., 0., 0., 0., 1., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-outer-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 0., 0., 0., 0., 0., 0., 2.], 980s [3., 1., 0., 0., 0., 0., 0., 1., 0., 0.], 980s [2., 0., 2., ... 2.], 980s [0., 1., 0., 0., 0., 0., 2., 1., 0., 0.], 980s [0., 0., 0., 2., 1., 0., 2., 1., 0., 3.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-outer-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 2., 2., 0., 2.], 980s [0., 0., 0., 1., 1., 0., 0., 1., 0., 1.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 0., 0., 2., 0., 0., 0., 3., 0.], 980s [0., 0., 0., 0., 1., 1., 0., 3., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csr-obs-outer-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 0., 0., 0., 1.], 980s [0., 0., 2., 0., 0., 1., 0., 1., 0., 3.], 980s [0., 0., 1., ... 1.], 980s [0., 0., 0., 2., 0., 1., 1., 0., 0., 1.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-outer-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 1., 0., 0., 1.], 980s [0., 1., 1., 0., 1., 0., 0., 2., 0., 0.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 0., 0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 0., 1., 1., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-obs-outer-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 1., 0., 0., 0., 0.], 980s [1., 2., 0., 0., 1., 0., 1., 0., 0., 0.], 980s [2., 0., 0., ... 2.], 980s [1., 0., 0., 0., 2., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-inner-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 1., 1., 3., 0., 0., 1., 1., 1., 0.], 980s [0., 0., 1., ... 1.], 980s [0., 0., 0., 0., 0., 2., 1., 0., 1., 0.], 980s [0., 1., 2., 0., 1., 1., 0., 1., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-inner-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 2., 0., 0., 0., 0., 1., 0., 0.], 980s [0., 2., 0., 1., 0., 1., 2., 1., 0., 1.], 980s [1., 1., 0., ... 2.], 980s [1., 0., 1., 0., 2., 0., 0., 0., 0., 1.], 980s [0., 0., 3., 1., 0., 0., 1., 0., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csr-var-inner-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 0., 2., 0., 0.], 980s [1., 1., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [1., 0., 1., ... 0.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 2., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-inner-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 1., 0., 1., 1., 0., 1.], 980s [1., 0., 0., 0., 1., 0., 0., 0., 1., 2.], 980s [2., 0., 1., ... 1.], 980s [0., 1., 1., 0., 1., 1., 3., 0., 0., 1.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-inner-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 1., 0., 1., 2.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 1., 1.], 980s [0., 1., 0., ... 1.], 980s [0., 1., 0., 0., 1., 0., 1., 1., 0., 1.], 980s [0., 0., 3., 0., 1., 0., 0., 0., 1., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-outer-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 1., 0., 2., 0., 0., 1.], 980s [0., 0., 1., 1., 1., 1., 0., 1., 0., 0.], 980s [0., 1., 0., ... 0.], 980s [0., 0., 0., 1., 1., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-outer-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 0., 0., 1., 0., 1., 0.], 980s [5., 1., 1., 1., 0., 0., 0., 1., 2., 0.], 980s [0., 0., 0., ... 1.], 980s [0., 0., 0., 0., 1., 2., 1., 1., 0., 1.], 980s [1., 1., 1., 0., 2., 0., 0., 1., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csr-var-outer-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 2., 1., 0., 0., 0., 0., 1., 0.], 980s [1., 1., 0., 1., 0., 0., 0., 0., 0., 3.], 980s [0., 0., 0., ... 0.], 980s [1., 0., 1., 0., 0., 0., 0., 1., 0., 0.], 980s [0., 0., 1., 1., 2., 2., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-outer-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 1., 0., 0.], 980s [0., 2., 1., 1., 0., 1., 3., 0., 2., 1.], 980s [3., 1., 1., ... 0.], 980s [0., 1., 1., 0., 0., 0., 1., 0., 0., 0.], 980s [2., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csr-var-outer-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 1., 0., 0., 0., 1., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 0.], 980s [0., 1., 0., ... 1.], 980s [3., 0., 1., 2., 1., 1., 1., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-inner-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 2., 0.], 980s [1., 0., 1., 1., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 0., ... 0.], 980s [0., 2., 1., 5., 1., 1., 2., 1., 1., 0.], 980s [1., 0., 1., 1., 1., 2., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-inner-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 1., 2., 0., 0., 0., 0.], 980s [1., 1., 1., 1., 0., 0., 4., 0., 1., 0.], 980s [0., 0., 0., ... 1.], 980s [1., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 2., 0., 1., 0., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csc-obs-inner-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 1., 1., 0., 0., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 1., 0., 1.], 980s [1., 0., 0., ... 0.], 980s [1., 0., 0., 1., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 3., 0., 3., 1., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-inner-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 1., 0., 0., 2., 1., 0.], 980s [0., 1., 1., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 2., ... 0.], 980s [0., 1., 0., 0., 0., 1., 0., 1., 1., 0.], 980s [0., 1., 0., 0., 1., 0., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-inner-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 2., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 1., 0., 1., 0., 4.], 980s [0., 0., 1., ... 1.], 980s [0., 0., 2., 4., 0., 0., 0., 2., 1., 0.], 980s [1., 1., 0., 0., 1., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-outer-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 0., 0., 2., 1.], 980s [0., 0., 0., 2., 1., 2., 1., 0., 2., 0.], 980s [0., 1., 0., ... 0.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 1., 1., 3.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-outer-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 2., 0., 0., 0., 0., 3.], 980s [0., 0., 1., 0., 0., 0., 2., 1., 0., 1.], 980s [1., 2., 0., ... 1.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 1., 1.], 980s [1., 1., 0., 2., 1., 0., 0., 2., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csc-obs-outer-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 0., 0., 0., 1., 1.], 980s [1., 1., 0., 0., 0., 2., 0., 1., 0., 0.], 980s [0., 1., 0., ... 0.], 980s [0., 0., 1., 2., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 2., 3., 0., 2., 1., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-outer-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 2., 1., 0., 0., 0., 1., 0.], 980s [0., 0., 1., 0., 0., 0., 3., 0., 2., 0.], 980s [1., 0., 0., ... 0.], 980s [1., 1., 0., 0., 0., 2., 1., 4., 1., 1.], 980s [0., 1., 1., 0., 1., 1., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-obs-outer-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'obs', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 3., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 0., 0., 1., 0., 0., 1., 1., 0.], 980s [2., 1., 1., ... 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 2., 0., 1., 0., 1., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-inner-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 0., 1., 0., 1.], 980s [0., 2., 1., 0., 0., 0., 0., 1., 1., 0.], 980s [2., 0., 0., ... 1.], 980s [0., 1., 0., 0., 0., 2., 0., 0., 0., 0.], 980s [0., 0., 2., 0., 0., 1., 1., 0., 2., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-inner-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 1., 1., 1., 0., 0.], 980s [2., 0., 0., 0., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 1., ... 1.], 980s [0., 0., 1., 1., 0., 1., 0., 2., 0., 0.], 980s [0., 1., 0., 1., 1., 0., 0., 1., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csc-var-inner-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 0., 1., 1., 2., 0., 1., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 1., 1.], 980s [3., 2., 0., ... 1.], 980s [2., 0., 0., 1., 1., 1., 0., 0., 0., 0.], 980s [1., 0., 2., 2., 0., 0., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-inner-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 0., 0., 0., 0., 2., 2.], 980s [0., 2., 0., 1., 1., 1., 1., 0., 1., 2.], 980s [1., 0., 0., ... 0.], 980s [1., 1., 1., 0., 0., 1., 1., 0., 1., 2.], 980s [1., 0., 0., 0., 0., 1., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-inner-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'inner', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 2., 0., 0., 0., 0., 0.], 980s [1., 3., 0., 1., 1., 0., 0., 0., 0., 1.], 980s [0., 1., 1., ... 1.], 980s [0., 0., 0., 0., 1., 0., 2., 0., 1., 1.], 980s [0., 1., 2., 1., 1., 0., 2., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-outer-None] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = None 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 1., 0., 2., 1., 2., 1.], 980s [0., 0., 0., 0., 0., 1., 1., 2., 0., 2.], 980s [0., 0., 2., ... 0.], 980s [2., 1., 0., 0., 0., 1., 1., 1., 0., 0.], 980s [1., 0., 0., 0., 1., 1., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-outer-same] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'same' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 2., 2., 3., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 1., 1., 1., 0.], 980s [0., 1., 1., ... 0.], 980s [1., 1., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 2., 0., 0., 3., 0., 0., 2.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_transposed_concat[cupy_csc-var-outer-unique] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'unique' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 3., 4., 0., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 0., 0., 1., 1., 1.], 980s [2., 0., 1., ... 0.], 980s [0., 0., 1., 0., 1., 0., 0., 1., 0., 0.], 980s [1., 1., 1., 0., 2., 1., 0., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-outer-first] _______________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'first' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 1., 0., 0., 0., 0., 1.], 980s [1., 0., 1., 1., 1., 0., 0., 0., 1., 1.], 980s [0., 1., 0., ... 0.], 980s [1., 0., 0., 0., 0., 2., 0., 0., 1., 0.], 980s [0., 2., 1., 0., 1., 1., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_transposed_concat[cupy_csc-var-outer-only] ________________ 980s 980s array_type = functools.partial(, typ=) 980s axis_name = 'var', join_type = 'outer', merge_strategy = 'only' 980s 980s def test_transposed_concat(array_type, axis_name, join_type, merge_strategy): 980s axis, axis_name = merge._resolve_axis(axis_name) 980s alt_axis = 1 - axis 980s > lhs = gen_adata((10, 10), X_type=array_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_concatenate.py:1167: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 1., 0., 0., 1.], 980s [0., 0., 1., 0., 1., 1., 0., 1., 0., 0.], 980s [1., 1., 1., ... 0.], 980s [0., 0., 0., 0., 1., 0., 1., 0., 0., 2.], 980s [0., 1., 0., 1., 0., 2., 1., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[None-cupy_array] _______________ 980s 980s merge_strategy = None 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[None-cupy_csr] ________________ 980s 980s merge_strategy = None 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[None-cupy_csc] ________________ 980s 980s merge_strategy = None 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[same-cupy_array] _______________ 980s 980s merge_strategy = 'same' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[same-cupy_csr] ________________ 980s 980s merge_strategy = 'same' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[same-cupy_csc] ________________ 980s 980s merge_strategy = 'same' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_concat_different_types_dask[unique-cupy_array] ______________ 980s 980s merge_strategy = 'unique' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[unique-cupy_csr] _______________ 980s 980s merge_strategy = 'unique' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[unique-cupy_csc] _______________ 980s 980s merge_strategy = 'unique' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[first-cupy_array] ______________ 980s 980s merge_strategy = 'first' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[first-cupy_csr] _______________ 980s 980s merge_strategy = 'first' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[first-cupy_csc] _______________ 980s 980s merge_strategy = 'first' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_concat_different_types_dask[only-cupy_array] _______________ 980s 980s merge_strategy = 'only' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[only-cupy_csr] ________________ 980s 980s merge_strategy = 'only' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_concat_different_types_dask[only-cupy_csc] ________________ 980s 980s merge_strategy = 'only' 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_different_types_dask(merge_strategy, array_type): 980s import dask.array as da 980s from scipy import sparse 980s 980s import anndata as ad 980s 980s varm_array = sparse.random(5, 20, density=0.5, format="csr") 980s 980s ad1 = ad.AnnData(X=np.ones((5, 5)), varm={"a": varm_array}) 980s > ad1_other = ad.AnnData(X=np.ones((5, 5)), varm={"a": array_type(varm_array)}) 980s 980s tests/test_concatenate.py:1536: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_concat_on_var_outer_join[cupy_array] ___________________ 980s 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_on_var_outer_join(array_type): 980s # https://github.com/scverse/anndata/issues/1286 980s a = AnnData( 980s obs=pd.DataFrame(index=[f"cell_{i:02d}" for i in range(10)]), 980s var=pd.DataFrame(index=[f"gene_{i:02d}" for i in range(10)]), 980s layers={ 980s > "X": array_type(np.ones((10, 10))), 980s }, 980s ) 980s 980s tests/test_concatenate.py:1671: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., ...1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________________ test_concat_on_var_outer_join[cupy_csr] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_on_var_outer_join(array_type): 980s # https://github.com/scverse/anndata/issues/1286 980s a = AnnData( 980s obs=pd.DataFrame(index=[f"cell_{i:02d}" for i in range(10)]), 980s var=pd.DataFrame(index=[f"gene_{i:02d}" for i in range(10)]), 980s layers={ 980s > "X": array_type(np.ones((10, 10))), 980s }, 980s ) 980s 980s tests/test_concatenate.py:1671: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., ...1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________________ test_concat_on_var_outer_join[cupy_csc] ____________________ 980s 980s array_type = functools.partial(, typ=) 980s 980s def test_concat_on_var_outer_join(array_type): 980s # https://github.com/scverse/anndata/issues/1286 980s a = AnnData( 980s obs=pd.DataFrame(index=[f"cell_{i:02d}" for i in range(10)]), 980s var=pd.DataFrame(index=[f"gene_{i:02d}" for i in range(10)]), 980s layers={ 980s > "X": array_type(np.ones((10, 10))), 980s }, 980s ) 980s 980s tests/test_concatenate.py:1671: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., ...1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], 980s [1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_dask_to_memory_unbacked[cupy_dense_dask_array] ______________ 980s 980s array_func = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s ("array_func", "mem_type"), 980s [ 980s pytest.param(as_dense_dask_array, np.ndarray, id="dense_dask_array"), 980s pytest.param(as_sparse_dask_array, sparse.csr_matrix, id="sparse_dask_array"), 980s pytest.param( 980s as_dense_cupy_dask_array, 980s CupyArray, 980s id="cupy_dense_dask_array", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_dask_to_memory_unbacked(array_func, mem_type): 980s > orig = gen_adata((15, 10), X_type=array_func, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_dask.py:289: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[1., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 2., 0.], 980s [0., 0., 0., ... 0.], 980s [0., 0., 1., 0., 0., 0., 2., 0., 1., 0.], 980s [0., 1., 0., 0., 1., 0., 0., 0., 1., 4.]], dtype=float32) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _________________ test_as_dask_functions[cupy_dense-np_array] __________________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _____________ test_as_dask_functions[cupy_dense-scipy_csr_matrix] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _____________ test_as_dask_functions[cupy_dense-scipy_csc_matrix] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s ______________ test_as_dask_functions[cupy_dense-scipy_csr_array] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s ______________ test_as_dask_functions[cupy_dense-scipy_csc_array] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _____________ test_as_dask_functions[cupy_dense-dense_dask_array] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = dask.array 980s 980s @as_dense_cupy_dask_array.register(DaskArray) 980s def _(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:903: ModuleNotFoundError 980s _____________ test_as_dask_functions[cupy_dense-sparse_dask_array] _____________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = dask.array 980s 980s @as_dense_cupy_dask_array.register(DaskArray) 980s def _(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:903: ModuleNotFoundError 980s ________________ test_as_dask_functions[cupy_dense-cupy_array] _________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_as_dask_functions[cupy_dense-cupy_csr] __________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________________ test_as_dask_functions[cupy_dense-cupy_csc] __________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________________ test_as_dask_functions[numpy_dense-cupy_array] ________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_as_dask_functions[numpy_dense-cupy_csr] _________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________________ test_as_dask_functions[numpy_dense-cupy_csc] _________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_as_dask_functions[cupy_csr-np_array] ___________________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s ______________ test_as_dask_functions[cupy_csr-scipy_csr_matrix] _______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s ______________ test_as_dask_functions[cupy_csr-scipy_csc_matrix] _______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _______________ test_as_dask_functions[cupy_csr-scipy_csr_array] _______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _______________ test_as_dask_functions[cupy_csr-scipy_csc_array] _______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s ______________ test_as_dask_functions[cupy_csr-dense_dask_array] _______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = dask.array 980s format = 'csr' 980s 980s @as_cupy_sparse_dask_array.register(DaskArray) 980s def _(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:944: KeyError 980s ______________ test_as_dask_functions[cupy_csr-sparse_dask_array] ______________ 980s 980s input_type = 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s X_input = input_type(X_source) 980s > X_output = as_dask_type(X_input) 980s 980s tests/test_helpers.py:304: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = dask.array 980s format = 'csr' 980s 980s @as_cupy_sparse_dask_array.register(DaskArray) 980s def _(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:944: KeyError 980s _________________ test_as_dask_functions[cupy_csr-cupy_array] __________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________________ test_as_dask_functions[cupy_csr-cupy_csr] ___________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_as_dask_functions[cupy_csr-cupy_csc] ___________________ 980s 980s input_type = functools.partial(, typ=) 980s as_dask_type = 980s mem_type = 980s 980s @pytest.mark.parametrize( 980s "input_type", BASE_MATRIX_PARAMS + DASK_MATRIX_PARAMS + CUPY_MATRIX_PARAMS 980s ) 980s @pytest.mark.parametrize( 980s ( 980s "as_dask_type", 980s "mem_type", 980s ), 980s [ 980s pytest.param( 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s ), 980s pytest.param(as_dense_dask_array, np.ndarray, id="numpy_dense"), 980s pytest.param( 980s as_cupy_sparse_dask_array, 980s CupyCSRMatrix, 980s id="cupy_csr", 980s marks=pytest.mark.gpu, 980s ), 980s ], 980s ) 980s def test_as_dask_functions(input_type, as_dask_type, mem_type): 980s SHAPE = (1000, 100) 980s 980s rng = np.random.default_rng(42) 980s X_source = rng.poisson(size=SHAPE).astype(np.float32) 980s > X_input = input_type(X_source) 980s 980s tests/test_helpers.py:303: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 3., ..., 2., 0., 3.], 980s [0., 0., 0., ..., 1., 0., 2.], 980s [2., 1., 3., ..., 0., 3., 1.], 980s ...1., 0.], 980s [0., 1., 1., ..., 0., 1., 1.], 980s [2., 1., 3., ..., 2., 0., 1.]], shape=(1000, 100), dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________________ test_as_cupy_dask[dense_dask_array] ______________________ 980s 980s dask_matrix_type = 980s 980s @pytest.mark.parametrize( 980s "dask_matrix_type", 980s DASK_MATRIX_PARAMS, 980s ) 980s @pytest.mark.gpu 980s def test_as_cupy_dask(dask_matrix_type): 980s SHAPE = (100, 10) 980s rng = np.random.default_rng(42) 980s X_cpu = dask_matrix_type(rng.normal(size=SHAPE)) 980s X_gpu_roundtripped = as_cupy(X_cpu).map_blocks(lambda x: x.get(), meta=X_cpu._meta) 980s assert isinstance(X_gpu_roundtripped._meta, type(X_cpu._meta)) 980s > assert isinstance(X_gpu_roundtripped.compute(), type(X_cpu.compute())) 980s 980s tests/test_helpers.py:327: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/dask/base.py:372: in compute 980s (result,) = compute(self, traverse=False, **kwargs) 980s /usr/lib/python3/dist-packages/dask/base.py:660: in compute 980s results = schedule(dsk, keys, **kwargs) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[-5.43495508e-01, 2.42041501e+00, 4.34884271e-01, 980s -5.59572286e-01, 4.65080210e-01], 980s [ 3.44645...4.82790159e-01], 980s [ 3.52720163e-01, 7.66822872e-01, 1.21177949e-01, 980s 1.30764188e-01, 8.23753132e-01]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________________ test_as_cupy_dask[sparse_dask_array] _____________________ 980s 980s dask_matrix_type = 980s 980s @pytest.mark.parametrize( 980s "dask_matrix_type", 980s DASK_MATRIX_PARAMS, 980s ) 980s @pytest.mark.gpu 980s def test_as_cupy_dask(dask_matrix_type): 980s SHAPE = (100, 10) 980s rng = np.random.default_rng(42) 980s X_cpu = dask_matrix_type(rng.normal(size=SHAPE)) 980s X_gpu_roundtripped = as_cupy(X_cpu).map_blocks(lambda x: x.get(), meta=X_cpu._meta) 980s assert isinstance(X_gpu_roundtripped._meta, type(X_cpu._meta)) 980s > assert isinstance(X_gpu_roundtripped.compute(), type(X_cpu.compute())) 980s 980s tests/test_helpers.py:327: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/dask/base.py:372: in compute 980s (result,) = compute(self, traverse=False, **kwargs) 980s /usr/lib/python3/dist-packages/dask/base.py:660: in compute 980s results = schedule(dsk, keys, **kwargs) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_io_spec_cupy[h5ad-False-value0-array] __________________ 980s 980s store = , value = array([1, 2, 3]) 980s encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([1, 2, 3]), typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________________ test_io_spec_cupy[h5ad-False-value1-array] __________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_io_spec_cupy[h5ad-False-value2-csr_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_io_spec_cupy[h5ad-False-value3-csc_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_io_spec_cupy[h5ad-True-value0-array] ___________________ 980s 980s store = , value = array([1, 2, 3]) 980s encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([1, 2, 3]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s __________________ test_io_spec_cupy[h5ad-True-value1-array] ___________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s ________________ test_io_spec_cupy[h5ad-True-value2-csr_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s ________________ test_io_spec_cupy[h5ad-True-value3-csc_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csc' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csc' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _________________ test_io_spec_cupy[zarr2-False-value0-array] __________________ 980s 980s store = 980s value = array([1, 2, 3]), encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([1, 2, 3]), typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_io_spec_cupy[zarr2-False-value1-array] __________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr2-False-value2-csr_matrix] _______________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr2-False-value3-csc_matrix] _______________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_io_spec_cupy[zarr2-True-value0-array] __________________ 980s 980s store = 980s value = array([1, 2, 3]), encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([1, 2, 3]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s __________________ test_io_spec_cupy[zarr2-True-value1-array] __________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr2-True-value2-csr_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _______________ test_io_spec_cupy[zarr2-True-value3-csc_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csc' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csc' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _________________ test_io_spec_cupy[zarr3-False-value0-array] __________________ 980s 980s store = 980s value = array([1, 2, 3]), encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([1, 2, 3]), typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_io_spec_cupy[zarr3-False-value1-array] __________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr3-False-value2-csr_matrix] _______________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr3-False-value3-csc_matrix] _______________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = False 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s value = as_dense_cupy_dask_array(value) 980s else: 980s > value = as_cupy(value) 980s 980s tests/test_io_elementwise.py:265: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_io_spec_cupy[zarr3-True-value0-array] __________________ 980s 980s store = 980s value = array([1, 2, 3]), encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([1, 2, 3]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s __________________ test_io_spec_cupy[zarr3-True-value1-array] __________________ 980s 980s store = 980s value = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s encoding_type = 'array', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s else: 980s > value = as_dense_cupy_dask_array(value) 980s 980s tests/test_io_elementwise.py:263: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = array([[ 0, 1, 2], 980s [ 3, 4, 5], 980s [ 6, 7, 8], 980s [ 9, 10, 11]]) 980s 980s @singledispatch 980s def as_dense_cupy_dask_array(a): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:882: ModuleNotFoundError 980s _______________ test_io_spec_cupy[zarr3-True-value2-csr_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csr_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csr' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csr' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _______________ test_io_spec_cupy[zarr3-True-value3-csc_matrix] ________________ 980s 980s store = 980s value = 980s encoding_type = 'csc_matrix', as_dask = True 980s 980s @pytest.mark.gpu 980s @pytest.mark.parametrize( 980s ("value", "encoding_type"), 980s [ 980s (np.array([1, 2, 3]), "array"), 980s (np.arange(12).reshape(4, 3), "array"), 980s (sparse.random(5, 3, format="csr", density=0.5), "csr_matrix"), 980s (sparse.random(5, 3, format="csc", density=0.5), "csc_matrix"), 980s ], 980s ) 980s @pytest.mark.parametrize("as_dask", [False, True]) 980s def test_io_spec_cupy(store, value, encoding_type, as_dask): 980s if as_dask: 980s if isinstance(value, CSMatrix): 980s > value = as_cupy_sparse_dask_array(value, format=encoding_type[:3]) 980s 980s tests/test_io_elementwise.py:261: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s a = 980s format = 'csc' 980s 980s @singledispatch 980s def as_cupy_sparse_dask_array(a, format="csr"): 980s > memory_class = format_to_memory_class[format] 980s E KeyError: 'csc' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:926: KeyError 980s _________ test_readwrite_kitchensink[dataset_kwargs0-csr_matrix-h5ad] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat2') 980s storage = 'h5ad', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat2/test.h5ad') 980s dataset_kwargs = {} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s assert isinstance(adata.raw.X, CSMatrix) 980s else: 980s > assert isinstance(adata_src.raw.X, type(adata.raw.X) | DaskArray) 980s E AssertionError: assert False 980s E + where False = isinstance(, ( | DaskArray)) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s E + and = type() 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s 980s tests/test_readwrite.py:178: AssertionError 980s _________ test_readwrite_kitchensink[dataset_kwargs0-csr_matrix-zarr] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat3') 980s storage = 'zarr', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat3/test.h5ad') 980s dataset_kwargs = {} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s assert isinstance(adata.raw.X, CSMatrix) 980s else: 980s > assert isinstance(adata_src.raw.X, type(adata.raw.X) | DaskArray) 980s E AssertionError: assert False 980s E + where False = isinstance(, ( | DaskArray)) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s E + and = type() 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'uns4', 'oanno1_colors', 'uns2', 'uns3'.raw 980s 980s tests/test_readwrite.py:178: AssertionError 980s __________ test_readwrite_kitchensink[dataset_kwargs0-csr_array-h5ad] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat4') 980s storage = 'h5ad', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat4/test.h5ad') 980s dataset_kwargs = {} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s > assert isinstance(adata.raw.X, CSMatrix) 980s E AssertionError: assert False 980s E + where False = isinstance(, scipy.sparse._csr.csr_matrix | scipy.sparse._csc.csc_matrix) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s 980s tests/test_readwrite.py:176: AssertionError 980s __________ test_readwrite_kitchensink[dataset_kwargs0-csr_array-zarr] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat5') 980s storage = 'zarr', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat5/test.h5ad') 980s dataset_kwargs = {} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s > assert isinstance(adata.raw.X, CSMatrix) 980s E AssertionError: assert False 980s E + where False = isinstance(, scipy.sparse._csr.csr_matrix | scipy.sparse._csc.csc_matrix) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'uns3', 'oanno1_colors', 'uns4', 'uns2'.raw 980s 980s tests/test_readwrite.py:176: AssertionError 980s _________ test_readwrite_kitchensink[dataset_kwargs1-csr_matrix-h5ad] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat10') 980s storage = 'h5ad', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat10/test.h5ad') 980s dataset_kwargs = {'compression': 'gzip'} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s assert isinstance(adata.raw.X, CSMatrix) 980s else: 980s > assert isinstance(adata_src.raw.X, type(adata.raw.X) | DaskArray) 980s E AssertionError: assert False 980s E + where False = isinstance(, ( | DaskArray)) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s E + and = type() 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s 980s tests/test_readwrite.py:178: AssertionError 980s _________ test_readwrite_kitchensink[dataset_kwargs1-csr_matrix-zarr] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat11') 980s storage = 'zarr', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat11/test.h5ad') 980s dataset_kwargs = {'compression': 'gzip'} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s assert isinstance(adata.raw.X, CSMatrix) 980s else: 980s > assert isinstance(adata_src.raw.X, type(adata.raw.X) | DaskArray) 980s E AssertionError: assert False 980s E + where False = isinstance(, ( | DaskArray)) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s E + and = type() 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns4', 'uns3', 'uns2'.raw 980s 980s tests/test_readwrite.py:178: AssertionError 980s __________ test_readwrite_kitchensink[dataset_kwargs1-csr_array-h5ad] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat12') 980s storage = 'h5ad', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat12/test.h5ad') 980s dataset_kwargs = {'compression': 'gzip'} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s > assert isinstance(adata.raw.X, CSMatrix) 980s E AssertionError: assert False 980s E + where False = isinstance(, scipy.sparse._csr.csr_matrix | scipy.sparse._csc.csc_matrix) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'oanno1_colors', 'uns2', 'uns3', 'uns4'.raw 980s 980s tests/test_readwrite.py:176: AssertionError 980s __________ test_readwrite_kitchensink[dataset_kwargs1-csr_array-zarr] __________ 980s 980s tmp_path = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat13') 980s storage = 'zarr', typ = 980s backing_h5ad = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_readwrite_kitchensink_dat13/test.h5ad') 980s dataset_kwargs = {'compression': 'gzip'} 980s 980s @pytest.mark.parametrize("storage", ["h5ad", "zarr"]) 980s @pytest.mark.parametrize("typ", [np.array, csr_matrix, csr_array, as_dense_dask_array]) 980s def test_readwrite_kitchensink(tmp_path, storage, typ, backing_h5ad, dataset_kwargs): 980s X = typ(X_list) 980s adata_src = ad.AnnData(X, obs=obs_dict, var=var_dict, uns=uns_dict) 980s assert not isinstance(adata_src.obs["oanno1"].dtype, pd.CategoricalDtype) 980s adata_src.raw = adata_src.copy() 980s 980s if storage == "h5ad": 980s adata_src.write(backing_h5ad, **dataset_kwargs) 980s adata_mid = ad.read_h5ad(backing_h5ad) 980s adata_mid.write(tmp_path / "mid.h5ad", **dataset_kwargs) 980s adata = ad.read_h5ad(tmp_path / "mid.h5ad") 980s else: 980s adata_src.write_zarr(tmp_path / "test_zarr_dir") 980s adata = ad.read_zarr(tmp_path / "test_zarr_dir") 980s assert isinstance(adata.obs["oanno1"].dtype, pd.CategoricalDtype) 980s assert not isinstance(adata.obs["oanno2"].dtype, pd.CategoricalDtype) 980s assert adata.obs.index.tolist() == ["name1", "name2", "name3"] 980s assert adata.obs["oanno1"].cat.categories.tolist() == ["cat1", "cat2"] 980s assert adata.obs["oanno1c"].cat.categories.tolist() == ["cat1"] 980s assert isinstance(adata.raw.var["vanno2"].dtype, pd.CategoricalDtype) 980s pd.testing.assert_frame_equal(adata.obs, adata_src.obs) 980s pd.testing.assert_frame_equal(adata.var, adata_src.var) 980s assert_equal(adata.var.index, adata_src.var.index) 980s assert adata.var.index.dtype == adata_src.var.index.dtype 980s 980s # Dev. Note: 980s # either load as same type or load the convert DaskArray to array 980s # since we tested if assigned types and loaded types are DaskArray 980s # this would also work if they work 980s if isinstance(adata_src.raw.X, CSArray): 980s > assert isinstance(adata.raw.X, CSMatrix) 980s E AssertionError: assert False 980s E + where False = isinstance(, scipy.sparse._csr.csr_matrix | scipy.sparse._csc.csc_matrix) 980s E + where = .X 980s E + where = AnnData object with n_obs × n_vars = 3 × 2\n obs: 'oanno1', 'oanno1b', 'oanno1c', 'oanno2', 'oanno3', 'oanno4'\n var: 'vanno1', 'vanno2', 'vanno3', 'vanno4'\n uns: 'uns2', 'uns4', 'oanno1_colors', 'uns3'.raw 980s 980s tests/test_readwrite.py:176: AssertionError 980s ___________________ test_read_write_maintain_obsmvarm_dtypes ___________________ 980s 980s rw = (AnnData object with n_obs × n_vars = 100 × 101 980s obs: 'cat_unordered', 'obs_cat', 'int64', 'float64', 'uint8', 'boo...ray', 'sparse', 'sparse_array' 980s obsp: 'array', 'sparse', 'sparse_array' 980s varp: 'array', 'sparse', 'sparse_array') 980s 980s def test_read_write_maintain_obsmvarm_dtypes(rw): 980s curr, orig = rw 980s 980s assert type(orig.obsm["array"]) is type(curr.obsm["array"]) 980s assert np.all(orig.obsm["array"] == curr.obsm["array"]) 980s assert np.all(orig.varm["array"] == curr.varm["array"]) 980s > assert type(orig.obsm["sparse"]) is type(curr.obsm["sparse"]) 980s E AssertionError: assert is 980s E + where = type() 980s E + and = type() 980s 980s tests/test_readwrite.py:207: AssertionError 980s _____________________________ test_maintain_layers _____________________________ 980s 980s rw = (AnnData object with n_obs × n_vars = 100 × 101 980s obs: 'cat_unordered', 'obs_cat', 'int64', 'float64', 'uint8', 'boo...ray', 'sparse', 'sparse_array' 980s obsp: 'array', 'sparse', 'sparse_array' 980s varp: 'array', 'sparse', 'sparse_array') 980s 980s def test_maintain_layers(rw): 980s curr, orig = rw 980s 980s assert type(orig.layers["array"]) is type(curr.layers["array"]) 980s assert np.all(orig.layers["array"] == curr.layers["array"]) 980s > assert type(orig.layers["sparse"]) is type(curr.layers["sparse"]) 980s E AssertionError: assert is 980s E + where = type() 980s E + and = type() 980s 980s tests/test_readwrite.py:220: AssertionError 980s ________________ test_modify_view_component[cupy_array-layers] _________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'layers' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0.27715555, 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_modify_view_component[cupy_array-obsm] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'obsm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_modify_view_component[cupy_array-varm] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'varm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_modify_view_component[cupy_csr-layers] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'layers' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_modify_view_component[cupy_csr-obsm] ___________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'obsm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0.84155328, 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_modify_view_component[cupy_csr-varm] ___________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'varm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________________ test_modify_view_component[cupy_csc-layers] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'layers' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_modify_view_component[cupy_csc-obsm] ___________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'obsm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_modify_view_component[cupy_csc-varm] ___________________ 980s 980s matrix_type = functools.partial(, typ=) 980s mapping_name = 'varm' 980s request = > 980s 980s def test_modify_view_component(matrix_type, mapping_name, request): 980s adata = ad.AnnData( 980s np.zeros((10, 10)), 980s > **{mapping_name: dict(m=matrix_type(asarray(sparse.random(10, 10))))}, 980s ) 980s 980s tests/test_views.py:161: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0. , 0.71848392, 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. ..., 0. , 0. , 0. , 0. , 980s 0. , 0. , 0. , 0. , 0. ]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_set_scalar_subset_X[cupy_array-array_subset] _______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_set_scalar_subset_X[cupy_array-slice_subset] _______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______________ test_set_scalar_subset_X[cupy_array-single_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_array-array_int_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_array-list_int_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_array-array_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_array-list_bool_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_set_scalar_subset_X[cupy_array-matrix_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_set_scalar_subset_X[cupy_array-spmatrix_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_set_scalar_subset_X[cupy_array-sparray_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csr-array_subset] ________________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csr-slice_subset] ________________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csr-single_subset] _______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csr-array_int_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______________ test_set_scalar_subset_X[cupy_csr-list_int_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csr-array_bool_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csr-list_bool_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_csr-matrix_bool_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_set_scalar_subset_X[cupy_csr-spmatrix_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_csr-sparray_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csc-array_subset] ________________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csc-slice_subset] ________________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______________ test_set_scalar_subset_X[cupy_csc-single_subset] _______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csc-array_int_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______________ test_set_scalar_subset_X[cupy_csc-list_int_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csc-array_bool_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____________ test_set_scalar_subset_X[cupy_csc-list_bool_subset] ______________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_csc-matrix_bool_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_set_scalar_subset_X[cupy_csc-spmatrix_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_set_scalar_subset_X[cupy_csc-sparray_bool_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s 980s @IGNORE_SPARSE_EFFICIENCY_WARNING 980s def test_set_scalar_subset_X(matrix_type, subset_func): 980s > adata = ad.AnnData(matrix_type(np.zeros((10, 10)))) 980s 980s tests/test_views.py:369: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ...0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-array_subset-array_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 1., 0., 0., 3., 0...2., 0., 0., 2., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 2., 0., 0., 2., 1., 2., 0., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-array_subset-slice_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 0., 3., 0., 2., 0., 0., 0., 0., 0., 0., 0.], 980s [2., 1., 0., 0., 1., 0., 2., 0., 0., 2., 0...1., 0., 1., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 1., 2., 1., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-array_subset-single_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 1., 1., 0., 0., 0., 0., 0., 1., 1., 2., 2.], 980s [0., 0., 1., 2., 0., 1., 0., 0., 2., 1., 0...0., 0., 1., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 1., 1., 0., 3.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_subset-array_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 1., 1., 1., 0., 1.], 980s [2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0...1., 0., 2., 0., 0., 0., 1.], 980s [0., 2., 0., 0., 0., 0., 0., 0., 1., 1., 0., 2., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_view_of_view[cupy_array-array_subset-list_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 1., 1., 3., 1., 1., 0., 2., 1., 0., 1., 1.], 980s [0., 0., 1., 1., 0., 0., 0., 0., 0., 2., 1...0., 0., 0., 0., 0., 0., 1.], 980s [0., 2., 0., 1., 0., 0., 0., 0., 1., 2., 0., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_subset-array_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 1...0., 2., 0., 1., 0., 0., 1.], 980s [0., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_subset-list_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 1., 1., 0., 0., 0., 0., 0., 1., 1., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 0., 1., 0., 1., 1., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-array_subset-matrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 2., 0., 0., 0., 0., 1., 2., 0., 1., 2., 2., 1.], 980s [1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1...0., 2., 1., 2., 1., 0., 1.], 980s [0., 1., 0., 0., 0., 1., 1., 0., 0., 2., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_subset-spmatrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 2., 1., 0., 1., 0., 1., 0., 0., 0., 2., 1., 1., 0.], 980s [0., 0., 0., 1., 1., 0., 0., 1., 0., 0., 0...2., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 0., 1., 1., 2., 0., 1., 1., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-array_subset-sparray_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 2., 1., 0., 4., 0., 0., 5., 2., 3., 1., 1.], 980s [2., 0., 0., 0., 0., 1., 1., 1., 0., 0., 1...1., 0., 2., 0., 0., 1., 0.], 980s [0., 4., 1., 0., 0., 2., 1., 1., 0., 0., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-slice_subset-array_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 1., 0., 0., 0., 2., 0., 2., 2., 1., 1., 0., 1.], 980s [0., 1., 1., 1., 1., 0., 0., 1., 0., 0., 0...1., 0., 0., 1., 0., 0., 2.], 980s [0., 0., 2., 1., 0., 0., 1., 0., 0., 1., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-slice_subset-slice_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0., 0., 0., 2., 0.], 980s [0., 2., 0., 0., 0., 0., 0., 1., 0., 0., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 2., 3., 1., 0., 1., 0., 1., 3., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-slice_subset-single_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 2., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 1.], 980s [0., 1., 0., 1., 0., 1., 0., 0., 2., 1., 0...0., 1., 0., 1., 0., 0., 0.], 980s [2., 1., 1., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 2., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-slice_subset-array_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 1., 1., 1., 1., 0., 0., 1., 0., 1., 1., 1., 0.], 980s [1., 1., 1., 1., 0., 0., 1., 1., 0., 0., 1...0., 1., 0., 0., 3., 1., 1.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 0., 1., 1., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_view_of_view[cupy_array-slice_subset-list_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 1., 4., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0...1., 0., 0., 1., 1., 0., 1.], 980s [0., 0., 4., 1., 2., 0., 1., 1., 1., 1., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-slice_subset-array_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 0., 0.], 980s [2., 1., 1., 1., 0., 0., 0., 0., 2., 1., 1...0., 1., 0., 0., 0., 2., 0.], 980s [1., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-slice_subset-list_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 1., 2.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1...2., 0., 0., 2., 0., 1., 0.], 980s [0., 1., 0., 1., 1., 1., 1., 0., 2., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-slice_subset-matrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 0., 1., 1., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 2., 0., 0., 0., 0., 0., 1., 0...0., 0., 0., 1., 0., 1., 0.], 980s [1., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-slice_subset-spmatrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 1., 0., 2., 0., 1., 0., 0., 1., 3., 1.], 980s [1., 0., 1., 0., 0., 0., 0., 2., 1., 0., 0...1., 0., 0., 2., 0., 1., 1.], 980s [2., 1., 0., 1., 1., 0., 0., 1., 2., 0., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-slice_subset-sparray_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 0., 0., 0., 1., 2., 0., 1., 1., 3., 0., 0.], 980s [2., 1., 1., 0., 0., 1., 0., 0., 2., 0., 0...0., 1., 0., 1., 1., 0., 0.], 980s [0., 0., 2., 0., 1., 1., 0., 0., 1., 1., 2., 0., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-single_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 1., 1., 0., 0., 0., 0., 0., 1., 0., 2...0., 1., 0., 0., 1., 0., 0.], 980s [0., 0., 2., 1., 1., 2., 0., 2., 1., 0., 1., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_array-single_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 2., 0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 1.], 980s [0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0...1., 0., 1., 0., 1., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_view_of_view[cupy_array-single_subset-single_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 1., 2., 1., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0...0., 0., 0., 1., 1., 0., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-single_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 2., 2., 0., 0., 2., 1., 0., 0., 1., 1., 1., 2., 0.], 980s [1., 0., 0., 0., 1., 1., 1., 0., 1., 0., 0...1., 2., 1., 1., 0., 1., 2.], 980s [1., 0., 1., 2., 0., 1., 1., 0., 1., 0., 3., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-single_subset-list_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 2., 1., 0., 1., 0., 1., 0., 0., 0.], 980s [0., 0., 1., 2., 1., 0., 0., 1., 0., 2., 0...1., 0., 1., 0., 1., 1., 0.], 980s [0., 1., 1., 0., 0., 1., 0., 1., 0., 0., 0., 2., 0., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-single_subset-array_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 1., 0., 1., 1.], 980s [0., 1., 1., 1., 1., 0., 1., 0., 0., 1., 1...0., 2., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 2., 0., 0., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-single_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 2., 1., 0., 0., 1., 2., 1...2., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 2., 1., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-single_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 3., 0., 1., 0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 1., 1., 2., 2., 0., 0., 1., 0...1., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-single_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1., 1., 0., 0., 1.], 980s [1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0...0., 1., 1., 0., 2., 0., 0.], 980s [1., 0., 0., 0., 1., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-single_subset-sparray_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 1., 1., 0., 0., 1., 0., 2., 2.], 980s [0., 2., 0., 0., 0., 0., 0., 0., 0., 2., 1...0., 1., 0., 0., 0., 2., 0.], 980s [1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_int_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 1., 2., 0., 2., 0., 0., 0., 2., 2., 0., 0.], 980s [1., 2., 0., 0., 1., 0., 0., 1., 0., 0., 1...1., 1., 2., 0., 0., 0., 0.], 980s [1., 0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_int_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 3., 0., 0., 0., 0., 0., 2., 0., 0., 1., 0., 0.], 980s [0., 1., 0., 2., 1., 0., 0., 0., 1., 1., 0...0., 3., 0., 0., 1., 1., 0.], 980s [0., 1., 2., 1., 1., 1., 1., 0., 0., 0., 0., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_int_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 2., 2., 1., 0., 1., 0., 0., 0., 1., 0., 1., 1.], 980s [1., 0., 0., 2., 2., 1., 2., 0., 0., 0., 1...0., 0., 0., 0., 1., 0., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_int_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 1., 1., 0., 0., 1., 0., 0., 0., 2., 0., 1.], 980s [1., 1., 0., 0., 1., 0., 3., 0., 0., 0., 0...0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 0., 2., 0., 0., 2., 1., 1., 1., 1., 0., 1., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-array_int_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 0., 1., 0., 0., 0., 0., 1., 0., 1., 2., 1.], 980s [1., 0., 2., 1., 0., 0., 1., 1., 0., 1., 0...0., 1., 1., 1., 0., 0., 0.], 980s [0., 0., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_int_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0.], 980s [2., 0., 1., 1., 0., 0., 0., 0., 0., 1., 1...2., 0., 0., 0., 0., 2., 0.], 980s [0., 1., 2., 0., 0., 0., 1., 1., 0., 0., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_int_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 0., 2., 0., 1., 0., 0., 1., 0., 0., 1., 0.], 980s [1., 0., 0., 0., 1., 0., 1., 0., 1., 1., 0...2., 0., 0., 0., 1., 0., 1.], 980s [0., 1., 1., 1., 1., 1., 1., 0., 0., 0., 2., 0., 1., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-array_int_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 2., 0., 1., 0., 2., 0., 0., 0., 2., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 2., 0., 0., 1., 0., 3...1., 1., 1., 0., 0., 0., 2.], 980s [0., 0., 1., 0., 0., 2., 1., 0., 0., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-array_int_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 1., 1., 0., 0., 0., 0., 0., 1., 1...0., 0., 0., 0., 2., 1., 0.], 980s [0., 0., 0., 1., 1., 0., 0., 0., 2., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-array_int_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 0., 1., 0., 1., 1., 1., 0., 1., 1., 0., 0.], 980s [0., 0., 1., 0., 0., 1., 1., 0., 0., 1., 0...1., 0., 2., 0., 0., 1., 0.], 980s [0., 0., 0., 2., 0., 0., 0., 0., 1., 2., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_view_of_view[cupy_array-list_int_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 2., 0., 1., 0., 0., 0., 1., 1., 1., 0., 1.], 980s [1., 1., 0., 1., 1., 0., 1., 0., 0., 0., 0...0., 0., 0., 1., 1., 1., 1.], 980s [0., 2., 0., 0., 0., 1., 1., 0., 0., 1., 1., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________ test_view_of_view[cupy_array-list_int_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 1., 2., 0., 2., 0., 0., 1., 0., 1., 0.], 980s [1., 0., 1., 3., 0., 0., 1., 1., 1., 0., 0...2., 0., 1., 0., 0., 2., 0.], 980s [0., 2., 1., 1., 0., 0., 0., 1., 1., 1., 0., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-list_int_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 1., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 1., 0., 1., 1., 1., 2., 0., 2...0., 1., 2., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-list_int_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 2., 0., 1., 0., 0., 0., 1., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 1., 0., 0., 0., 0...1., 2., 2., 0., 0., 1., 1.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-list_int_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 1., 1., 1., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 2., 0., 1., 1., 2., 2., 0., 0., 1., 0...0., 0., 0., 0., 0., 1., 0.], 980s [3., 1., 0., 0., 1., 0., 0., 1., 1., 0., 2., 0., 2., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-list_int_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[3., 0., 1., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 1., 1., 1...0., 1., 0., 0., 1., 2., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-list_int_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 3., 1., 0., 0., 0., 1., 0., 1., 1., 0., 0., 0., 1., 1.], 980s [0., 1., 0., 1., 2., 0., 0., 2., 1., 0., 0...1., 0., 1., 0., 0., 4., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 1., 1., 2., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-list_int_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 0., 1., 0., 1., 0., 1., 1., 1., 0., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 1., 1., 0., 0., 1...0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 1., 0., 1., 1., 1., 0., 1., 0., 0., 1., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-list_int_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0.], 980s [1., 0., 1., 1., 0., 0., 0., 2., 0., 1., 1...0., 0., 0., 1., 0., 0., 1.], 980s [0., 2., 1., 0., 0., 2., 1., 0., 0., 0., 0., 0., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-list_int_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0...0., 0., 2., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 1., 1., 0., 0., 1., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 0., 0.], 980s [2., 2., 0., 0., 0., 1., 1., 1., 0., 2., 1...0., 0., 0., 0., 1., 0., 1.], 980s [1., 2., 1., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-array_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0...0., 2., 0., 0., 0., 0., 0.], 980s [3., 0., 1., 1., 0., 0., 1., 1., 0., 0., 2., 1., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-array_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 3., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 1...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 0., 0., 0., 1., 1., 2., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 1., 0., 1., 0., 0., 1., 1., 1., 2...1., 1., 1., 0., 1., 2., 0.], 980s [0., 0., 1., 1., 1., 1., 1., 0., 0., 0., 2., 3., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 1., 1., 1., 1., 0., 0., 1., 0., 2., 1., 1., 1.], 980s [0., 1., 1., 0., 1., 2., 0., 2., 2., 0., 0...0., 0., 0., 1., 0., 0., 0.], 980s [1., 0., 1., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-array_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 1., 2., 3., 0., 1., 0., 2., 0., 2., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 2., 0., 0...0., 0., 1., 2., 0., 1., 0.], 980s [2., 0., 1., 0., 1., 2., 1., 1., 0., 0., 1., 2., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-array_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 3., 1., 0., 0., 0., 0., 1., 0., 1., 1., 1., 0.], 980s [1., 2., 1., 0., 1., 0., 0., 0., 0., 0., 1...0., 0., 0., 1., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-array_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 0., 1., 1., 0., 1., 0., 0., 2., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 1., 1., 1., 2., 1., 0...1., 1., 1., 0., 0., 1., 1.], 980s [0., 0., 0., 0., 0., 2., 0., 0., 1., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-array_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 2., 0., 0., 0., 0., 0., 2., 0., 1., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 1., 0., 1., 0., 2...0., 1., 0., 0., 0., 0., 1.], 980s [0., 3., 1., 0., 0., 0., 0., 3., 1., 0., 0., 0., 2., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-array_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 0., 2., 1., 1., 1., 0., 0., 0., 1., 1., 2.], 980s [0., 0., 0., 0., 0., 0., 3., 0., 2., 0., 1...2., 0., 1., 1., 0., 2., 0.], 980s [0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-list_bool_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 0., 0., 1., 0., 2., 1., 1., 1., 0., 0.], 980s [0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0...0., 0., 1., 0., 0., 0., 0.], 980s [2., 0., 1., 0., 0., 1., 2., 0., 0., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-list_bool_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 2., 0., 0., 0., 1., 0., 1., 1., 0., 0., 2.], 980s [0., 0., 1., 2., 0., 0., 2., 1., 0., 2., 0...1., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 1., 0., 0., 3., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________ test_view_of_view[cupy_array-list_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 2., 0., 0., 1., 2., 0., 0., 2., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0...0., 1., 1., 2., 1., 0., 1.], 980s [0., 1., 2., 2., 2., 1., 0., 1., 0., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-list_bool_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 2., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 0., 1., 1., 0., 0...1., 1., 1., 0., 0., 0., 0.], 980s [1., 1., 0., 1., 1., 2., 0., 0., 1., 1., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-list_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 1., 0., 0., 1., 1., 0., 2., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 0., 3., 0., 0., 2...1., 0., 1., 1., 0., 0., 1.], 980s [2., 1., 0., 1., 1., 0., 1., 1., 2., 3., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-list_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 0., 1., 0., 0., 0., 1., 2., 0., 1., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 1., 2., 0., 1...1., 0., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0., 2., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-list_bool_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 2., 2., 0., 0., 0., 1., 0., 0.], 980s [3., 1., 0., 1., 2., 0., 0., 1., 0., 3., 0...0., 1., 1., 0., 0., 0., 4.], 980s [0., 1., 0., 1., 0., 0., 2., 0., 0., 1., 0., 0., 0., 3., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-list_bool_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 1., 0., 1., 1., 2., 1., 2., 1., 0.], 980s [1., 0., 0., 1., 1., 0., 1., 0., 0., 1., 1...0., 1., 1., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 0., 0., 3., 0., 1., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-list_bool_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 1., 0.], 980s [1., 1., 0., 0., 1., 1., 0., 0., 1., 0., 0...0., 2., 1., 1., 0., 0., 0.], 980s [2., 0., 0., 2., 1., 1., 0., 0., 1., 1., 0., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-list_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 3., 0., 1., 0., 1., 0., 0., 1., 0., 0.], 980s [0., 1., 0., 2., 0., 1., 2., 0., 0., 0., 0...0., 0., 0., 2., 1., 0., 3.], 980s [0., 0., 1., 0., 0., 0., 3., 0., 1., 0., 1., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-matrix_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 2., 0., 1., 1.], 980s [0., 0., 3., 2., 1., 0., 0., 0., 0., 1., 0...0., 0., 2., 0., 1., 1., 0.], 980s [1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-matrix_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 0., 0., 1., 0., 1., 0., 0., 1., 1., 2., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1...0., 3., 1., 0., 0., 1., 1.], 980s [2., 1., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-matrix_bool_subset-single_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 2., 0., 1., 1., 0., 0., 1., 2., 0., 1., 0., 0.], 980s [1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0...0., 0., 1., 0., 0., 1., 0.], 980s [1., 0., 0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-matrix_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 1., 2., 0., 1., 1., 1., 1., 0., 1., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 1., 2., 0...0., 0., 2., 0., 0., 1., 3.], 980s [1., 0., 1., 0., 0., 1., 1., 0., 1., 0., 0., 0., 1., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-matrix_bool_subset-list_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 1., 2., 0., 0., 1., 0., 1., 0., 0., 0.], 980s [1., 1., 0., 0., 2., 0., 1., 0., 2., 1., 0...0., 0., 0., 0., 1., 0., 0.], 980s [1., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-matrix_bool_subset-array_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 2., 0., 0., 1., 0., 0., 1., 0., 2., 0., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0...0., 2., 0., 0., 0., 1., 0.], 980s [2., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 2., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-matrix_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0.], 980s [1., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0...0., 2., 1., 0., 1., 1., 1.], 980s [1., 1., 1., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-matrix_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 2., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 1., 0., 1., 1...0., 0., 1., 0., 0., 0., 1.], 980s [2., 0., 0., 0., 1., 0., 0., 0., 0., 3., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____ test_view_of_view[cupy_array-matrix_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 3., 1., 2., 1., 0., 0., 2., 1., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0...0., 0., 0., 0., 1., 0., 1.], 980s [2., 0., 0., 1., 0., 2., 0., 0., 0., 0., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-matrix_bool_subset-sparray_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 2., 0., 0., 0., 2., 0., 1., 2., 2., 2., 1.], 980s [0., 0., 0., 0., 0., 1., 2., 1., 0., 0., 1...1., 0., 0., 0., 0., 1., 0.], 980s [2., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-spmatrix_bool_subset-array_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 1., 1., 0., 1., 1., 0., 0., 0., 0., 1., 0., 0.], 980s [1., 0., 1., 0., 1., 0., 1., 2., 0., 0., 1...1., 0., 3., 0., 1., 1., 0.], 980s [1., 0., 1., 0., 0., 2., 0., 0., 1., 1., 0., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-spmatrix_bool_subset-slice_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 2., 2., 1., 0., 0., 0., 0., 0., 0., 3., 0.], 980s [0., 3., 0., 3., 0., 1., 1., 0., 0., 0., 0...0., 0., 0., 0., 0., 1., 0.], 980s [3., 1., 1., 1., 0., 0., 0., 1., 0., 0., 1., 1., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-spmatrix_bool_subset-single_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 1., 0., 0., 0., 2., 1., 1., 1., 0., 0., 2.], 980s [0., 0., 2., 0., 0., 0., 2., 2., 0., 1., 0...1., 1., 2., 0., 1., 0., 2.], 980s [0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-spmatrix_bool_subset-array_int_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 1., 1., 1., 0., 0., 0., 1., 1...0., 0., 1., 0., 0., 0., 1.], 980s [1., 2., 2., 0., 1., 1., 0., 0., 0., 2., 0., 1., 3., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-spmatrix_bool_subset-list_int_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 2.], 980s [0., 1., 1., 1., 1., 0., 1., 0., 2., 1., 1...0., 0., 0., 0., 1., 1., 0.], 980s [2., 0., 1., 1., 0., 1., 0., 3., 2., 0., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-spmatrix_bool_subset-array_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 0., 1., 1., 1., 1., 1., 0., 0., 1.], 980s [0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0...1., 0., 2., 1., 0., 1., 0.], 980s [1., 1., 0., 0., 1., 3., 1., 1., 0., 0., 2., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-spmatrix_bool_subset-list_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 1., 0., 1., 0., 0., 1., 1., 0., 1., 1., 0.], 980s [2., 1., 2., 0., 2., 0., 2., 1., 1., 0., 1...0., 0., 0., 0., 0., 0., 1.], 980s [0., 1., 0., 0., 1., 2., 0., 0., 1., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____ test_view_of_view[cupy_array-spmatrix_bool_subset-matrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0.], 980s [2., 0., 1., 1., 1., 0., 1., 1., 0., 1., 0...1., 1., 0., 0., 1., 1., 1.], 980s [0., 0., 0., 0., 1., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ___ test_view_of_view[cupy_array-spmatrix_bool_subset-spmatrix_bool_subset] ____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 3., 0., 3., 0., 0., 0., 0., 0., 2.], 980s [1., 0., 0., 2., 1., 1., 0., 2., 1., 2., 0...0., 3., 0., 1., 0., 0., 0.], 980s [1., 2., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____ test_view_of_view[cupy_array-spmatrix_bool_subset-sparray_bool_subset] ____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 2., 0., 0., 2., 1., 1., 0., 3., 1.], 980s [0., 1., 1., 0., 0., 1., 1., 0., 1., 1., 2...0., 0., 0., 1., 1., 0., 2.], 980s [0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 1., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-sparray_bool_subset-array_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 2., 2., 0., 0., 0., 2., 1., 1., 0., 1., 0., 1., 1.], 980s [1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0...0., 2., 1., 1., 0., 0., 2.], 980s [1., 2., 1., 0., 0., 0., 0., 3., 0., 0., 1., 1., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________ test_view_of_view[cupy_array-sparray_bool_subset-slice_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 2., 0., 0., 1., 0., 0., 2., 0., 1., 1., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 0...0., 0., 0., 1., 1., 0., 0.], 980s [1., 0., 0., 1., 2., 0., 0., 0., 1., 0., 0., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______ test_view_of_view[cupy_array-sparray_bool_subset-single_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0...1., 0., 1., 0., 1., 0., 0.], 980s [1., 1., 1., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-sparray_bool_subset-array_int_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 1., 1., 0., 1., 0., 0., 0., 0., 0., 1.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0...0., 0., 1., 1., 0., 1., 1.], 980s [1., 0., 0., 1., 0., 1., 0., 0., 1., 0., 0., 1., 1., 2., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-sparray_bool_subset-list_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 2., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 1., 2., 0., 0., 3., 0...1., 0., 0., 1., 1., 1., 1.], 980s [1., 0., 0., 0., 0., 0., 1., 1., 3., 1., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-sparray_bool_subset-array_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 2., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0.], 980s [0., 1., 0., 1., 0., 0., 0., 2., 0., 0., 0...0., 1., 1., 1., 1., 0., 0.], 980s [0., 1., 0., 1., 0., 0., 1., 0., 0., 1., 1., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ______ test_view_of_view[cupy_array-sparray_bool_subset-list_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0.], 980s [3., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0...1., 0., 1., 0., 0., 0., 0.], 980s [0., 1., 1., 0., 2., 0., 1., 1., 0., 0., 1., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _____ test_view_of_view[cupy_array-sparray_bool_subset-matrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 1., 1., 0., 1., 1., 0., 0., 1., 0.], 980s [1., 0., 1., 1., 1., 2., 1., 0., 0., 0., 0...1., 0., 1., 2., 1., 0., 0.], 980s [1., 0., 0., 1., 1., 0., 2., 0., 1., 1., 0., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____ test_view_of_view[cupy_array-sparray_bool_subset-spmatrix_bool_subset] ____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 2., 2.], 980s [1., 1., 0., 0., 0., 0., 0., 1., 1., 1., 0...0., 1., 0., 1., 0., 0., 1.], 980s [0., 1., 0., 1., 0., 1., 1., 0., 2., 0., 0., 1., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____ test_view_of_view[cupy_array-sparray_bool_subset-sparray_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 0., 1., 0., 0., 0., 0., 1., 2., 1., 0., 0.], 980s [0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-array_subset-array_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 1., 2., 0., 2.], 980s [0., 2., 1., 0., 1., 0., 0., 0., 0., 0., 0...3., 0., 0., 0., 3., 0., 0.], 980s [0., 0., 2., 1., 0., 2., 2., 1., 1., 1., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-array_subset-slice_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 1., 2., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 1...1., 0., 1., 1., 0., 1., 0.], 980s [1., 0., 0., 3., 1., 0., 1., 1., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-array_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 0., 1., 0., 1., 1., 0., 1., 1., 0., 0., 0.], 980s [1., 0., 0., 0., 1., 1., 1., 0., 1., 0., 0...0., 0., 1., 0., 0., 2., 0.], 980s [1., 1., 0., 0., 0., 1., 0., 0., 0., 0., 1., 1., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_subset-array_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 3., 0., 0., 0., 0., 0., 0...0., 1., 1., 0., 1., 0., 3.], 980s [1., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csr-array_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 0., 1., 0., 1., 0., 0., 0., 1., 1., 0., 2.], 980s [2., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0...0., 0., 0., 0., 0., 3., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0...0., 0., 0., 0., 0., 0., 1.], 980s [2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_subset-list_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 2., 1., 0., 1., 0., 2., 0., 1., 3., 1., 0., 1.], 980s [0., 1., 0., 0., 1., 2., 1., 0., 0., 0., 0...1., 0., 0., 0., 1., 1., 0.], 980s [1., 0., 1., 1., 2., 1., 1., 0., 0., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-array_subset-matrix_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 2., 0., 0., 0., 2., 0., 1., 0...2., 0., 0., 2., 1., 0., 0.], 980s [1., 0., 0., 2., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_subset-spmatrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 1., 1., 1., 0., 0., 1., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 2., 0., 1., 0., 0...0., 0., 1., 0., 0., 1., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-array_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0...0., 0., 1., 0., 1., 0., 0.], 980s [0., 0., 1., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 3., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-slice_subset-array_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 1., 0., 1., 1., 0., 0., 1., 1., 0., 2.], 980s [0., 0., 0., 1., 0., 3., 0., 1., 0., 0., 0...0., 0., 0., 1., 0., 1., 1.], 980s [0., 2., 1., 0., 1., 1., 0., 0., 0., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-slice_subset-slice_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 2., 1., 1., 2., 0., 1., 1., 1., 1., 1., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 1., 1., 1., 0...1., 2., 2., 0., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 2., 1., 0., 1., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-slice_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1...1., 0., 1., 0., 0., 1., 2.], 980s [0., 0., 1., 1., 2., 2., 0., 0., 0., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-slice_subset-array_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 2., 0., 0., 1., 0., 1., 1., 0., 2., 0., 0., 0., 0.], 980s [0., 0., 0., 2., 1., 1., 0., 0., 1., 0., 0...0., 0., 0., 0., 0., 0., 1.], 980s [0., 2., 1., 0., 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csr-slice_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 2., 0., 1., 2., 0., 1., 0., 1.], 980s [0., 2., 0., 1., 0., 0., 1., 0., 1., 2., 2...1., 1., 0., 0., 1., 1., 1.], 980s [2., 2., 0., 0., 1., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-slice_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 2., 1., 0., 0., 0., 0., 0., 1., 0., 2., 1., 0.], 980s [0., 0., 1., 1., 2., 0., 0., 1., 1., 2., 0...1., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-slice_subset-list_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 2., 1., 1., 0., 0., 1., 1., 1., 0.], 980s [0., 0., 1., 1., 1., 0., 0., 1., 1., 0., 2...0., 1., 0., 0., 0., 1., 1.], 980s [0., 1., 1., 1., 0., 0., 0., 0., 0., 1., 1., 0., 2., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-slice_subset-matrix_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 2., 1., 0., 0., 0., 1., 0., 1., 1.], 980s [0., 0., 1., 2., 1., 0., 0., 0., 0., 0., 1...0., 0., 0., 0., 1., 3., 1.], 980s [1., 0., 0., 1., 1., 0., 1., 0., 2., 0., 2., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-slice_subset-spmatrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 3., 0., 0., 0., 0., 1., 0., 0., 1., 0.], 980s [1., 0., 1., 0., 0., 2., 0., 1., 1., 0., 0...0., 0., 0., 1., 0., 1., 0.], 980s [0., 1., 1., 1., 0., 0., 4., 0., 0., 1., 0., 2., 0., 3., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-slice_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0.], 980s [0., 1., 0., 0., 0., 2., 1., 1., 0., 1., 0...0., 0., 2., 1., 0., 3., 1.], 980s [1., 2., 1., 0., 1., 0., 1., 1., 1., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-single_subset-array_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 2., 2., 0., 1., 0., 2., 0., 0., 0.], 980s [2., 1., 0., 0., 3., 0., 0., 0., 0., 0., 0...1., 1., 1., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csr-single_subset-slice_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 1., 3., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [1., 1., 0., 0., 1., 3., 1., 0., 0., 0., 1...1., 0., 2., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 0., 1., 2., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csr-single_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0.], 980s [0., 1., 1., 2., 0., 0., 0., 0., 0., 0., 1...0., 1., 0., 1., 1., 2., 0.], 980s [1., 0., 2., 2., 0., 1., 1., 1., 0., 1., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-single_subset-array_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 2., 1., 0.], 980s [1., 0., 1., 1., 2., 0., 1., 1., 0., 0., 0...1., 1., 0., 1., 2., 1., 0.], 980s [0., 0., 1., 0., 1., 0., 1., 1., 0., 1., 1., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-single_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 1., 1., 0., 1., 0., 0., 1., 1., 2., 0., 0.], 980s [0., 1., 1., 0., 1., 1., 1., 2., 1., 0., 0...0., 0., 0., 0., 0., 1., 1.], 980s [2., 0., 0., 0., 0., 0., 1., 0., 0., 1., 1., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-single_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 3., 0., 0., 0., 0., 1., 0., 0., 2., 0., 0.], 980s [1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0...0., 1., 1., 0., 0., 0., 0.], 980s [1., 2., 1., 0., 1., 0., 1., 0., 0., 0., 0., 2., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-single_subset-list_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 0., 1., 1., 1., 0., 0., 0., 1., 0...1., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-single_subset-matrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 0., 1., 3., 0., 0., 0., 0., 1., 0., 1...0., 0., 0., 1., 0., 0., 1.], 980s [1., 0., 0., 1., 1., 0., 0., 2., 0., 0., 0., 0., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-single_subset-spmatrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 1., 0., 0., 0., 2., 1., 1., 0., 0., 0.], 980s [0., 1., 1., 0., 0., 1., 0., 0., 2., 0., 1...1., 0., 0., 0., 2., 0., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 1., 1., 1., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-single_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 0., 0., 0., 1., 2., 1., 0., 0., 0., 0., 3.], 980s [0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0...1., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 0., 1., 2., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_int_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 1., 1.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0...2., 1., 0., 1., 0., 0., 0.], 980s [0., 1., 0., 1., 0., 0., 0., 1., 1., 1., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_int_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 1., 0., 0., 1., 1., 1., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 2., 1., 1., 1., 1., 0., 0., 0...1., 1., 1., 1., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 2., 1., 2., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_int_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 2., 1., 1., 2., 0., 0., 1., 0., 0., 0., 2., 0., 0.], 980s [0., 0., 2., 1., 0., 1., 0., 0., 0., 0., 1...0., 0., 0., 0., 3., 0., 2.], 980s [1., 0., 2., 0., 2., 1., 0., 0., 0., 0., 0., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_int_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 1., 1., 1., 0., 1., 0., 2., 0.], 980s [1., 1., 0., 0., 0., 0., 1., 0., 0., 2., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 2., 2., 1., 3., 0., 0., 1., 1., 1., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-array_int_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 2., 0., 0., 0., 2., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0...0., 3., 0., 0., 0., 0., 0.], 980s [0., 1., 1., 0., 0., 1., 1., 0., 1., 0., 0., 2., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_int_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 2., 0., 2., 0., 1., 0., 1., 0...1., 2., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 1., 0., 1., 0., 0., 1., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_int_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 1., 0., 1., 0., 0., 1., 0., 1., 0., 0., 0.], 980s [1., 1., 2., 0., 1., 0., 0., 1., 0., 1., 0...1., 0., 0., 0., 3., 1., 0.], 980s [1., 1., 0., 0., 2., 1., 0., 0., 0., 3., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-array_int_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 1., 0., 1., 0., 0., 1., 0., 1., 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0...0., 1., 0., 0., 1., 0., 1.], 980s [1., 1., 1., 0., 0., 1., 4., 1., 1., 2., 1., 2., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-array_int_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 1., 0., 2., 1., 2., 0., 0., 0., 3.], 980s [2., 0., 0., 1., 0., 0., 0., 0., 0., 1., 3...1., 0., 1., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-array_int_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 3., 1., 2., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 1.], 980s [1., 0., 1., 1., 0., 0., 0., 1., 0., 0., 0...3., 0., 1., 1., 1., 1., 1.], 980s [1., 1., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 1., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csr-list_int_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 2., 0., 1., 2., 1., 1...2., 0., 1., 1., 2., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csr-list_int_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 2., 0., 1., 1., 2., 2., 0., 0., 0., 1., 0., 0.], 980s [0., 0., 1., 0., 1., 2., 0., 0., 0., 2., 3...1., 1., 0., 1., 0., 1., 0.], 980s [0., 0., 1., 0., 0., 0., 0., 2., 0., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-list_int_subset-single_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 1., 1., 1., 0., 0., 0., 0., 0., 2., 0., 0.], 980s [1., 0., 1., 0., 1., 1., 0., 2., 0., 0., 0...1., 0., 2., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-list_int_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 1., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1...1., 0., 2., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-list_int_subset-list_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 4., 0., 0., 0., 0., 0., 1., 1., 0., 0., 1.], 980s [1., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1...2., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 2., 0., 0., 1., 1., 0., 0., 1., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-list_int_subset-array_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [1., 1., 0., 2., 0., 0., 0., 1., 2., 1., 0...2., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-list_int_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 1., 0., 1., 1., 1., 1., 0., 0., 0.], 980s [0., 1., 1., 1., 0., 1., 1., 0., 1., 0., 1...0., 1., 0., 0., 0., 1., 1.], 980s [0., 1., 1., 1., 0., 0., 1., 0., 0., 0., 2., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-list_int_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 0., 0., 1., 0., 1., 2., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 1., 0., 1., 0...0., 0., 0., 0., 0., 0., 2.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-list_int_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 0., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 0., 1., 1., 0., 0., 2...2., 0., 1., 0., 0., 1., 3.], 980s [0., 1., 1., 0., 0., 0., 1., 2., 1., 0., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-list_int_subset-sparray_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 0., 1., 1., 1., 0., 0., 1., 2., 2., 1., 1.], 980s [0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 1...0., 1., 1., 0., 0., 0., 1.], 980s [3., 0., 0., 0., 0., 0., 0., 2., 1., 1., 0., 0., 1., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_bool_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 1., 1., 0., 2., 2., 1., 0., 2., 2., 0.], 980s [0., 0., 0., 0., 1., 2., 1., 0., 0., 0., 0...0., 0., 1., 0., 1., 2., 1.], 980s [1., 0., 1., 0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-array_bool_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 2...0., 0., 0., 1., 1., 1., 2.], 980s [0., 1., 2., 2., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-array_bool_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0.], 980s [2., 2., 0., 0., 0., 0., 0., 1., 0., 0., 1...0., 0., 0., 1., 1., 0., 0.], 980s [2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_bool_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 2., 3., 0., 0., 0., 0., 0., 1., 1., 3.], 980s [1., 1., 1., 1., 1., 1., 0., 0., 1., 0., 0...1., 0., 0., 2., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_bool_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0...3., 0., 0., 0., 0., 1., 0.], 980s [0., 1., 1., 2., 0., 0., 1., 1., 1., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-array_bool_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0.], 980s [0., 1., 1., 1., 1., 0., 2., 0., 1., 1., 1...0., 1., 0., 0., 0., 0., 0.], 980s [1., 1., 1., 1., 0., 0., 0., 0., 0., 0., 2., 2., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-array_bool_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 3., 0., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 2., 0.], 980s [0., 1., 1., 0., 1., 0., 0., 1., 0., 3., 0...0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 3., 1., 0., 0., 1., 0., 0., 1., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-array_bool_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 2., 1., 0., 0., 1., 0., 0., 0., 0., 2., 1., 1.], 980s [1., 1., 0., 1., 0., 1., 0., 0., 2., 0., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 0., 1., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-array_bool_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 1., 2., 0., 0., 0., 2., 0., 0., 1., 0., 0.], 980s [0., 1., 1., 1., 0., 1., 0., 0., 0., 0., 0...1., 1., 0., 1., 0., 0., 0.], 980s [0., 1., 1., 0., 1., 1., 1., 0., 1., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-array_bool_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 2., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0., 1.], 980s [1., 1., 0., 0., 0., 0., 2., 0., 0., 0., 0...1., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 2., 2., 0., 0., 0., 0., 0., 1., 0., 3., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-list_bool_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 1., 0., 1., 1., 1., 2., 0., 0...0., 0., 0., 1., 0., 1., 1.], 980s [1., 0., 1., 0., 0., 0., 0., 1., 2., 0., 0., 0., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-list_bool_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 2., 1...2., 0., 2., 0., 1., 0., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 1., 0., 0., 1., 0., 0., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csr-list_bool_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 1., 2., 0., 2., 0., 1., 2., 1., 0.], 980s [1., 1., 1., 2., 0., 1., 1., 0., 0., 0., 0...0., 2., 0., 0., 0., 0., 1.], 980s [1., 1., 0., 0., 1., 0., 0., 1., 0., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-list_bool_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 1., 1., 1., 2., 0., 0., 2., 0., 1., 0.], 980s [1., 1., 0., 1., 1., 0., 0., 1., 0., 0., 1...0., 0., 1., 1., 1., 0., 0.], 980s [0., 0., 0., 0., 2., 2., 0., 0., 1., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-list_bool_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 2., 1., 0., 0., 1., 2., 0., 1., 1.], 980s [0., 0., 2., 0., 1., 0., 1., 0., 0., 1., 1...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 2., 1., 0., 0., 0., 0., 2., 2., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-list_bool_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 1., 1., 1., 0., 0.], 980s [0., 1., 1., 1., 0., 0., 1., 0., 0., 0., 0...0., 0., 0., 0., 1., 2., 2.], 980s [1., 0., 0., 1., 0., 1., 0., 1., 0., 1., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-list_bool_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 1., 0., 2., 0., 2., 1., 1., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 1., 2., 0., 0., 0...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 1., 0., 2., 1., 0., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-list_bool_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 2., 0., 2., 0., 0., 0., 1., 0., 1., 2., 0.], 980s [0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 1...0., 0., 0., 0., 0., 1., 1.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-list_bool_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 1., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1.], 980s [1., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1...0., 1., 0., 0., 1., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-list_bool_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 0., 1., 1., 3., 0., 1., 0., 0., 1., 0., 0.], 980s [2., 1., 1., 0., 0., 1., 2., 1., 2., 0., 0...2., 0., 0., 2., 1., 0., 0.], 980s [0., 1., 0., 0., 0., 2., 0., 0., 0., 3., 0., 0., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-matrix_bool_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 2., 0., 0., 0., 0., 3., 1., 1., 0., 0., 0., 0., 1.], 980s [0., 1., 1., 0., 0., 1., 0., 0., 0., 0., 0...3., 0., 0., 0., 2., 0., 2.], 980s [0., 0., 0., 0., 2., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-matrix_bool_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 0., 1., 1., 0., 0., 1., 0., 1., 1...0., 0., 2., 0., 0., 1., 1.], 980s [0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-matrix_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0., 1.], 980s [1., 1., 0., 0., 1., 0., 0., 1., 0., 0., 0...0., 1., 0., 0., 1., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 2., 0., 1., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-matrix_bool_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 1., 1., 1., 1., 1., 1., 0., 0., 1.], 980s [1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0...0., 0., 0., 0., 1., 1., 0.], 980s [0., 1., 0., 1., 2., 1., 0., 1., 1., 1., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-matrix_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 0., 1., 0., 0., 1., 0., 0., 1.], 980s [1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0...0., 0., 2., 0., 1., 0., 0.], 980s [0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-matrix_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 2., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 1., 1.], 980s [0., 0., 0., 0., 0., 0., 1., 1., 2., 0., 1...1., 0., 0., 1., 0., 0., 1.], 980s [0., 1., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-matrix_bool_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 4., 1., 1., 0., 0., 0., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 2., 1., 1., 0., 1., 0., 0...1., 1., 2., 0., 1., 0., 0.], 980s [1., 0., 1., 2., 1., 0., 0., 0., 0., 0., 2., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-matrix_bool_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[3., 0., 2., 0., 0., 1., 0., 0., 1., 0., 3., 0., 2., 0., 0.], 980s [2., 0., 0., 0., 0., 1., 1., 0., 1., 0., 0...1., 2., 0., 0., 0., 1., 0.], 980s [0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 0., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csr-matrix_bool_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 2., 0., 1., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 2., 1., 0., 0., 0., 0., 1., 0., 0., 0...0., 1., 0., 1., 0., 0., 0.], 980s [0., 1., 0., 0., 1., 0., 2., 0., 1., 1., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-matrix_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0...2., 0., 0., 0., 1., 0., 0.], 980s [0., 2., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-spmatrix_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 3., 0., 0.], 980s [0., 0., 1., 0., 2., 0., 0., 1., 2., 0., 0...0., 0., 1., 1., 0., 0., 0.], 980s [1., 1., 1., 0., 0., 0., 0., 1., 1., 2., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-spmatrix_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 2., 2., 0., 1., 0., 1., 0., 0., 0.], 980s [1., 1., 0., 0., 1., 0., 2., 0., 0., 1., 2...0., 1., 0., 1., 0., 0., 0.], 980s [2., 2., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-spmatrix_bool_subset-single_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 1., 1., 1., 1., 1.], 980s [0., 0., 2., 0., 0., 0., 0., 1., 0., 1., 0...0., 0., 0., 0., 1., 1., 1.], 980s [1., 0., 0., 1., 1., 1., 1., 1., 1., 0., 0., 1., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-spmatrix_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 1.], 980s [0., 1., 2., 0., 1., 0., 1., 0., 2., 1., 0...1., 1., 0., 0., 0., 1., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-spmatrix_bool_subset-list_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 0., 1., 1., 0., 0., 0., 3., 0., 0., 1., 1.], 980s [0., 1., 0., 1., 0., 1., 2., 1., 0., 0., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 0., 1., 1., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-spmatrix_bool_subset-array_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 1., 0., 2., 1., 2., 1., 1., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 1., 1., 0...0., 0., 1., 0., 1., 1., 1.], 980s [0., 0., 1., 0., 1., 2., 0., 0., 1., 0., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-spmatrix_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 1., 2., 1., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0...0., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csr-spmatrix_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 1., 0., 1., 0., 0., 0., 1., 0., 0., 1., 0.], 980s [1., 0., 3., 0., 0., 0., 1., 1., 0., 0., 2...0., 1., 1., 0., 0., 0., 0.], 980s [1., 1., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____ test_view_of_view[cupy_csr-spmatrix_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 1., 1., 0., 1., 0., 0...0., 1., 0., 1., 0., 2., 0.], 980s [1., 1., 1., 0., 0., 1., 2., 2., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csr-spmatrix_bool_subset-sparray_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 1., 0., 1., 1., 0., 1., 1., 1., 1., 1., 0.], 980s [0., 0., 1., 0., 1., 1., 0., 1., 0., 0., 0...0., 0., 1., 0., 3., 0., 0.], 980s [0., 0., 2., 1., 1., 0., 0., 2., 0., 0., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-sparray_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 3., 0., 0., 0., 1., 0., 1., 1., 0., 0., 1., 0.], 980s [1., 0., 1., 0., 0., 3., 0., 0., 0., 1., 0...1., 0., 1., 0., 1., 0., 0.], 980s [0., 2., 2., 1., 0., 0., 1., 0., 0., 1., 0., 2., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csr-sparray_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 1., 1., 0., 0., 0., 1., 0., 2., 2., 0.], 980s [0., 2., 0., 0., 0., 0., 1., 1., 1., 0., 0...0., 0., 1., 2., 0., 0., 0.], 980s [1., 0., 0., 0., 2., 0., 0., 0., 1., 2., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csr-sparray_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [1., 3., 1., 0., 1., 0., 0., 1., 0., 0., 0...0., 1., 0., 1., 0., 1., 0.], 980s [0., 1., 0., 0., 2., 1., 2., 0., 0., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-sparray_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 2., 0., 0., 2., 0., 1., 0., 1., 0.], 980s [1., 1., 0., 0., 1., 0., 0., 0., 0., 1., 0...1., 1., 0., 0., 1., 1., 0.], 980s [1., 2., 0., 0., 2., 3., 0., 0., 0., 1., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-sparray_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 2., 0., 0., 1., 0., 0., 1., 2., 0., 0., 1.], 980s [1., 1., 1., 0., 0., 0., 0., 0., 0., 1., 1...0., 0., 0., 0., 0., 0., 1.], 980s [1., 0., 0., 0., 1., 0., 1., 1., 0., 1., 1., 0., 1., 0., 3.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-sparray_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0...1., 0., 0., 1., 0., 0., 0.], 980s [1., 0., 0., 1., 0., 0., 2., 0., 0., 2., 1., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csr-sparray_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0.], 980s [1., 0., 0., 1., 1., 0., 2., 0., 1., 0., 0...0., 2., 1., 0., 1., 1., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 1., 0., 1., 0., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csr-sparray_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 3., 0., 0., 0., 0., 0., 0., 1., 0., 1., 1., 0.], 980s [0., 1., 1., 3., 0., 0., 0., 1., 0., 2., 0...0., 0., 0., 0., 1., 1., 0.], 980s [0., 1., 0., 0., 0., 0., 2., 1., 0., 1., 1., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csr-sparray_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 1., 0., 0., 1., 0., 0., 1., 0., 1., 0.], 980s [1., 1., 0., 0., 0., 2., 1., 0., 0., 2., 2...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 2., 1., 0., 1., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csr-sparray_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 2., 2.], 980s [0., 0., 1., 1., 1., 0., 0., 0., 0., 1., 0...1., 0., 0., 0., 0., 0., 0.], 980s [1., 1., 0., 1., 1., 1., 1., 0., 1., 0., 0., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-array_subset-array_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 0., 0., 0., 1., 3., 0., 0., 0., 0.], 980s [3., 0., 0., 0., 0., 1., 1., 0., 1., 0., 0...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 1., 1., 1., 1., 1., 0., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-array_subset-slice_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [1., 2., 0., 0., 0., 1., 0., 2., 0., 0., 1...0., 1., 0., 0., 0., 1., 0.], 980s [0., 1., 1., 0., 0., 0., 0., 0., 0., 1., 3., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-array_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 2., 0...1., 1., 1., 0., 0., 0., 0.], 980s [0., 1., 0., 1., 1., 0., 0., 0., 0., 1., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_subset-array_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0...0., 0., 0., 1., 2., 0., 0.], 980s [0., 0., 2., 1., 1., 0., 0., 0., 0., 0., 0., 0., 2., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csc-array_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 1., 1., 2., 2., 0., 0., 0., 1., 0., 1...0., 0., 0., 1., 0., 0., 0.], 980s [0., 1., 1., 0., 1., 0., 0., 0., 0., 1., 2., 0., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 1., 0., 0., 1., 0., 0., 1., 0., 1.], 980s [1., 0., 2., 1., 0., 1., 0., 0., 1., 1., 0...0., 0., 1., 1., 0., 4., 0.], 980s [0., 0., 1., 1., 1., 0., 2., 0., 0., 1., 0., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_subset-list_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 1., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 1...0., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-array_subset-matrix_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 2., 0., 1., 0., 0., 0., 2., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 1., 1., 0...0., 2., 0., 0., 1., 1., 1.], 980s [0., 1., 0., 1., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_subset-spmatrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 0., 2., 1., 2., 1., 2., 1., 0.], 980s [1., 0., 1., 0., 0., 1., 1., 2., 1., 0., 1...1., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 1., 1., 0., 0., 0., 0., 0., 1., 0., 1., 1., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-array_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 4., 0., 0., 1., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1...0., 0., 0., 0., 0., 0., 0.], 980s [1., 0., 0., 2., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-slice_subset-array_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0...0., 0., 1., 1., 0., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 0., 1., 0., 1., 0., 1., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-slice_subset-slice_subset] _____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 2., 1., 0., 0., 0., 0., 0., 2., 0., 0., 0., 1., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 0., 2., 0., 0., 0...0., 1., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 2., 0., 0., 1., 3., 1., 0., 2., 2., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-slice_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 0., 0., 3., 0., 2., 1., 0...1., 2., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 1., 0., 0., 0., 1., 1., 1., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-slice_subset-array_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 1., 0., 0., 0., 0., 2., 1., 2., 0., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 1., 0., 3., 0., 0...0., 1., 1., 1., 1., 0., 1.], 980s [1., 0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csc-slice_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 1., 0., 0., 0., 1., 1., 0., 1., 1., 1., 1., 2.], 980s [2., 3., 0., 1., 0., 0., 0., 1., 0., 1., 0...3., 0., 2., 0., 0., 0., 0.], 980s [1., 1., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-slice_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 1., 1., 1., 1., 1., 0., 0., 2., 0., 2., 0., 0.], 980s [0., 0., 0., 0., 2., 1., 1., 0., 0., 0., 1...0., 0., 0., 1., 2., 2., 0.], 980s [2., 0., 0., 0., 0., 0., 0., 1., 1., 1., 0., 1., 2., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-slice_subset-list_bool_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 1., 0., 3., 0., 1., 0., 1., 0., 0., 1., 1., 0.], 980s [0., 1., 0., 0., 1., 1., 1., 1., 0., 0., 3...1., 0., 0., 0., 1., 1., 0.], 980s [1., 0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 1., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-slice_subset-matrix_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 3., 0., 0., 0., 0...1., 2., 0., 0., 1., 1., 1.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-slice_subset-spmatrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 1., 0., 1., 2., 0., 1., 1., 0., 0., 0., 0.], 980s [1., 1., 0., 1., 1., 0., 0., 1., 0., 0., 1...0., 0., 1., 1., 0., 1., 2.], 980s [0., 2., 0., 0., 1., 1., 0., 1., 1., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-slice_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 3., 1., 1., 2., 0., 0., 1., 0., 0., 2.], 980s [0., 1., 0., 0., 1., 0., 2., 0., 1., 0., 1...0., 1., 0., 0., 0., 1., 2.], 980s [0., 0., 1., 0., 1., 0., 1., 0., 2., 2., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-single_subset-array_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 1., 0., 0., 1., 0., 1., 0., 0., 1.], 980s [1., 0., 1., 1., 1., 0., 0., 0., 0., 0., 2...1., 2., 0., 1., 0., 1., 0.], 980s [1., 0., 0., 0., 1., 0., 0., 2., 0., 0., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____________ test_view_of_view[cupy_csc-single_subset-slice_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 1., 2., 1., 0., 0., 0., 1., 0., 0., 0., 2.], 980s [2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1...1., 2., 2., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 1., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csc-single_subset-single_subset] ____________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 1., 0., 0., 1., 0., 0., 0., 0., 2.], 980s [0., 0., 0., 1., 2., 2., 1., 1., 1., 0., 1...0., 1., 0., 0., 0., 1., 0.], 980s [0., 2., 0., 0., 0., 1., 0., 1., 0., 0., 1., 1., 0., 3., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-single_subset-array_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 2., 0., 0., 0., 1., 1., 0., 2., 1., 1., 1., 2.], 980s [0., 0., 1., 0., 0., 0., 0., 0., 2., 2., 1...1., 0., 0., 2., 0., 0., 1.], 980s [3., 0., 0., 0., 1., 2., 0., 1., 0., 0., 0., 2., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-single_subset-list_int_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 1., 2., 0., 0., 0., 0., 2., 0., 0., 0.], 980s [0., 0., 2., 0., 0., 0., 0., 0., 0., 1., 0...0., 1., 0., 0., 1., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-single_subset-array_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 0.], 980s [1., 1., 0., 2., 0., 2., 0., 0., 0., 0., 0...0., 0., 1., 0., 1., 0., 0.], 980s [0., 0., 2., 0., 1., 1., 1., 0., 1., 0., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-single_subset-list_bool_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 1., 0., 1., 1., 0., 0., 0., 1., 0., 0., 2.], 980s [0., 2., 0., 0., 1., 1., 0., 1., 0., 1., 1...1., 0., 1., 1., 0., 0., 0.], 980s [2., 1., 1., 0., 0., 1., 0., 1., 2., 0., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-single_subset-matrix_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 1., 2., 1., 0., 1., 2., 0., 0., 0., 0.], 980s [2., 0., 0., 1., 1., 1., 1., 0., 0., 0., 0...0., 1., 1., 1., 0., 0., 1.], 980s [1., 0., 0., 0., 1., 0., 1., 0., 1., 1., 0., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-single_subset-spmatrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 2., 0.], 980s [0., 2., 1., 0., 1., 0., 3., 1., 0., 0., 1...0., 1., 0., 0., 1., 0., 1.], 980s [0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-single_subset-sparray_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 1., 2., 0., 0., 1., 0., 1., 2., 0., 0., 2.], 980s [1., 0., 0., 0., 1., 1., 0., 0., 0., 1., 2...0., 1., 2., 1., 1., 0., 0.], 980s [0., 4., 0., 0., 0., 1., 0., 1., 0., 1., 2., 0., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_int_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 1., 0., 1., 0., 0.], 980s [0., 0., 3., 0., 1., 0., 0., 1., 0., 0., 2...1., 1., 0., 0., 0., 1., 1.], 980s [0., 0., 3., 1., 0., 0., 1., 1., 1., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_int_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 2., 1., 0., 1., 0., 0., 1., 0., 1., 0., 0., 2., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0...0., 0., 2., 1., 1., 0., 0.], 980s [0., 0., 2., 0., 0., 1., 0., 1., 0., 0., 1., 1., 2., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_int_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 1., 0., 1., 0., 0., 2., 0., 1., 0., 0., 2.], 980s [2., 0., 0., 2., 1., 0., 1., 2., 0., 0., 0...0., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 1., 1., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_int_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0., 1., 3.], 980s [0., 0., 0., 0., 0., 0., 2., 0., 1., 0., 0...0., 0., 0., 0., 0., 0., 0.], 980s [0., 1., 0., 1., 1., 0., 0., 0., 0., 0., 2., 1., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-array_int_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 1., 0., 0., 1., 1., 1., 0., 0., 0.], 980s [3., 1., 0., 1., 0., 0., 0., 0., 0., 0., 1...1., 0., 1., 1., 1., 1., 1.], 980s [0., 0., 0., 0., 2., 0., 0., 1., 1., 1., 0., 0., 2., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_int_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 1., 1., 1., 1., 0., 1., 0., 1., 1., 0., 0., 0.], 980s [2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0...0., 0., 0., 0., 1., 0., 0.], 980s [1., 1., 0., 1., 1., 2., 0., 0., 0., 1., 0., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_int_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 1., 0., 1., 0., 0., 0., 2., 1., 0., 0.], 980s [1., 1., 2., 2., 1., 0., 0., 2., 1., 1., 0...0., 1., 1., 0., 0., 0., 1.], 980s [0., 3., 1., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-array_int_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 2., 0., 2., 1., 1., 0., 0., 1., 0., 0., 0.], 980s [1., 0., 1., 1., 0., 0., 0., 1., 0., 1., 1...0., 0., 1., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 1., 1., 0., 1., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-array_int_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 1., 0., 0., 1., 3., 0., 1., 2., 0., 1., 1., 1.], 980s [1., 0., 0., 0., 0., 0., 0., 1., 1., 1., 0...0., 2., 1., 0., 0., 0., 0.], 980s [3., 0., 0., 0., 0., 2., 0., 0., 1., 2., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-array_int_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 1., 0., 0., 1., 0., 1., 0., 1., 0., 0., 0.], 980s [2., 1., 1., 0., 0., 0., 0., 0., 0., 1., 2...1., 1., 0., 0., 1., 0., 0.], 980s [1., 0., 1., 0., 0., 0., 0., 0., 2., 0., 1., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csc-list_int_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 3., 0., 0., 1., 0., 0., 1., 0., 1., 1., 1., 0.], 980s [0., 2., 0., 0., 1., 1., 0., 0., 0., 0., 1...1., 3., 0., 0., 1., 0., 0.], 980s [1., 4., 3., 1., 1., 0., 0., 0., 1., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________ test_view_of_view[cupy_csc-list_int_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 1., 1., 2., 0., 1., 1., 0., 0., 0., 0...2., 0., 0., 0., 0., 2., 0.], 980s [1., 0., 0., 0., 0., 1., 2., 0., 0., 3., 0., 1., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-list_int_subset-single_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 0., 1., 0., 0., 0., 1., 2., 1., 2., 0., 0.], 980s [0., 1., 1., 1., 1., 1., 0., 0., 0., 0., 0...1., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 1., 1., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-list_int_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 0., 0., 2., 1., 2., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 0., 1., 0., 1., 0., 2., 0., 0...3., 0., 0., 0., 0., 0., 2.], 980s [1., 0., 0., 0., 0., 1., 0., 0., 2., 2., 2., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-list_int_subset-list_int_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 2., 1., 1., 0., 0., 1., 0., 1., 0., 1., 0.], 980s [0., 0., 0., 0., 1., 4., 0., 1., 0., 1., 2...0., 1., 0., 0., 2., 0., 2.], 980s [0., 1., 0., 2., 0., 0., 1., 1., 0., 0., 1., 3., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-list_int_subset-array_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 2., 0.], 980s [1., 1., 0., 1., 1., 0., 0., 1., 0., 0., 1...1., 0., 0., 0., 2., 0., 0.], 980s [1., 1., 0., 1., 1., 0., 2., 0., 1., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-list_int_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 2., 0., 1., 0., 1., 0., 0., 0., 0., 2., 0.], 980s [0., 1., 1., 0., 1., 0., 1., 1., 3., 0., 0...0., 0., 0., 0., 0., 1., 1.], 980s [1., 1., 1., 0., 0., 1., 2., 1., 0., 1., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-list_int_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 0., 1., 0., 2., 0., 0., 0., 0., 1., 0., 1., 1.], 980s [1., 0., 0., 0., 1., 1., 1., 0., 1., 0., 0...0., 0., 1., 1., 0., 2., 1.], 980s [1., 1., 1., 0., 1., 0., 1., 0., 1., 2., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-list_int_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 1., 0., 2., 1., 2., 2., 3., 1., 1., 0., 0.], 980s [0., 1., 0., 1., 1., 0., 0., 0., 1., 0., 0...1., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 1., 1., 0., 0., 0., 2., 1., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-list_int_subset-sparray_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 2., 0., 0., 0., 0., 2., 1., 0., 1.], 980s [0., 0., 2., 0., 0., 1., 0., 0., 1., 1., 0...0., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 1., 0., 1., 0., 0., 0., 2., 0., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_bool_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 1., 0., 1., 0., 0., 1., 1., 1., 2., 0., 0., 0., 1.], 980s [0., 0., 1., 0., 0., 1., 1., 0., 1., 0., 0...2., 0., 0., 0., 0., 1., 1.], 980s [0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-array_bool_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 0., 0., 1., 1., 1., 1., 2., 1., 1., 0., 0.], 980s [0., 2., 1., 0., 1., 2., 1., 0., 0., 0., 0...2., 0., 1., 1., 0., 0., 0.], 980s [0., 2., 0., 0., 1., 1., 0., 0., 1., 0., 0., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-array_bool_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 2.], 980s [2., 0., 0., 0., 0., 1., 0., 0., 1., 0., 0...1., 1., 0., 2., 2., 0., 2.], 980s [0., 1., 0., 3., 0., 1., 0., 1., 1., 2., 0., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_bool_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 1., 1., 0., 0., 0., 1., 0., 2.], 980s [1., 0., 2., 0., 2., 0., 0., 3., 1., 0., 0...0., 1., 0., 2., 2., 1., 0.], 980s [0., 2., 0., 0., 0., 1., 0., 0., 1., 0., 2., 0., 0., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_bool_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 1., 0., 2., 1., 0., 1., 1., 1., 0., 1., 0., 0., 0.], 980s [1., 0., 0., 0., 0., 1., 0., 2., 0., 2., 0...0., 1., 0., 1., 1., 1., 0.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-array_bool_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 1., 0., 0., 5., 1., 0., 0., 1., 1., 1., 1.], 980s [0., 0., 2., 0., 0., 2., 1., 0., 0., 0., 1...0., 0., 1., 1., 1., 1., 2.], 980s [1., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-array_bool_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 4., 1., 0., 2...0., 1., 1., 0., 3., 1., 0.], 980s [1., 0., 2., 0., 0., 1., 0., 1., 1., 0., 1., 2., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-array_bool_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 2., 1., 0., 1., 0., 1., 0., 0., 0., 0.], 980s [2., 1., 0., 0., 1., 1., 0., 1., 0., 0., 0...0., 1., 1., 1., 2., 0., 0.], 980s [1., 0., 2., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-array_bool_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 1., 1., 0., 0., 1., 0., 0., 1., 0., 1.], 980s [0., 1., 1., 0., 0., 0., 0., 1., 2., 0., 1...0., 1., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 1., 0., 2., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-array_bool_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 1., 2., 0., 0., 0., 0., 1., 0., 0., 1., 2., 2.], 980s [0., 0., 0., 1., 0., 0., 1., 0., 1., 0., 0...0., 0., 0., 0., 0., 2., 2.], 980s [1., 0., 0., 0., 0., 0., 0., 4., 0., 2., 2., 2., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-list_bool_subset-array_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 3., 0., 1., 0., 2.], 980s [1., 0., 0., 0., 1., 0., 1., 0., 0., 1., 1...0., 0., 0., 1., 0., 2., 0.], 980s [0., 0., 0., 1., 2., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-list_bool_subset-slice_subset] ___________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 1., 1., 0., 0., 0., 1., 2., 2., 0., 1., 2.], 980s [0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 0...0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________ test_view_of_view[cupy_csc-list_bool_subset-single_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 2., 0., 0., 0., 0., 1., 0., 0., 1., 2., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 2., 1., 0...1., 0., 0., 0., 0., 3., 1.], 980s [2., 2., 0., 0., 0., 0., 2., 0., 0., 1., 1., 0., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-list_bool_subset-array_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 0., 1., 1., 1., 1., 1., 0., 0., 2., 0., 0.], 980s [1., 0., 1., 0., 1., 0., 0., 0., 0., 0., 2...1., 0., 0., 2., 0., 1., 0.], 980s [0., 0., 0., 1., 1., 0., 1., 0., 0., 1., 1., 1., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-list_bool_subset-list_int_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 3., 0., 0., 1., 0., 2., 0., 0., 1., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 1., 2., 1., 0., 0...0., 0., 2., 0., 1., 0., 0.], 980s [0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-list_bool_subset-array_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 2., 1., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 1., 1., 1., 0., 1., 0., 0., 0., 1...0., 0., 1., 1., 0., 0., 1.], 980s [0., 0., 1., 1., 0., 1., 0., 2., 0., 0., 0., 1., 2., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-list_bool_subset-list_bool_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 1., 2., 2., 0., 0., 1., 0., 0., 1., 0...1., 1., 0., 1., 0., 1., 0.], 980s [0., 3., 0., 0., 0., 0., 2., 0., 0., 1., 2., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-list_bool_subset-matrix_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 1., 1., 0., 0., 0., 1., 1., 0., 0.], 980s [0., 2., 0., 1., 0., 2., 0., 0., 0., 2., 0...0., 1., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 1., 2., 2., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-list_bool_subset-spmatrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 0., 0., 0., 2., 0., 1., 3., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 2., 0., 1., 0., 1., 0., 0., 1...0., 0., 0., 0., 0., 0., 0.], 980s [0., 0., 1., 1., 0., 1., 0., 1., 2., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-list_bool_subset-sparray_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 2., 0., 1., 0., 0., 0., 2., 1., 1., 0., 0., 0.], 980s [0., 0., 1., 1., 1., 0., 0., 1., 2., 0., 0...0., 0., 0., 0., 0., 1., 1.], 980s [0., 1., 0., 0., 1., 2., 1., 0., 1., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-matrix_bool_subset-array_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 2., 0., 1., 0., 1., 0., 0., 0., 0.], 980s [0., 1., 1., 0., 0., 2., 0., 0., 0., 1., 1...0., 1., 1., 0., 0., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 1., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-matrix_bool_subset-slice_subset] __________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 3., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0.], 980s [1., 1., 0., 0., 0., 0., 1., 0., 1., 0., 3...1., 0., 0., 1., 2., 0., 0.], 980s [0., 0., 0., 1., 0., 1., 0., 0., 3., 0., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-matrix_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 2., 2., 0...0., 0., 0., 0., 0., 0., 0.], 980s [1., 1., 1., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 3., 3.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-matrix_bool_subset-array_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 1., 1., 2., 0., 0., 1., 0., 0., 3., 2.], 980s [1., 0., 0., 1., 0., 1., 0., 1., 0., 1., 0...0., 0., 0., 1., 0., 0., 0.], 980s [0., 1., 1., 1., 1., 2., 1., 2., 0., 0., 1., 0., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-matrix_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 1., 1., 0., 0.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0...0., 1., 1., 0., 2., 1., 0.], 980s [2., 0., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 3., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-matrix_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 1., 0., 0., 1., 0., 1., 1., 1., 0., 1., 0.], 980s [0., 1., 2., 0., 1., 0., 0., 1., 0., 1., 0...0., 0., 2., 0., 0., 0., 0.], 980s [0., 1., 0., 1., 0., 0., 0., 1., 1., 0., 2., 0., 2., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-matrix_bool_subset-list_bool_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 2., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0.], 980s [1., 1., 1., 0., 3., 0., 0., 0., 1., 0., 0...0., 1., 0., 0., 1., 0., 0.], 980s [2., 1., 0., 0., 0., 0., 0., 0., 0., 1., 2., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-matrix_bool_subset-matrix_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 1., 0., 0., 0., 0., 0., 2., 1., 0., 1., 1.], 980s [0., 1., 0., 2., 0., 1., 0., 0., 0., 0., 2...0., 1., 1., 1., 0., 0., 1.], 980s [0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 1., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csc-matrix_bool_subset-spmatrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 0., 0., 1., 1., 0., 1., 2., 0., 1., 2., 1., 1.], 980s [1., 0., 0., 0., 1., 0., 0., 0., 1., 0., 0...0., 0., 0., 1., 2., 0., 0.], 980s [1., 0., 0., 2., 0., 0., 1., 0., 1., 0., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-matrix_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 1., 1., 0., 0., 1., 1., 1., 0...1., 0., 1., 1., 0., 2., 1.], 980s [1., 2., 0., 0., 0., 0., 0., 0., 2., 1., 0., 1., 0., 0., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-spmatrix_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 1., 0., 3., 0., 0., 0., 1., 0., 0., 0., 1., 1.], 980s [0., 0., 1., 0., 1., 0., 0., 0., 0., 1., 0...0., 1., 1., 0., 1., 1., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 1., 1., 2., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-spmatrix_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 0., 1., 1., 0., 0., 0., 1., 0., 0.], 980s [1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1...1., 1., 0., 0., 0., 0., 2.], 980s [0., 0., 0., 0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-spmatrix_bool_subset-single_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 1., 1., 0., 1., 0., 1., 0., 0., 0., 0.], 980s [1., 0., 2., 1., 1., 0., 0., 2., 0., 0., 0...2., 1., 2., 0., 0., 1., 0.], 980s [0., 0., 0., 2., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-spmatrix_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 2., 1., 0., 0., 1., 0., 1., 0., 1., 1., 0.], 980s [1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0...0., 0., 0., 0., 0., 1., 0.], 980s [2., 0., 0., 0., 1., 0., 1., 0., 0., 3., 0., 2., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-spmatrix_bool_subset-list_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 1., 1., 0., 0., 0., 3., 1., 0., 0., 1...1., 0., 0., 0., 2., 0., 0.], 980s [1., 0., 2., 0., 1., 0., 0., 2., 0., 0., 1., 0., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-spmatrix_bool_subset-array_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 0., 1., 0., 0., 0., 2., 0., 1., 1., 1., 0., 1.], 980s [1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 2...0., 0., 1., 0., 1., 0., 0.], 980s [1., 1., 0., 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-spmatrix_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 0., 2., 0., 0., 0., 0., 0., 1., 1., 0., 1., 0., 1.], 980s [0., 0., 0., 0., 1., 0., 0., 1., 0., 1., 0...1., 1., 1., 0., 1., 0., 0.], 980s [1., 0., 0., 1., 1., 0., 1., 0., 0., 2., 0., 0., 0., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csc-spmatrix_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 2., 0., 0., 0., 0., 1., 1., 2., 1., 1., 0.], 980s [0., 1., 0., 0., 2., 1., 0., 0., 2., 1., 1...1., 2., 0., 1., 0., 0., 0.], 980s [1., 1., 1., 0., 3., 2., 0., 1., 1., 0., 3., 1., 1., 1., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ____ test_view_of_view[cupy_csc-spmatrix_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 0., 0., 0., 0., 0., 1., 1., 1., 0., 2., 0., 1., 0.], 980s [1., 0., 2., 1., 1., 0., 0., 2., 0., 3., 0...0., 1., 1., 0., 0., 1., 3.], 980s [0., 0., 0., 2., 1., 0., 1., 0., 1., 1., 0., 1., 1., 3., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csc-spmatrix_bool_subset-sparray_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 1., 0., 2., 0., 0., 0., 0., 0., 1., 0., 1., 1., 0.], 980s [0., 1., 1., 1., 0., 1., 0., 0., 0., 0., 0...1., 0., 1., 0., 2., 2., 1.], 980s [0., 0., 0., 0., 1., 2., 0., 1., 0., 0., 0., 0., 0., 2., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-sparray_bool_subset-array_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 2., 0., 0., 1., 0., 1., 0., 0., 1., 1., 0., 0., 1.], 980s [0., 0., 0., 2., 0., 1., 1., 0., 0., 0., 0...0., 1., 2., 0., 0., 0., 1.], 980s [2., 0., 1., 0., 1., 0., 1., 0., 0., 1., 0., 0., 1., 2., 2.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________ test_view_of_view[cupy_csc-sparray_bool_subset-slice_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 0., 0., 2., 1., 0., 0., 1., 0., 1., 0.], 980s [2., 2., 0., 0., 2., 0., 0., 1., 4., 0., 1...0., 1., 1., 2., 0., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 0., 1., 0., 1., 0., 0., 1., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________ test_view_of_view[cupy_csc-sparray_bool_subset-single_subset] _________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 2., 1., 1., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0.], 980s [0., 1., 0., 2., 1., 0., 0., 0., 0., 0., 2...0., 0., 1., 0., 1., 2., 1.], 980s [1., 0., 1., 0., 3., 1., 0., 1., 0., 0., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-sparray_bool_subset-array_int_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 0., 0., 1., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 2., 1., 0., 0., 1., 0., 0., 0., 0., 1...0., 0., 1., 0., 1., 1., 0.], 980s [0., 0., 0., 1., 0., 0., 1., 1., 1., 0., 0., 0., 2., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-sparray_bool_subset-list_int_subset] ________ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 1., 1., 0., 1., 0., 0., 0., 1., 0., 0.], 980s [1., 1., 0., 0., 0., 2., 1., 1., 1., 2., 1...0., 1., 0., 1., 0., 0., 1.], 980s [0., 0., 0., 1., 0., 1., 0., 1., 1., 2., 1., 1., 0., 1., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-sparray_bool_subset-array_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 0., 1., 1., 0., 0., 1., 0., 1., 1., 0., 2., 0.], 980s [0., 0., 0., 1., 0., 0., 1., 0., 0., 1., 2...0., 1., 0., 3., 0., 1., 1.], 980s [0., 1., 1., 0., 1., 1., 0., 1., 2., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _______ test_view_of_view[cupy_csc-sparray_bool_subset-list_bool_subset] _______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 2., 1., 0., 0., 2., 0., 1., 0., 0., 1.], 980s [2., 0., 0., 0., 0., 0., 0., 2., 0., 0., 0...1., 1., 0., 0., 1., 0., 0.], 980s [0., 0., 1., 0., 0., 1., 0., 0., 0., 1., 2., 0., 0., 2., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ______ test_view_of_view[cupy_csc-sparray_bool_subset-matrix_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 2., 0., 0., 0., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 1., 1., 0., 0., 4., 0., 0., 0., 0...1., 0., 0., 1., 0., 1., 2.], 980s [0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 1., 0., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csc-sparray_bool_subset-spmatrix_bool_subset] _____ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 1., 3., 0., 0., 0., 0., 2., 1., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0...1., 1., 0., 0., 0., 1., 3.], 980s [1., 0., 0., 0., 1., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _____ test_view_of_view[cupy_csc-sparray_bool_subset-sparray_bool_subset] ______ 980s 980s matrix_type = functools.partial(, typ=) 980s subset_func = 980s subset_func2 = 980s 980s def test_view_of_view(matrix_type, subset_func, subset_func2): 980s > adata = gen_adata((30, 15), X_type=matrix_type) 980s 980s tests/test_views.py:531: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 1., 1., 0., 0., 0., 0., 1., 0., 2., 1., 0., 0.], 980s [1., 1., 1., 0., 0., 0., 1., 0., 1., 0., 1...0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 2., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________________ test_view_different_type_indices[cupy_array] _________________ 980s 980s matrix_type = functools.partial(, typ=) 980s 980s def test_view_different_type_indices(matrix_type): 980s > orig = gen_adata((30, 30), X_type=matrix_type) 980s 980s tests/test_views.py:584: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 2., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 1., 980s 2., 1., 1., 1., 1., 0., 1., 0., 0., 0.... 2., 0., 0., 0., 0., 1., 0., 2., 980s 2., 0., 0., 0., 2., 1., 2., 1., 1., 0., 1., 1., 0., 1.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s __________________ test_view_different_type_indices[cupy_csr] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s 980s def test_view_different_type_indices(matrix_type): 980s > orig = gen_adata((30, 30), X_type=matrix_type) 980s 980s tests/test_views.py:584: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 1., 980s 1., 1., 1., 0., 1., 1., 0., 1., 0., 2.... 0., 1., 1., 0., 1., 1., 0., 0., 980s 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 1., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_view_different_type_indices[cupy_csc] __________________ 980s 980s matrix_type = functools.partial(, typ=) 980s 980s def test_view_different_type_indices(matrix_type): 980s > orig = gen_adata((30, 30), X_type=matrix_type) 980s 980s tests/test_views.py:584: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 0., 0., 2., 1., 0., 1., 1., 1., 0., 0., 980s 0., 0., 0., 1., 1., 0., 0., 0., 0., 1.... 2., 0., 1., 3., 0., 1., 1., 1., 980s 0., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0.]], 980s dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ___________________ test_ellipsis_index[cupy_array-ellipsis] ___________________ 980s 980s ellipsis_index = Ellipsis 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 0., 0., 0., 0.], 980s [2., 0., 0., 2., 0., 1., 1., 1., 0., 1.], 980s [2., 0., 2., ... 1.], 980s [0., 0., 0., 0., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 1., 1., 2., 0., 0., 0., 1., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_array-ellipsis_tuple] ________________ 980s 980s ellipsis_index = (Ellipsis,) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 1., 1., 0., 1., 1., 0.], 980s [1., 1., 0., 1., 1., 0., 0., 1., 0., 0.], 980s [0., 0., 1., ... 0.], 980s [0., 0., 1., 1., 0., 2., 0., 0., 0., 0.], 980s [0., 1., 0., 0., 0., 1., 1., 3., 2., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_ellipsis_index[cupy_array-obs-ellipsis] _________________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 1., 1., 1., 0., 0., 1., 1., 1.], 980s [0., 0., 0., 1., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ... 0.], 980s [0., 0., 0., 0., 1., 1., 1., 0., 0., 2.], 980s [0., 1., 1., 0., 0., 0., 1., 3., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _________________ test_ellipsis_index[cupy_array-var-ellipsis] _________________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 2., 2., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 1., 0., 0., 0., 1., 1., 0., 0.], 980s [1., 0., 0., ... 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 0., 1., 2., 0., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_ellipsis_index[cupy_array-obs-var-ellipsis] _______________ 980s 980s ellipsis_index = (slice(0, 10, None), slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 1., 0., 0., 0., 1., 2.], 980s [1., 1., 0., 0., 0., 4., 1., 0., 0., 1.], 980s [1., 0., 0., ... 0.], 980s [0., 0., 0., 0., 1., 0., 1., 1., 1., 0.], 980s [0., 1., 1., 0., 2., 0., 1., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_ellipsis_index[cupy_array-ellipsis-obs-var] _______________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None), slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 0., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 0., 1., 1., 1., 1., 0., 0., 0.], 980s [2., 1., 1., ... 0.], 980s [1., 0., 0., 1., 0., 1., 0., 1., 0., 1.], 980s [0., 1., 0., 0., 1., 0., 0., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s _______________ test_ellipsis_index[cupy_array-obs-ellipsis-var] _______________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 1., 0., 0., 1., 0., 1., 1., 0.], 980s [0., 0., 0., 2., 0., 1., 0., 1., 0., 0.], 980s [2., 0., 0., ... 1.], 980s [0., 0., 0., 0., 0., 1., 1., 0., 2., 1.], 980s [1., 0., 1., 1., 0., 0., 1., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1010: ModuleNotFoundError 980s ____________________ test_ellipsis_index[cupy_csr-ellipsis] ____________________ 980s 980s ellipsis_index = Ellipsis 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 1., 0., 0., 1., 0., 0., 0.], 980s [0., 0., 0., 1., 1., 0., 1., 0., 0., 1.], 980s [2., 0., 0., ... 0.], 980s [0., 0., 2., 0., 0., 1., 0., 0., 0., 2.], 980s [0., 0., 0., 0., 0., 1., 1., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s _________________ test_ellipsis_index[cupy_csr-ellipsis_tuple] _________________ 980s 980s ellipsis_index = (Ellipsis,) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 0., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ... 0.], 980s [0., 1., 1., 0., 0., 0., 1., 0., 1., 1.], 980s [0., 0., 3., 1., 0., 0., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_ellipsis_index[cupy_csr-obs-ellipsis] __________________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 0., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 1., 1., 0., 1., 0., 0.], 980s [1., 0., 0., ... 2.], 980s [0., 1., 0., 0., 2., 0., 1., 0., 3., 1.], 980s [1., 0., 0., 0., 0., 2., 2., 2., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s __________________ test_ellipsis_index[cupy_csr-var-ellipsis] __________________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 1., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 1., 0., 0., 0., 1., 1., 0.], 980s [1., 1., 0., ... 1.], 980s [0., 1., 0., 1., 1., 0., 1., 0., 0., 1.], 980s [0., 0., 0., 1., 1., 2., 1., 1., 2., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csr-obs-var-ellipsis] ________________ 980s 980s ellipsis_index = (slice(0, 10, None), slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 1., 0., 1., 2., 1., 1., 1., 1.], 980s [2., 0., 0., 0., 0., 0., 0., 1., 0., 0.], 980s [2., 0., 0., ... 0.], 980s [0., 0., 0., 0., 0., 0., 0., 0., 0., 1.], 980s [2., 0., 0., 0., 0., 1., 0., 1., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csr-ellipsis-obs-var] ________________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None), slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 0., 2., 0., 0., 0., 3., 3., 0., 2.], 980s [1., 2., 1., 0., 0., 2., 0., 0., 0., 1.], 980s [0., 0., 0., ... 0.], 980s [1., 1., 0., 0., 0., 1., 1., 0., 0., 0.], 980s [1., 0., 0., 0., 1., 1., 2., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csr-obs-ellipsis-var] ________________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 2., 1., 1., 1., 0., 0., 0., 0., 1.], 980s [3., 0., 1., 1., 0., 1., 1., 0., 0., 0.], 980s [0., 0., 0., ... 0.], 980s [1., 0., 0., 0., 1., 1., 1., 0., 1., 1.], 980s [1., 0., 1., 0., 1., 0., 2., 1., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1016: ModuleNotFoundError 980s ____________________ test_ellipsis_index[cupy_csc-ellipsis] ____________________ 980s 980s ellipsis_index = Ellipsis 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 1., 1., 1., 1., 0., 0., 0.], 980s [1., 1., 1., 0., 2., 1., 1., 2., 0., 1.], 980s [0., 0., 3., ... 1.], 980s [1., 1., 1., 2., 0., 0., 0., 0., 0., 1.], 980s [0., 2., 0., 0., 0., 0., 0., 1., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s _________________ test_ellipsis_index[cupy_csc-ellipsis_tuple] _________________ 980s 980s ellipsis_index = (Ellipsis,) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 1., 2., 1., 1., 2., 0.], 980s [0., 1., 0., 0., 1., 0., 1., 1., 0., 1.], 980s [0., 1., 0., ... 1.], 980s [0., 1., 1., 0., 2., 1., 0., 0., 0., 1.], 980s [2., 0., 0., 1., 2., 1., 1., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_ellipsis_index[cupy_csc-obs-ellipsis] __________________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(None, None, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[2., 1., 0., 1., 1., 0., 0., 0., 0., 1.], 980s [0., 0., 0., 2., 1., 0., 0., 0., 0., 0.], 980s [0., 0., 0., ... 0.], 980s [0., 0., 0., 0., 0., 0., 0., 1., 1., 0.], 980s [0., 0., 0., 0., 1., 1., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s __________________ test_ellipsis_index[cupy_csc-var-ellipsis] __________________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(None, None, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 2., 0., 0., 0., 1., 1., 0., 0., 0.], 980s [0., 1., 0., 1., 0., 0., 1., 2., 0., 1.], 980s [0., 0., 2., ... 1.], 980s [0., 0., 0., 0., 0., 0., 2., 0., 0., 0.], 980s [2., 1., 0., 0., 1., 1., 0., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csc-obs-var-ellipsis] ________________ 980s 980s ellipsis_index = (slice(0, 10, None), slice(0, 10, None), Ellipsis) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[1., 0., 0., 1., 0., 0., 0., 1., 2., 2.], 980s [1., 0., 0., 0., 0., 0., 1., 0., 0., 1.], 980s [0., 1., 1., ... 0.], 980s [0., 1., 0., 1., 0., 0., 1., 0., 1., 0.], 980s [2., 0., 0., 1., 1., 1., 1., 0., 1., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csc-ellipsis-obs-var] ________________ 980s 980s ellipsis_index = (Ellipsis, slice(0, 10, None), slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 0., 0., 0., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 1., 1., 0., 0., 0., 1., 1.], 980s [0., 1., 2., ... 0.], 980s [0., 0., 0., 1., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 1., 0., 2., 0., 2., 0., 0., 0.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s ________________ test_ellipsis_index[cupy_csc-obs-ellipsis-var] ________________ 980s 980s ellipsis_index = (slice(0, 10, None), Ellipsis, slice(0, 10, None)) 980s equivalent_ellipsis_index = (slice(0, 10, None), slice(0, 10, None)) 980s matrix_type = functools.partial(, typ=) 980s 980s def test_ellipsis_index( 980s ellipsis_index: tuple[EllipsisType | slice, ...] | EllipsisType, 980s equivalent_ellipsis_index: tuple[slice, slice], 980s matrix_type, 980s ): 980s > adata = gen_adata((10, 10), X_type=matrix_type, **GEN_ADATA_DASK_ARGS) 980s 980s tests/test_views.py:797: 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:346: in gen_adata 980s X = X_type(random_state.binomial(100, 0.005, (M, N)).astype(X_dtype)) 980s /usr/lib/python3.13/functools.py:934: in wrapper 980s return dispatch(args[0].__class__)(*args, **kw) 980s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 980s 980s val = array([[0., 1., 0., 0., 0., 0., 1., 0., 0., 1.], 980s [0., 1., 0., 0., 0., 1., 0., 0., 0., 2.], 980s [0., 0., 1., ... 0.], 980s [1., 0., 0., 2., 0., 1., 0., 0., 1., 0.], 980s [0., 0., 0., 0., 0., 1., 0., 0., 0., 1.]], dtype=float32) 980s typ = 980s 980s @singledispatch 980s def as_cupy(val, typ=None): 980s """ 980s Rough conversion function 980s 980s Will try to infer target type from input type if not specified. 980s """ 980s if typ is None: 980s typ = resolve_cupy_type(val) 980s 980s if issubclass(typ, CupyArray): 980s import cupy as cp 980s 980s if isinstance(val, CSMatrix): 980s val = val.toarray() 980s return cp.array(val) 980s elif issubclass(typ, CupyCSRMatrix): 980s import cupy as cp 980s import cupyx.scipy.sparse as cpsparse 980s 980s if isinstance(val, np.ndarray): 980s return cpsparse.csr_matrix(cp.array(val)) 980s else: 980s return cpsparse.csr_matrix(val) 980s elif issubclass(typ, CupyCSCMatrix): 980s > import cupy as cp 980s E ModuleNotFoundError: No module named 'cupy' 980s 980s /usr/lib/python3/dist-packages/anndata/tests/helpers.py:1024: ModuleNotFoundError 980s =============================== warnings summary =============================== 980s tests/test_concatenate.py:1623 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_concatenate.py:1623: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s @pytest.mark.gpu 980s 980s tests/test_dask.py:284 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_dask.py:284: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s marks=pytest.mark.gpu, 980s 980s tests/test_helpers.py:287 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_helpers.py:287: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s as_dense_cupy_dask_array, CupyArray, id="cupy_dense", marks=pytest.mark.gpu 980s 980s tests/test_helpers.py:294 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_helpers.py:294: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s marks=pytest.mark.gpu, 980s 980s tests/test_helpers.py:320 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_helpers.py:320: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s @pytest.mark.gpu 980s 980s tests/test_io_elementwise.py:247 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_io_elementwise.py:247: PytestUnknownMarkWarning: Unknown pytest.mark.gpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 980s @pytest.mark.gpu 980s 980s ../../../usr/lib/python3/dist-packages/anndata/utils.py:354: 1 warning 980s tests/lazy/test_concat.py: 385 warnings 980s tests/lazy/test_read.py: 68 warnings 980s tests/test_backed_hdf5.py: 300 warnings 980s tests/test_base.py: 3 warnings 980s tests/test_concatenate.py: 59 warnings 980s tests/test_helpers.py: 4 warnings 980s tests/test_inplace_subset.py: 140 warnings 980s tests/test_io_conversion.py: 17 warnings 980s tests/test_io_dispatched.py: 5 warnings 980s tests/test_io_elementwise.py: 26 warnings 980s tests/test_io_warnings.py: 1 warning 980s tests/test_raw.py: 1 warning 980s tests/test_readwrite.py: 22 warnings 980s tests/test_transpose.py: 13 warnings 980s tests/test_views.py: 708 warnings 980s tests/test_x.py: 8 warnings 980s /usr/lib/python3/dist-packages/anndata/utils.py:354: ExperimentalFeatureWarning: Support for Awkward Arrays is currently experimental. Behavior may change in the future. Please report any issues you may encounter! 980s warnings.warn(msg, category, stacklevel=stacklevel) 980s 980s tests/lazy/test_concat.py: 1116 warnings 980s tests/test_concatenate.py: 442 warnings 980s tests/test_concatenate_disk.py: 104 warnings 980s tests/test_utils.py: 1 warning 980s /usr/lib/python3/dist-packages/anndata/_core/anndata.py:1773: UserWarning: Observation names are not unique. To make them unique, call `.obs_names_make_unique`. 980s utils.warn_names_duplicates("obs") 980s 980s tests/lazy/test_concat.py: 161 warnings 980s tests/test_concatenate.py: 21 warnings 980s /usr/lib/python3/dist-packages/anndata/utils.py:354: ExperimentalFeatureWarning: Outer joins on awkward.Arrays will have different return values in the future. For details, and to offer input, please see: 980s 980s https://github.com/scverse/anndata/issues/898 980s warnings.warn(msg, category, stacklevel=stacklevel) 980s 980s tests/test_backed_dense.py::test_assign_x_subset[h5ad] 980s tests/test_backed_dense.py::test_assign_x_subset[zarr2] 980s tests/test_backed_dense.py::test_assign_x_subset[zarr3] 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_backed_dense.py:84: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s view.X = np.zeros((4, 2)) 980s 980s tests/test_backed_sparse.py: 1358 warnings 980s tests/test_dask.py: 117 warnings 980s tests/test_io_backwards_compat.py: 9 warnings 980s tests/test_io_elementwise.py: 230 warnings 980s tests/test_io_partial.py: 6 warnings 980s tests/test_io_utils.py: 1 warning 980s tests/test_readwrite.py: 455 warnings 980s tests/test_x.py: 37 warnings 980s /usr/lib/python3/dist-packages/zarr/codecs/vlen_utf8.py:44: UserWarning: The codec `vlen-utf8` is currently not part in the Zarr format 3 specification. It may not be supported by other zarr implementations and may change in the future. 980s return cls(**configuration_parsed) 980s 980s tests/test_backed_sparse.py: 345 warnings 980s tests/test_dask.py: 35 warnings 980s tests/test_io_backwards_compat.py: 3 warnings 980s tests/test_io_elementwise.py: 121 warnings 980s tests/test_io_partial.py: 2 warnings 980s tests/test_io_utils.py: 1 warning 980s tests/test_readwrite.py: 152 warnings 980s tests/test_x.py: 13 warnings 980s /usr/lib/python3/dist-packages/zarr/core/array.py:3989: UserWarning: The dtype `StringDType()` is currently not part in the Zarr format 3 specification. It may not be supported by other zarr implementations and may change in the future. 980s meta = AsyncArray._create_metadata_v3( 980s 980s tests/test_backed_sparse.py: 345 warnings 980s tests/test_dask.py: 15 warnings 980s tests/test_io_backwards_compat.py: 1 warning 980s tests/test_io_partial.py: 2 warnings 980s tests/test_readwrite.py: 21 warnings 980s tests/test_x.py: 1 warning 980s /usr/lib/python3/dist-packages/zarr/api/asynchronous.py:203: UserWarning: Consolidated metadata is currently not part in the Zarr format 3 specification. It may not be supported by other zarr implementations and may change in the future. 980s warnings.warn( 980s 980s tests/test_base.py: 5 warnings 980s tests/test_readwrite.py: 18 warnings 980s tests/test_views.py: 1 warning 980s /usr/lib/python3/dist-packages/anndata/_core/aligned_df.py:83: ImplicitModificationWarning: Transforming to str index. 980s warnings.warn("Transforming to str index.", ImplicitModificationWarning) 980s 980s tests/test_concatenate.py::test_concatenate_obsm_outer[nan] 980s tests/test_concatenate.py::test_concatenate_obsm_outer[3.141592653589793] 980s tests/test_concatenate.py::test_concatenate_fill_value[nan] 980s tests/test_concatenate.py::test_concatenate_fill_value[3.141592653589793] 980s tests/test_concatenate.py::test_transposed_concat[sparse_dask_array-obs-outer-None] 980s tests/test_concatenate.py::test_transposed_concat[sparse_dask_array-obs-outer-same] 980s tests/test_concatenate.py::test_transposed_concat[sparse_dask_array-obs-outer-unique] 980s tests/test_concatenate.py::test_transposed_concat[sparse_dask_array-obs-outer-first] 980s tests/test_concatenate.py::test_transposed_concat[sparse_dask_array-obs-outer-only] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:210: SparseEfficiencyWarning: Changing the sparsity structure of a csc_matrix is expensive. lil and dok are more efficient. 980s self._set_arrayXarray(i, j, x) 980s 980s tests/test_concatenate.py: 268 warnings 980s tests/test_concatenate_disk.py: 96 warnings 980s tests/test_utils.py: 1 warning 980s /usr/lib/python3/dist-packages/anndata/_core/anndata.py:1775: UserWarning: Variable names are not unique. To make them unique, call `.var_names_make_unique`. 980s utils.warn_names_duplicates("var") 980s 980s tests/test_concatenate.py: 11 warnings 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:210: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient. 980s self._set_arrayXarray(i, j, x) 980s 980s tests/test_concatenate.py::test_concatenate_fill_value[nan] 980s tests/test_concatenate.py::test_concatenate_fill_value[3.141592653589793] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:210: SparseEfficiencyWarning: Changing the sparsity structure of a csc_array is expensive. lil and dok are more efficient. 980s self._set_arrayXarray(i, j, x) 980s 980s tests/test_concatenate.py: 8 warnings 980s tests/test_helpers.py: 1 warning 980s tests/test_views.py: 6 warnings 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:168: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient. 980s self._set_intXint(row, col, x.flat[0]) 980s 980s tests/test_io_dispatched.py::test_io_dispatched_keys 980s /usr/lib/python3/dist-packages/anndata/_io/specs/registry.py:285: OldFormatWarning: Element '/' was written without encoding metadata. 980s return self.callback(read_func, elem.name, elem, iospec=iospec) 980s 980s tests/test_io_elementwise.py::test_read_iospec_not_found[zarr2-encoding-type-floob] 980s tests/test_io_elementwise.py::test_read_iospec_not_found[zarr2-encoding-version-10000.0] 980s tests/test_io_elementwise.py::test_read_iospec_not_found[zarr3-encoding-type-floob] 980s tests/test_io_elementwise.py::test_read_iospec_not_found[zarr3-encoding-version-10000.0] 980s tests/test_io_utils.py::test_only_child_key_reported_on_failure[zarr] 980s /usr/lib/python3/dist-packages/anndata/_io/utils.py:215: OldFormatWarning: Element '/' was written without encoding metadata. 980s return func(*args, **kwargs) 980s 980s tests/test_views.py::test_views 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:114: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata[:2, 0].X = [0, 0] 980s 980s tests/test_views.py::test_modify_view_component[scipy_csc_matrix-layers] 980s tests/test_views.py::test_modify_view_component[scipy_csc_matrix-obsm] 980s tests/test_views.py::test_modify_view_component[scipy_csc_matrix-varm] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:168: SparseEfficiencyWarning: Changing the sparsity structure of a csc_matrix is expensive. lil and dok are more efficient. 980s self._set_intXint(row, col, x.flat[0]) 980s 980s tests/test_views.py::test_modify_view_component[scipy_csr_array-layers] 980s tests/test_views.py::test_modify_view_component[scipy_csr_array-obsm] 980s tests/test_views.py::test_modify_view_component[scipy_csr_array-varm] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:168: SparseEfficiencyWarning: Changing the sparsity structure of a csr_array is expensive. lil and dok are more efficient. 980s self._set_intXint(row, col, x.flat[0]) 980s 980s tests/test_views.py::test_modify_view_component[scipy_csc_array-layers] 980s tests/test_views.py::test_modify_view_component[scipy_csc_array-obsm] 980s tests/test_views.py::test_modify_view_component[scipy_csc_array-varm] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:168: SparseEfficiencyWarning: Changing the sparsity structure of a csc_array is expensive. lil and dok are more efficient. 980s self._set_intXint(row, col, x.flat[0]) 980s 980s tests/test_views.py: 70 warnings 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:375: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata_subset.X = 1 980s 980s tests/test_views.py::test_view_of_view_modification 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:559: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata[0, :][:, 5:].X = np.ones(5) 980s 980s tests/test_views.py::test_view_of_view_modification 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:561: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata[[1, 2], :][:, [1, 2]].X = np.ones((2, 2)) 980s 980s tests/test_views.py::test_view_of_view_modification 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:565: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata[0, :][:, 5:].X = np.ones(5) * 2 980s 980s tests/test_views.py::test_view_of_view_modification 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_views.py:567: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s adata[[1, 2], :][:, [1, 2]].X = np.ones((2, 2)) * 2 980s 980s tests/test_x.py::test_repeat_indices_view 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_x.py:48: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s subset.X = mat 980s 980s tests/test_x.py: 21 warnings 980s /tmp/autopkgtest.tHHpAk/autopkgtest_tmp/tests/test_x.py:61: ImplicitModificationWarning: Modifying `X` on a view results in data being overridden 980s view.X = to_assign 980s 980s tests/test_x.py::test_setter_view[csr-csr] 980s tests/test_x.py::test_setter_view[csc-csr] 980s tests/test_x.py::test_setter_view[csr_array-csr] 980s tests/test_x.py::test_setter_view[csc_array-csr] 980s tests/test_x.py::test_setter_view[ndarray-csr] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:201: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil and dok are more efficient. 980s self._set_arrayXarray_sparse(i, j, x) 980s 980s tests/test_x.py::test_setter_view[csr-csc] 980s tests/test_x.py::test_setter_view[csc-csc] 980s tests/test_x.py::test_setter_view[csr_array-csc] 980s tests/test_x.py::test_setter_view[csc_array-csc] 980s tests/test_x.py::test_setter_view[ndarray-csc] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:201: SparseEfficiencyWarning: Changing the sparsity structure of a csc_matrix is expensive. lil and dok are more efficient. 980s self._set_arrayXarray_sparse(i, j, x) 980s 980s tests/test_x.py::test_setter_view[csr-csr_array] 980s tests/test_x.py::test_setter_view[csc-csr_array] 980s tests/test_x.py::test_setter_view[csr_array-csr_array] 980s tests/test_x.py::test_setter_view[csc_array-csr_array] 980s tests/test_x.py::test_setter_view[ndarray-csr_array] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:201: SparseEfficiencyWarning: Changing the sparsity structure of a csr_array is expensive. lil and dok are more efficient. 980s self._set_arrayXarray_sparse(i, j, x) 980s 980s tests/test_x.py::test_setter_view[csr-csc_array] 980s tests/test_x.py::test_setter_view[csc-csc_array] 980s tests/test_x.py::test_setter_view[csr_array-csc_array] 980s tests/test_x.py::test_setter_view[csc_array-csc_array] 980s tests/test_x.py::test_setter_view[ndarray-csc_array] 980s /usr/lib/python3/dist-packages/scipy/sparse/_index.py:201: SparseEfficiencyWarning: Changing the sparsity structure of a csc_array is expensive. lil and dok are more efficient. 980s self._set_arrayXarray_sparse(i, j, x) 980s 980s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 980s =========================== short test summary info ============================ 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_array-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_array--True] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_csr-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_csr--True] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_csc-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[inner-cupy_csc--True] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_array-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_array--True] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_csr-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_csr--True] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_csc-concat_func0-False] 980s FAILED tests/test_concatenate.py::test_concatenate_roundtrip[outer-cupy_csc--True] 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_array-inner] 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_array-outer] 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_csr-inner] - M... 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_csr-outer] - M... 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_csc-inner] - M... 980s FAILED tests/test_concatenate.py::test_concatenate_layers[cupy_csc-outer] - M... 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_array-inner] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_array-outer] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_csr-inner] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_csr-outer] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_csc-inner] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_misaligned[cupy_csc-outer] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_array-0] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_array-nan] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_array-3.141592653589793] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csr-0] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csr-nan] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csr-3.141592653589793] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csc-0] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csc-nan] 980s FAILED tests/test_concatenate.py::test_concatenate_layers_outer[cupy_csc-3.141592653589793] 980s FAILED tests/test_concatenate.py::test_pairwise_concat[obs-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_pairwise_concat[obs-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_pairwise_concat[obs-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_pairwise_concat[var-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_pairwise_concat[var-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_pairwise_concat[var-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-inner-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-inner-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-inner-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-outer-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-outer-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[obs-outer-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-inner-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-inner-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-inner-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-outer-cupy_array] - Modu... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-outer-cupy_csr] - Module... 980s FAILED tests/test_concatenate.py::test_nan_merge[var-outer-cupy_csc] - Module... 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-obs-outer-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_array-var-outer-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-obs-outer-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csr-var-outer-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-obs-outer-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-inner-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-inner-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-inner-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-inner-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-inner-only] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-outer-None] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-outer-same] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-outer-unique] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-outer-first] 980s FAILED tests/test_concatenate.py::test_transposed_concat[cupy_csc-var-outer-only] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[None-cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[None-cupy_csr] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[None-cupy_csc] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[same-cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[same-cupy_csr] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[same-cupy_csc] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[unique-cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[unique-cupy_csr] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[unique-cupy_csc] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[first-cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[first-cupy_csr] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[first-cupy_csc] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[only-cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[only-cupy_csr] 980s FAILED tests/test_concatenate.py::test_concat_different_types_dask[only-cupy_csc] 980s FAILED tests/test_concatenate.py::test_concat_on_var_outer_join[cupy_array] 980s FAILED tests/test_concatenate.py::test_concat_on_var_outer_join[cupy_csr] - M... 980s FAILED tests/test_concatenate.py::test_concat_on_var_outer_join[cupy_csc] - M... 980s FAILED tests/test_dask.py::test_dask_to_memory_unbacked[cupy_dense_dask_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-np_array] - M... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-scipy_csr_matrix] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-scipy_csc_matrix] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-scipy_csr_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-scipy_csc_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-dense_dask_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-sparse_dask_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-cupy_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-cupy_csr] - M... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_dense-cupy_csc] - M... 980s FAILED tests/test_helpers.py::test_as_dask_functions[numpy_dense-cupy_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[numpy_dense-cupy_csr] - ... 980s FAILED tests/test_helpers.py::test_as_dask_functions[numpy_dense-cupy_csc] - ... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-np_array] - Key... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-scipy_csr_matrix] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-scipy_csc_matrix] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-scipy_csr_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-scipy_csc_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-dense_dask_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-sparse_dask_array] 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-cupy_array] - M... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-cupy_csr] - Mod... 980s FAILED tests/test_helpers.py::test_as_dask_functions[cupy_csr-cupy_csc] - Mod... 980s FAILED tests/test_helpers.py::test_as_cupy_dask[dense_dask_array] - ModuleNot... 980s FAILED tests/test_helpers.py::test_as_cupy_dask[sparse_dask_array] - ModuleNo... 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-False-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-False-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-False-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-False-value3-csc_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-True-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-True-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-True-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[h5ad-True-value3-csc_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-False-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-False-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-False-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-False-value3-csc_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-True-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-True-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-True-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr2-True-value3-csc_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-False-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-False-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-False-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-False-value3-csc_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-True-value0-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-True-value1-array] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-True-value2-csr_matrix] 980s FAILED tests/test_io_elementwise.py::test_io_spec_cupy[zarr3-True-value3-csc_matrix] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs0-csr_matrix-h5ad] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs0-csr_matrix-zarr] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs0-csr_array-h5ad] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs0-csr_array-zarr] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs1-csr_matrix-h5ad] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs1-csr_matrix-zarr] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs1-csr_array-h5ad] 980s FAILED tests/test_readwrite.py::test_readwrite_kitchensink[dataset_kwargs1-csr_array-zarr] 980s FAILED tests/test_readwrite.py::test_read_write_maintain_obsmvarm_dtypes - As... 980s FAILED tests/test_readwrite.py::test_maintain_layers - AssertionError: assert... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_array-layers] - M... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_array-obsm] - Mod... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_array-varm] - Mod... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csr-layers] - Mod... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csr-obsm] - Modul... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csr-varm] - Modul... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csc-layers] - Mod... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csc-obsm] - Modul... 980s FAILED tests/test_views.py::test_modify_view_component[cupy_csc-varm] - Modul... 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-array_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-slice_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-single_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-array_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-list_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-array_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-list_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-matrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_array-sparray_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-array_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-slice_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-single_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-array_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-list_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-array_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-list_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-matrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csr-sparray_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-array_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-slice_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-single_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-array_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-list_int_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-array_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-list_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-matrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_set_scalar_subset_X[cupy_csc-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-slice_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-single_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-array_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-list_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-matrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-spmatrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_array-sparray_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-slice_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-single_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-array_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-list_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-matrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-spmatrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csr-sparray_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-slice_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-single_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_int_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-array_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-list_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-matrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-spmatrix_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-array_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-slice_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-single_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-array_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-list_int_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-array_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-list_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-matrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-spmatrix_bool_subset] 980s FAILED tests/test_views.py::test_view_of_view[cupy_csc-sparray_bool_subset-sparray_bool_subset] 980s FAILED tests/test_views.py::test_view_different_type_indices[cupy_array] - Mo... 980s FAILED tests/test_views.py::test_view_different_type_indices[cupy_csr] - Modu... 980s FAILED tests/test_views.py::test_view_different_type_indices[cupy_csc] - Modu... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-ellipsis] - Module... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-ellipsis_tuple] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-obs-ellipsis] - Mo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-var-ellipsis] - Mo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-obs-var-ellipsis] 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-ellipsis-obs-var] 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_array-obs-ellipsis-var] 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-ellipsis] - ModuleNo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-ellipsis_tuple] - Mo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-obs-ellipsis] - Modu... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-var-ellipsis] - Modu... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-obs-var-ellipsis] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-ellipsis-obs-var] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csr-obs-ellipsis-var] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-ellipsis] - ModuleNo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-ellipsis_tuple] - Mo... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-obs-ellipsis] - Modu... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-var-ellipsis] - Modu... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-obs-var-ellipsis] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-ellipsis-obs-var] - ... 980s FAILED tests/test_views.py::test_ellipsis_index[cupy_csc-obs-ellipsis-var] - ... 980s = 552 failed, 5242 passed, 92 skipped, 143 xfailed, 7443 warnings in 887.46s (0:14:47) = 982s autopkgtest [16:42:44]: test run-unit-test: -----------------------] 982s run-unit-test FAIL non-zero exit status 1 982s autopkgtest [16:42:44]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - - 983s autopkgtest [16:42:45]: @@@@@@@@@@@@@@@@@@@@ summary 983s run-unit-test FAIL non-zero exit status 1