Skip to content

Commit 04cdac9

Browse files
committed
Update utils.py
1 parent 6bc3287 commit 04cdac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cubids/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def cluster_single_parameters(df, config, modality):
591591
if "tolerance" in column_fmt and len(df) > 1:
592592
column_data = df[column_name].to_numpy()
593593

594-
if any(isinstance(x, list) for x in column_data):
594+
if any(isinstance(x, (list, np.array)) for x in column_data):
595595
# For array/list data, we should first define "clusters" based on the number of
596596
# elements, then apply the clustering within each set of lengths.
597597
# For example, if there are four runs with five elements and 10 runs with three

0 commit comments

Comments
 (0)