Skip to content

Commit

Permalink
add black suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxrider committed Sep 28, 2022
1 parent 46a4b8d commit ab43092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ec_tools/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def determine_scan_rate(t, x):

return np.abs(np.diff(x) / np.diff(t)).mean()


def find_extrema_indeces(y, mode="all"):
"""Return the indexes of limits of cyclic voltammetry.
Expand All @@ -91,6 +92,7 @@ def find_extrema_indeces(y, mode="all"):

return extrema + 1


def detect_step(t, x):
"""Returns the index of the step in given t and x arrays.
Index is the where the changed value of t located.
Expand Down

0 comments on commit ab43092

Please sign in to comment.