Skip to content

Commit

Permalink
type-specific parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jul 10, 2017
1 parent 903e227 commit 2374dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samri/plotting/connectivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2374dda

Please sign in to comment.