We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8279e commit 54e3127Copy full SHA for 54e3127
1 file changed
src/cardiotensor/visualization/fury_plotting_streamlines.py
@@ -189,18 +189,14 @@ def show_streamlines(
189
# --- Downsample and filter
190
downsampled_streamlines = []
191
downsampled_colors = []
192
- idx = 0
193
for sl in streamlines_xyz:
194
- color_slice = color_values[idx : idx + len(sl)]
195
ds_sl = downsample_streamline(sl, downsample_factor)
196
ds_cl = downsample_streamline(color_slice, downsample_factor)
197
198
if filter_min_len is None or len(ds_sl) >= filter_min_len:
199
downsampled_streamlines.append(ds_sl)
200
downsampled_colors.append(ds_cl)
201
202
- idx += len(sl)
203
-
204
streamlines_xyz = downsampled_streamlines
205
color_values = downsampled_colors
206
0 commit comments