From 2e2d54ff01d51a72b0965ec9c0a483d0ea880ba3 Mon Sep 17 00:00:00 2001 From: Severin Dicks <37635888+Intron7@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:29:05 +0200 Subject: [PATCH] 0.10.9 release (#269) * update release note * fix docs --- docs/release-notes/0.10.9.md | 2 +- src/rapids_singlecell/get/_aggregated.py | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/release-notes/0.10.9.md b/docs/release-notes/0.10.9.md index 0d5fd10c..5e8d631b 100644 --- a/docs/release-notes/0.10.9.md +++ b/docs/release-notes/0.10.9.md @@ -1,4 +1,4 @@ -### 0.10.8 {small}`the future` +### 0.10.9 {small}`2024-10-01` ```{rubric} Features ``` diff --git a/src/rapids_singlecell/get/_aggregated.py b/src/rapids_singlecell/get/_aggregated.py index 10b939f2..199503dc 100644 --- a/src/rapids_singlecell/get/_aggregated.py +++ b/src/rapids_singlecell/get/_aggregated.py @@ -1,6 +1,13 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Literal, Union, get_args +from typing import ( + TYPE_CHECKING, + Collection, + Iterable, + Literal, + Union, + get_args, +) import cupy as cp import numpy as np @@ -13,8 +20,6 @@ from rapids_singlecell.preprocessing._utils import _check_gpu_X if TYPE_CHECKING: - from collections.abc import Collection, Iterable - import pandas as pd from numpy.typing import NDArray @@ -331,8 +336,8 @@ def aggregate( If `func` only has length 1 or is just an `AggType`, then aggregation data is written to `X`. Otherwise, it is written to `layers` or `xxxm` as appropriate for the dimensions of the aggregation data. - Params - ------ + Parameters + ---------- adata :class:`~anndata.AnnData` to be aggregated. by