From b4fed8fb7160a0a316c0258678c71f9094407416 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:05:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pycrostates/cluster/_base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pycrostates/cluster/_base.py b/pycrostates/cluster/_base.py index 679075be..a5080654 100644 --- a/pycrostates/cluster/_base.py +++ b/pycrostates/cluster/_base.py @@ -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: