changeset 224:4a677fc67aeb draft

Uploaded
author luca_milaz
date Mon, 16 Dec 2024 17:06:12 +0000
parents c2ce7d75fceb
children ba7043091fe3
files COBRAxy/marea_cluster.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/marea_cluster.py	Sat Dec 14 19:11:31 2024 +0000
+++ b/COBRAxy/marea_cluster.py	Mon Dec 16 17:06:12 2024 +0000
@@ -511,7 +511,7 @@
     X = pd.DataFrame.from_dict(X, orient = 'index')
     
     for i in X.columns:
-        if any(val is None for val in X[i]):
+        if any(val is None or np.isnan(val) for val in X[i]):
             X = X.drop(columns=[i])
             
     if args.k_max != None: