From 231e01c1119d119ec7d41fbcb3180c03499c58af Mon Sep 17 00:00:00 2001 From: Serge Koudoro Date: Thu, 3 Aug 2023 10:57:39 -0400 Subject: [PATCH] allow_pickle --- quantconn/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantconn/cli.py b/quantconn/cli.py index b39cf7d..bbdbcaa 100644 --- a/quantconn/cli.py +++ b/quantconn/cli.py @@ -209,7 +209,7 @@ def merge(destination: Annotated[Path, typer.Option("--destination", "-dest", if not os.path.exists(connectivity_matrice_path): print(f":yellow_circle: Missing data for subject {sub} in {output_path} folder.") continue - conn_mat = np.load(connectivity_matrice_path) + conn_mat = np.load(connectivity_matrice_path, allow_pickle=True) for i, mt in enumerate(['betweenness_centrality', 'global_efficiency', 'modularity']): df_conn_2 = pd.DataFrame({'# subject': [sub],