Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
giovp committed Nov 21, 2023
1 parent 4030961 commit 1fccd60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/squidpy/datasets/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from scanpy import read
from scanpy._utils import check_presence_download

PathLike = Union[os.PathLike, str]
PathLike = Union[os.PathLike, str] # type: ignore[type-arg]
Function_t = Callable[..., Union[AnnData, Any]]


Expand Down
4 changes: 2 additions & 2 deletions src/squidpy/tl/_var_by_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def var_by_distance(
batch = adata.obs[library_key].unique()
categorical_columns.append(library_key)

batch_design_matrices = {}
max_distances = {}
batch_design_matrices: dict[tuple[str | None, str], pd.DataFrame] = {}
max_distances: dict[tuple[str | None, str], float] = {}
anchor_col_id = 2

# iterate over slide + anchor combinations (anchor only possible as well)
Expand Down

0 comments on commit 1fccd60

Please sign in to comment.