Skip to content

Commit cf5a144

Browse files
authored
Merge branch 'main' into niche_definitions
2 parents 8b22409 + 93ee854 commit cf5a144

File tree

16 files changed

+567
-70
lines changed

16 files changed

+567
-70
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.5.0
2+
current_version = 1.6.0
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ jobs:
2323
python: [3.9, "3.10", "3.11"]
2424
os: [ubuntu-latest]
2525
include:
26-
- python: 3.9
27-
os: macos-latest
28-
- python: "3.10"
26+
- python: "3.12"
2927
os: macos-latest
28+
pip-flags: "--pre"
29+
name: "Python 3.12 (pre-release)"
30+
3031
env:
3132
OS: ${{ matrix.os }}
3233
PYTHON: ${{ matrix.python }}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default_stages:
77
minimum_pre_commit_version: 2.9.3
88
repos:
99
- repo: https://github.com/pre-commit/mirrors-mypy
10-
rev: v1.10.0
10+
rev: v1.11.0
1111
hooks:
1212
- id: mypy
1313
additional_dependencies: [numpy, pandas, types-requests]
@@ -46,7 +46,7 @@ repos:
4646
name: Check executable files use .sh extension
4747
types: [shell, executable]
4848
- repo: https://github.com/astral-sh/ruff-pre-commit
49-
rev: v0.4.5
49+
rev: v0.5.4
5050
hooks:
5151
- id: ruff
5252
types_or: [python, pyi, jupyter]

docs/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Graph
1414
:toctree: api
1515

1616
gr.spatial_neighbors
17+
gr.mask_graph
1718
gr.nhood_enrichment
1819
gr.co_occurrence
1920
gr.centrality_scores

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
omnipath=("https://omnipath.readthedocs.io/en/latest", None),
9595
napari=("https://napari.org/", None),
9696
spatialdata=("https://spatialdata.scverse.org/en/latest", None),
97+
shapely=("https://shapely.readthedocs.io/en/stable", None),
9798
)
9899

99100
# Add any paths that contain templates here, relative to this directory.

docs/release/notes-1.6.0.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Squidpy 1.6.0 (2024-07-23)
2+
==========================
3+
4+
Features
5+
--------
6+
7+
- Now :func:`squidpy.gr.spatial_graph` can also be used on :class:`spatialdata.SpatialData` objects.
8+
9+
- Add :func:`squidpy.gr.mask_graph` to mask a spatial graph based on :class:`shapely.Polygon` or :class:`shapely.MultiPolygon`
10+
`@giovp <https://github.com/giovp>`__
11+
`#842 <https://github.com/scverse/squidpy/pull/842>`__

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dependencies = [
7272
"validators>=0.18.2",
7373
"xarray>=0.16.1",
7474
"zarr>=2.6.1",
75-
"spatialdata",
75+
"spatialdata>=0.2.0",
7676
]
7777

7878
[project.optional-dependencies]

src/squidpy/gr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from squidpy.gr._build import spatial_neighbors
5+
from squidpy.gr._build import mask_graph, spatial_neighbors
66
from squidpy.gr._ligrec import ligrec
77
from squidpy.gr._nhood import centrality_scores, interaction_matrix, nhood_enrichment
88
from squidpy.gr._niche import calculate_niche

0 commit comments

Comments
 (0)