Skip to content

Commit 57e1112

Browse files
committed
Update utils.py
1 parent 70c971e commit 57e1112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cubids/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,12 @@ def cluster_single_parameters(df, config, modality):
661661
df[f"Cluster_{column_name}"] = cluster_labels
662662

663663
else:
664-
print(f"Not clustering {column_name}")
664+
print(f"Not clustering {column_name} ({column_fmt})")
665665
# We can rely on string matching (done separately) for string-type fields,
666666
# but arrays of strings need to be handled differently.
667667
column_data = df[column_name].tolist()
668668

669-
if any(isinstance(x, list) for x in column_data):
669+
if any(isinstance(x, (list, np.ndarray)) for x in column_data):
670670
cluster_idx = 0
671671

672672
column_data = ["|&|".join(str(val) for val in cell) for cell in column_data]

0 commit comments

Comments
 (0)