Skip to content

Commit 3cba13e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2abc0e9 commit 3cba13e

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/ap_features/_numba.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from .utils import NUM_COST_TERMS
1313

14-
1514
# float_3D_array = numba.types.Array(numba.float64, 3, "C")
1615
# float_2D_array = numba.types.Array(numba.float64, 2, "C")
1716
# float_1D_array = numba.types.Array(numba.float64, 1, "C")

src/ap_features/background.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from .utils import Array
99

10-
1110
logger = logging.getLogger(__name__)
1211

1312

src/ap_features/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,14 +879,14 @@ def sigmoid(x, k, x0):
879879
popt, pcov = curve_fit(sigmoid, t_upstroke, upstroke, method="dogbox")
880880

881881
k, x0 = popt
882-
index = None # type:ignore
882+
index = None # type: ignore
883883
s = sigmoid(t_upstroke, k, x0)
884884
value = k / 2
885885
time_APD20_to_APD80 = apd_up_xy(s, t_upstroke, 20, 80)
886886

887887
else:
888888
# Find max upstroke
889-
index = np.argmax(np.diff(upstroke)) # type:ignore
889+
index = np.argmax(np.diff(upstroke)) # type: ignore
890890
value = np.max(np.diff(upstroke))
891891
x0 = None
892892
s = None

tests/test_features.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import numpy as np
66
import pytest
77

8-
98
here = os.path.dirname(os.path.abspath(__file__))
109

1110

0 commit comments

Comments
 (0)