Skip to content

Commit 7fbe468

Browse files
committed
Update utils.py
1 parent 04cdac9 commit 7fbe468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cubids/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ def cluster_single_parameters(df, config, modality):
629629
valid_mask = ~np.isnan(array.flatten()) # Mask of non-NaN values
630630
except Exception:
631631
print(array.flatten())
632+
raise ValueError(f"Error in column {column_name}")
632633

633634
if valid_mask.sum() > 1: # Proceed with clustering only if >1 valid value
634635
valid_array = array[valid_mask].reshape(-1, 1)

0 commit comments

Comments
 (0)