Skip to content

Commit

Permalink
make formatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
livhe authored and AKuederle committed Jan 30, 2024
1 parent ab1443a commit 8510fe0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gaitmap/utils/array_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numba.typed
import numpy as np
import pandas as pd
from numba import njit
from scipy.interpolate import interp1d
from scipy.signal import find_peaks
Expand Down Expand Up @@ -126,9 +125,7 @@ def bool_array_to_start_end_array(bool_array: np.ndarray) -> np.ndarray:
"""
# check if input is a numpy array. E.g. for a Series, start and end will just be the first and last index.
if not isinstance(bool_array, np.ndarray):
raise TypeError(
"Input must be a numpy array!"
)
raise TypeError("Input must be a numpy array!")

# check if input is actually a boolean array
if not np.array_equal(bool_array, bool_array.astype(bool)):
Expand Down

0 comments on commit 8510fe0

Please sign in to comment.