Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ repos:


- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
rev: 0.9.0
hooks:
- id: nbstripout

Expand All @@ -27,7 +27,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.14.11'
rev: 'v0.14.14'
hooks:
- id: ruff

Expand All @@ -37,7 +37,7 @@ repos:
- id: mypy

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.4.0
rev: v9.6.0
hooks:
- id: cspell
files: src/|docs/(.+).md|docs/source/(.+).ipynb|tests|README.md
1 change: 0 additions & 1 deletion src/ap_features/_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from .utils import NUM_COST_TERMS


# float_3D_array = numba.types.Array(numba.float64, 3, "C")
# float_2D_array = numba.types.Array(numba.float64, 2, "C")
# float_1D_array = numba.types.Array(numba.float64, 1, "C")
Expand Down
1 change: 0 additions & 1 deletion src/ap_features/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from .utils import Array


logger = logging.getLogger(__name__)


Expand Down
4 changes: 2 additions & 2 deletions src/ap_features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,14 +879,14 @@ def sigmoid(x, k, x0):
popt, pcov = curve_fit(sigmoid, t_upstroke, upstroke, method="dogbox")

k, x0 = popt
index = None # type:ignore
index = None # type: ignore
s = sigmoid(t_upstroke, k, x0)
value = k / 2
time_APD20_to_APD80 = apd_up_xy(s, t_upstroke, 20, 80)

else:
# Find max upstroke
index = np.argmax(np.diff(upstroke)) # type:ignore
index = np.argmax(np.diff(upstroke)) # type: ignore
value = np.max(np.diff(upstroke))
x0 = None
s = None
Expand Down
1 change: 0 additions & 1 deletion tests/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np
import pytest


here = os.path.dirname(os.path.abspath(__file__))


Expand Down
Loading