Skip to content

Commit 70c971e

Browse files
committed
Update utils.py
1 parent 10df339 commit 70c971e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cubids/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,18 @@ def cluster_single_parameters(df, config, modality):
582582

583583
for column_name, column_fmt in to_format.items():
584584
if column_name not in df:
585+
print(f"Skipping {column_name} because it's not in the dataframe")
585586
continue
586587

587588
# Check if the column is entirely NaN or blank
588589
if df[column_name].isna().all():
590+
print(f"Skipping {column_name} because it's all NaN")
589591
# If the whole column is NaN, assign a single cluster label (e.g., 0)
590592
df[f"Cluster_{column_name}"] = 0
591593
continue # Skip clustering since all values are NaN
592594

593595
if "tolerance" in column_fmt and len(df) > 1:
596+
print(f"Clustering {column_name}")
594597
column_data = df[column_name].to_numpy()
595598

596599
if any(isinstance(x, (list, np.ndarray)) for x in column_data):

0 commit comments

Comments
 (0)