Skip to content

Commit

Permalink
Apply suggestions from code review to rename flag
Browse files Browse the repository at this point in the history
Co-authored-by: Oscar Esteban <[email protected]>
  • Loading branch information
celprov and oesteban authored Mar 24, 2023
1 parent a373e37 commit 00ea0e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mriqc_learn/viz/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def plot_corrmat(
cbarlabel="",
symmetric=True,
figsize=None,
sort=False,
sorted=False,
**kwargs,
):
"""
Expand All @@ -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`.
Expand All @@ -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

Expand Down

0 comments on commit 00ea0e8

Please sign in to comment.