# HG changeset patch # User luca_milaz # Date 1734368772 0 # Node ID 4a677fc67aeb96a3396a9718584e755512a86b9b # Parent c2ce7d75fcebd7bc5426e6a87ee7ffdba7b04394 Uploaded diff -r c2ce7d75fceb -r 4a677fc67aeb COBRAxy/marea_cluster.py --- 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: