From 39cd0259fe8fcc48ce215043ca3db9bfb85a4ad9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:22:01 +0000 Subject: [PATCH 1/2] Bump scipy from 1.13.1 to 1.14.0 Bumps [scipy](https://github.com/scipy/scipy) from 1.13.1 to 1.14.0. - [Release notes](https://github.com/scipy/scipy/releases) - [Commits](https://github.com/scipy/scipy/compare/v1.13.1...v1.14.0) --- updated-dependencies: - dependency-name: scipy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0bee4fc..f6a0728 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ Package = "https://pypi.org/project/agility/" strict = [ "numpy==2.0.0", "pandas==2.2.2", - "scipy==1.13.1", + "scipy==1.14.0", "seaborn==0.13.2", ] dev = [ From 9bd3bb5e54d0e787962aa1fa7da9f44d0c366051 Mon Sep 17 00:00:00 2001 From: Alexander Bonkowski Date: Mon, 1 Jul 2024 13:58:10 +0200 Subject: [PATCH 2/2] Linting --- .pre-commit-config.yaml | 6 +++--- agility/analysis.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2201580..c528b12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.0 hooks: - id: ruff args: [--fix] @@ -22,12 +22,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.10.1 hooks: - id: mypy - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.368 + rev: v1.1.369 hooks: - id: pyright diff --git a/agility/analysis.py b/agility/analysis.py index 96cb474..697d86f 100644 --- a/agility/analysis.py +++ b/agility/analysis.py @@ -263,7 +263,7 @@ def modify(frame, data): # noqa: ANN001,ANN202,ARG001 # pylint: disable=W0613 else: msg = "Only Indices and Identifier are possible as list id types." raise NameError(msg) - l_ids = np.in1d(ids, list_ids, assume_unique=True, invert=False) + l_ids = np.isin(ids, list_ids, assume_unique=True, invert=False) selection = data.particles_.create_property( # noqa: F841 "Selection", data=l_ids,