Skip to content

Commit

Permalink
Merge branch 'dev-meeg' of https://github.com/vferat/pycrostates into…
Browse files Browse the repository at this point in the history
… dev-meeg
  • Loading branch information
vferat committed Feb 20, 2024
2 parents f9ba5fc + 9387250 commit c86ab92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pycrostates/cluster/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,9 @@ def _segment(
half_window_size: int,
) -> NDArray[int]:
"""Create segmentation. Must operate on a copy of states."""
corr = _correlation(states.T, data, ignore_polarity=ignore_polarity)[:len(states), :]
corr = _correlation(states.T, data, ignore_polarity=ignore_polarity)[
: len(states), :
]
if ignore_polarity:
corr = np.abs(corr)
labels = np.argmax(corr, axis=0)
Expand Down

0 comments on commit c86ab92

Please sign in to comment.