Skip to content

Commit 1806d71

Browse files
[pre-commit.ci] pre-commit autoupdate (#309)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.9](astral-sh/ruff-pre-commit@v0.15.4...v0.15.9) - [github.com/adhtruong/mirrors-typos: v1.38.1 → v1.45.0](adhtruong/mirrors-typos@v1.38.1...v1.45.0) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](pre-commit/mirrors-mypy@v1.19.1...v1.20.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update .pre-commit-config.yaml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Stuart Mumford <stuart@cadair.com>
1 parent 59474b1 commit 1806d71

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ repos:
4646
- id: mixed-line-ending
4747
types_or: [python, rst]
4848
- repo: https://github.com/adhtruong/mirrors-typos
49-
rev: v1.38.1
49+
rev: v1.45.0
5050
hooks:
5151
- id: typos
5252
types_or: [python, rst]
5353
exclude: *exclude_dirs
5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: "v1.19.1"
55+
rev: "v1.20.0"
5656
hooks:
5757
- id: mypy
5858
additional_dependencies: ["types-setuptools"]

sunkit_image/trace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def occult2(image, nsm1, rmin, lmin, nstruc, ngap, qthresh1, qthresh2):
156156

157157
# This decides when to stop tracing the loop; when then last `ngap` pixels traced
158158
# are below zero, the tracing will stop.
159-
iz1 = max((ip + 1 - ngap), 0)
160-
if np.max(zl[iz1 : ip + 2]) <= 0:
161-
ip = max(iz1 - 1, 0)
159+
is1 = max((ip + 1 - ngap), 0)
160+
if np.max(zl[is1 : ip + 2]) <= 0:
161+
ip = max(is1 - 1, 0)
162162
break # goto endsegm
163163

164164
# ENDSEGM

0 commit comments

Comments
 (0)