-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updates release note * updates for scanpy-1.10.2 * adds release note
- Loading branch information
Showing
5 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
### 0.10.6 {small}`the future` | ||
|
||
```{rubric} Features | ||
``` | ||
|
||
```{rubric} Performance | ||
``` | ||
### 0.10.6 {small}`2024-06-25` | ||
|
||
```{rubric} Bug fixes | ||
``` | ||
* removes `.A` to be compatible with scipy 1.14.0 {pr}`214` {smaller}`S Dicks` | ||
|
||
```{rubric} Misc | ||
``` | ||
* updates tests to work without `scanpy.testing` {pr}`215` {smaller}`S Dicks` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"""Like fixtures, but more flexible""" | ||
|
||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
import pytest | ||
from anndata.tests.helpers import asarray | ||
from scipy import sparse | ||
|
||
|
||
if TYPE_CHECKING: | ||
from collections.abc import Iterable | ||
from typing import Literal | ||
|
||
from _pytest.mark.structures import ParameterSet | ||
|
||
|
||
def param_with( | ||
at: ParameterSet, | ||
*, | ||
marks: Iterable[pytest.Mark | pytest.MarkDecorator] = (), | ||
id: str | None = None, | ||
) -> ParameterSet: | ||
return pytest.param(*at.values, marks=[*at.marks, *marks], id=id or at.id) | ||
|
||
|
||
MAP_ARRAY_TYPES: dict[ | ||
tuple[Literal["mem", "dask"], Literal["dense", "sparse"]], | ||
tuple[ParameterSet, ...], | ||
] = { | ||
("mem", "dense"): (pytest.param(asarray, id="numpy_ndarray"),), | ||
("mem", "sparse"): ( | ||
pytest.param(sparse.csr_matrix, id="scipy_csr"), | ||
pytest.param(sparse.csc_matrix, id="scipy_csc"), | ||
), | ||
} | ||
|
||
ARRAY_TYPES_MEM = tuple( | ||
at for (strg, _), ats in MAP_ARRAY_TYPES.items() if strg == "mem" for at in ats | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters