From 2374ddaf2333f3e7b62ffc3ca5f4c70859268000 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Mon, 10 Jul 2017 13:06:03 +0200 Subject: [PATCH] type-specific parsing --- samri/plotting/connectivity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samri/plotting/connectivity.py b/samri/plotting/connectivity.py index 81ee71d2..b441aa93 100644 --- a/samri/plotting/connectivity.py +++ b/samri/plotting/connectivity.py @@ -26,11 +26,11 @@ def plot_connectivity_matrix(correlation_matrix, #TODO: fix labels in ascending order corresponding to intensity values labels = path.abspath(path.expanduser(labels)) + labels_np = genfromtxt(labels, delimiter=',', usecols = (1), dtype = 'str') if isinstance(correlation_matrix, str): correlation_matrix = path.abspath(path.expanduser(correlation_matrix)) + correlation_matrix = genfromtxt(correlation_matrix, delimiter=',') - labels_np = genfromtxt(labels, delimiter=',', usecols = (1), dtype = 'str') - correlation_matrix = genfromtxt(correlation_matrix, delimiter=',') plt.figure(figsize=figsize) np.fill_diagonal(correlation_matrix, 0)