File: ignore_test_importing_scanpy.patch

package info (click to toggle)
python-anndata 0.12.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,876 kB
  • sloc: python: 21,429; makefile: 23
file content (38 lines) | stat: -rw-r--r-- 1,411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-07-02
Description: The example doc tries to import some data from scanpy which is not yet packaged
 Thus the test would fail and the test is removed here
Forwarded: not-needed

--- a/src/anndata/experimental/multi_files/_anncollection.py
+++ b/src/anndata/experimental/multi_files/_anncollection.py
@@ -636,29 +636,6 @@
         is not important, for example, when using them for stochastic gradient descent.
         In this case the performance of subsetting can be a bit better.
 
-    Examples
-    ----------
-    >>> from scanpy.datasets import pbmc68k_reduced, pbmc3k_processed
-    >>> adata1, adata2 = pbmc68k_reduced(), pbmc3k_processed()
-    >>> adata1.shape
-    (700, 765)
-    >>> adata2.shape
-    (2638, 1838)
-    >>> dc = AnnCollection([adata1, adata2], join_vars='inner')
-    >>> dc
-    AnnCollection object with n_obs × n_vars = 3338 × 208
-      constructed from 2 AnnData objects
-        view of obsm: 'X_pca', 'X_umap'
-        obs: 'n_genes', 'percent_mito', 'n_counts', 'louvain'
-    >>> batch = dc[100:200] # AnnCollectionView
-    >>> batch
-    AnnCollectionView object with n_obs × n_vars = 100 × 208
-        obsm: 'X_pca', 'X_umap'
-        obs: 'n_genes', 'percent_mito', 'n_counts', 'louvain'
-    >>> batch.X.shape
-    (100, 208)
-    >>> len(batch.obs['louvain'])
-    100
     """
 
     @old_positionals(