[go: nahoru, domu]

Skip to content

Commit

Permalink
misc (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovp committed Oct 15, 2022
1 parent 3978f86 commit 90ac001
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ default_stages:
minimum_pre_commit_version: 2.9.3
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
rev: v0.982
hooks:
- id: mypy
additional_dependencies:
[numpy==1.21.0, scipy, pandas, types-requests]
exclude: .scripts/ci/download_data.py|squidpy/datasets/_(dataset|image).py # See https://github.com/pre-commit/mirrors-mypy/issues/33
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
additional_dependencies: [toml]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.0
rev: v3.0.0-alpha.1
hooks:
- id: prettier
- repo: https://github.com/timothycrosley/isort
Expand Down Expand Up @@ -68,7 +68,7 @@ repos:
- id: check-toml
- id: requirements-txt-fixer
- repo: https://github.com/myint/autoflake
rev: v1.5.3
rev: v1.7.3
hooks:
- id: autoflake
args:
Expand Down Expand Up @@ -106,7 +106,7 @@ repos:
- id: blacken-docs
additional_dependencies: [black==20.8b1]
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.0
rev: v3.1.0
hooks:
- id: pyupgrade
args: [--py3-plus, --py38-plus, --keep-runtime-typing]
Expand Down
3 changes: 3 additions & 0 deletions docs/source/release/changelog/583.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
196 changes: 195 additions & 1 deletion docs/source/release/notes-dev.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Squidpy dev (2022-08-02)
Squidpy dev (2022-10-11)
========================

Bugfixes
Expand All @@ -21,6 +21,200 @@ Bugfixes
`@michalk8 <https://github.com/michalk8>`__
`#580 <https://github.com/scverse/squidpy/pull/580>`__

- This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
`#583 <https://github.com/scverse/squidpy/pull/583>`__


Miscellaneous
-------------

- Better error message for handling palette in :func:`squidpy.pl.spatial_scatter`.
`@giovp <https://github.com/giovp>`__
`#562 <https://github.com/scverse/squidpy/pull/562>`__


Documentation
-------------

- Add tutorials on analysis of Vizgen and Nanostring data.
Remove reference of ``scanpy.pl.spatial`` plotting in examples.
`@dineshpalli <https://github.com/dineshpalli>`__
`#569 <https://github.com/scverse/squidpy/pull/569>`__


Squidpy dev (2022-10-11)
========================

Bugfixes
--------

- Fix plotting non-unique categorical colors in :func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#561 <https://github.com/scverse/squidpy/pull/561>`__

- Fixes :func:`squidpy.read.nanostring` . Closes #566 .
`@giovp <https://github.com/giovp>`__
`#567 <https://github.com/scverse/squidpy/pull/567>`__

- Fix :func:`squidpy.read.vizgen`.
`@giovp <https://github.com/giovp>`__
`#568 <https://github.com/scverse/squidpy/pull/568>`__

- Fix passing :class:`matplotlib.colors.ListedColorMap` as palette to
:func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#580 <https://github.com/scverse/squidpy/pull/580>`__

- This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
`#583 <https://github.com/scverse/squidpy/pull/583>`__


Miscellaneous
-------------

- Better error message for handling palette in :func:`squidpy.pl.spatial_scatter`.
`@giovp <https://github.com/giovp>`__
`#562 <https://github.com/scverse/squidpy/pull/562>`__


Documentation
-------------

- Add tutorials on analysis of Vizgen and Nanostring data.
Remove reference of ``scanpy.pl.spatial`` plotting in examples.
`@dineshpalli <https://github.com/dineshpalli>`__
`#569 <https://github.com/scverse/squidpy/pull/569>`__


Squidpy dev (2022-10-11)
========================
No significant changes.


Squidpy dev (2022-10-11)
========================

Bugfixes
--------

- Fix plotting non-unique categorical colors in :func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#561 <https://github.com/scverse/squidpy/pull/561>`__

- Fixes :func:`squidpy.read.nanostring` . Closes #566 .
`@giovp <https://github.com/giovp>`__
`#567 <https://github.com/scverse/squidpy/pull/567>`__

- Fix :func:`squidpy.read.vizgen`.
`@giovp <https://github.com/giovp>`__
`#568 <https://github.com/scverse/squidpy/pull/568>`__

- Fix passing :class:`matplotlib.colors.ListedColorMap` as palette to
:func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#580 <https://github.com/scverse/squidpy/pull/580>`__

- This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
`#583 <https://github.com/scverse/squidpy/pull/583>`__


Miscellaneous
-------------

- Better error message for handling palette in :func:`squidpy.pl.spatial_scatter`.
`@giovp <https://github.com/giovp>`__
`#562 <https://github.com/scverse/squidpy/pull/562>`__


Documentation
-------------

- Add tutorials on analysis of Vizgen and Nanostring data.
Remove reference of ``scanpy.pl.spatial`` plotting in examples.
`@dineshpalli <https://github.com/dineshpalli>`__
`#569 <https://github.com/scverse/squidpy/pull/569>`__


Squidpy dev (2022-10-11)
========================

Bugfixes
--------

- Fix plotting non-unique categorical colors in :func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#561 <https://github.com/scverse/squidpy/pull/561>`__

- Fixes :func:`squidpy.read.nanostring` . Closes #566 .
`@giovp <https://github.com/giovp>`__
`#567 <https://github.com/scverse/squidpy/pull/567>`__

- Fix :func:`squidpy.read.vizgen`.
`@giovp <https://github.com/giovp>`__
`#568 <https://github.com/scverse/squidpy/pull/568>`__

- Fix passing :class:`matplotlib.colors.ListedColorMap` as palette to
:func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#580 <https://github.com/scverse/squidpy/pull/580>`__

- This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
`#583 <https://github.com/scverse/squidpy/pull/583>`__


Miscellaneous
-------------

- Better error message for handling palette in :func:`squidpy.pl.spatial_scatter`.
`@giovp <https://github.com/giovp>`__
`#562 <https://github.com/scverse/squidpy/pull/562>`__


Documentation
-------------

- Add tutorials on analysis of Vizgen and Nanostring data.
Remove reference of ``scanpy.pl.spatial`` plotting in examples.
`@dineshpalli <https://github.com/dineshpalli>`__
`#569 <https://github.com/scverse/squidpy/pull/569>`__


Squidpy dev (2022-10-11)
========================

Bugfixes
--------

- Fix plotting non-unique categorical colors in :func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#561 <https://github.com/scverse/squidpy/pull/561>`__

- Fixes :func:`squidpy.read.nanostring` . Closes #566 .
`@giovp <https://github.com/giovp>`__
`#567 <https://github.com/scverse/squidpy/pull/567>`__

- Fix :func:`squidpy.read.vizgen`.
`@giovp <https://github.com/giovp>`__
`#568 <https://github.com/scverse/squidpy/pull/568>`__

- Fix passing :class:`matplotlib.colors.ListedColorMap` as palette to
:func:`squidpy.pl.spatial_scatter`.
`@michalk8 <https://github.com/michalk8>`__
`#580 <https://github.com/scverse/squidpy/pull/580>`__

- This PR updates squidpy to accommodate the latest changes made in spaceranger 2.0 which will break
the released version of squidpy. Will provide backwards compatibility to pre 2.0 releases.
`@stephenwilliams22 <https://github.com/stephenwilliams22>`__
`#583 <https://github.com/scverse/squidpy/pull/583>`__


Miscellaneous
-------------
Expand Down
1 change: 1 addition & 0 deletions docs/source/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ segmentations
semibold
seqFISH
seqV
spaceranger
Squidpy
StarDist
stromal
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
zip_safe=False,
install_requires=[l.strip() for l in Path("requirements.txt").read_text("utf-8").splitlines()],
extras_require=dict(
dev=["pre-commit>=2.9.0", "towncrier>=21.3.0"],
test=["tox>=3.20.1"],
dev=["pre-commit>=2.9.0", "towncrier>=22.8.0"],
test=["tox>=3.26.0"],
docs=[
l.strip()
for l in (Path("docs") / "requirements.txt").read_text("utf-8").splitlines()
Expand Down
2 changes: 1 addition & 1 deletion squidpy/datasets/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Function_t = Callable[..., Union[AnnData, Any]]


@dataclass(frozen=True) # type: ignore[misc]
@dataclass(frozen=True)
class Metadata(ABC):
"""Base class handling metadata."""

Expand Down
2 changes: 1 addition & 1 deletion squidpy/im/_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ def interactive(
blending: Literal["opaque", "translucent", "additive"] = "opaque",
symbol: Literal["disc", "square"] = "disc",
key_added: str = "shapes",
) -> Interactive:
) -> Interactive: # type: ignore[type-var]
"""
Launch :mod:`napari` viewer.
Expand Down
3 changes: 2 additions & 1 deletion tests/plotting/test_spatial_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def test_plot_spatial_segment(self, adata_mibitof: AnnData):
na_color="lightgrey",
)

def test_plot_spatial_segment_group(self, adata_mibitof: AnnData):
def test_tol_plot_spatial_segment_group(self, adata_mibitof: AnnData):
pl.spatial_segment(
adata_mibitof,
color=["Cluster"],
Expand All @@ -168,6 +168,7 @@ def test_plot_spatial_segment_group(self, adata_mibitof: AnnData):
scalebar_dx=2.0,
scalebar_kwargs={"scale_loc": "bottom", "location": "lower right"},
)
self.compare("SpatialStatic_spatial_segment_group", tolerance=60)

def test_plot_spatial_segment_crop(self, adata_mibitof: AnnData):
pl.spatial_segment(
Expand Down

0 comments on commit 90ac001

Please sign in to comment.