From 00ea0e89cea145f01627f1c05bdf53f848a1a24e Mon Sep 17 00:00:00 2001 From: celprov <77437752+celprov@users.noreply.github.com> Date: Fri, 24 Mar 2023 11:24:01 +0100 Subject: [PATCH] Apply suggestions from code review to rename flag Co-authored-by: Oscar Esteban --- mriqc_learn/viz/metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mriqc_learn/viz/metrics.py b/mriqc_learn/viz/metrics.py index bcf9f0d..9001a54 100644 --- a/mriqc_learn/viz/metrics.py +++ b/mriqc_learn/viz/metrics.py @@ -184,7 +184,7 @@ def plot_corrmat( cbarlabel="", symmetric=True, figsize=None, - sort=False, + sorted=False, **kwargs, ): """ @@ -205,7 +205,7 @@ def plot_corrmat( A dictionary with arguments to `matplotlib.Figure.colorbar`. Optional. cbarlabel The label for the colorbar. Optional. - sort + sorted : :obj:`bool` Flag to perform hierachical clustering on the correlation plot **kwargs All other arguments are forwarded to `imshow`. @@ -214,7 +214,7 @@ def plot_corrmat( from mpl_toolkits.axes_grid1.inset_locator import inset_axes # Cluster rows (if arguments enabled) - if sort: + if sorted: import pandas as pd from scipy.cluster.hierarchy import linkage, dendrogram, fcluster