Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 21, 2024
1 parent b6c63cd commit b4fed8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pycrostates/cluster/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,9 +1059,10 @@ def _reject_short_segments(
ignore_polarity=ignore_polarity,
)[0]
right_corr = _correlation(
data[:, right],
data[:, right + 1],
ignore_polarity=ignore_polarity)[0]
data[:, right],
data[:, right + 1],
ignore_polarity=ignore_polarity,
)[0]
if np.abs(right_corr - left_corr) <= 1e-8:
# equal corr, try to do both sides
if len(new_segment) == 1:
Expand Down

0 comments on commit b4fed8f

Please sign in to comment.