From 4bf9d512e8226ab71235499beb93255962e6eeaa Mon Sep 17 00:00:00 2001 From: AntoineTheb Date: Thu, 26 Dec 2024 17:52:13 -0500 Subject: [PATCH] FIX: pep8 --- scilpy/tractograms/dps_and_dpp_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scilpy/tractograms/dps_and_dpp_management.py b/scilpy/tractograms/dps_and_dpp_management.py index fda790b35..38223e995 100644 --- a/scilpy/tractograms/dps_and_dpp_management.py +++ b/scilpy/tractograms/dps_and_dpp_management.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- import numpy as np -from collections.abc import Iterable from nibabel.streamlines import ArraySequence @@ -40,9 +39,10 @@ def get_data_as_arraysequence(data, ref_sft): elif data.shape[0] == ref_sft._get_point_count(): # Split the data into a list of arrays, one per streamline. - # np.split takes the indices at which to split the array, so use + # np.split takes the indices at which to split the array, so use # np.cumsum to get the indices of the end of each streamline. - data_split = np.split(data, np.cumsum(ref_sft.streamlines._lengths)[:-1]) + data_split = np.split( + data, np.cumsum(ref_sft.streamlines._lengths)[:-1]) # Create an ArraySequence from the list of arrays. data_as_arraysequence = ArraySequence(data_split) else: