From e908a15b96f430f742c0ced54021ae7fbd8b7745 Mon Sep 17 00:00:00 2001 From: Michael McKinsey Date: Mon, 9 Oct 2023 18:11:26 -0500 Subject: [PATCH] Update error message in stats functions (#96) Update to query Thicket.performance_cols instead of an internal get function --- thicket/stats/calc_boxplot_statistics.py | 2 +- thicket/stats/check_normality.py | 2 +- thicket/stats/correlation_nodewise.py | 2 +- thicket/stats/display_heatmap.py | 2 +- thicket/stats/display_histogram.py | 2 +- thicket/stats/maximum.py | 2 +- thicket/stats/mean.py | 2 +- thicket/stats/median.py | 2 +- thicket/stats/minimum.py | 2 +- thicket/stats/percentiles.py | 2 +- thicket/stats/std.py | 2 +- thicket/stats/variance.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/thicket/stats/calc_boxplot_statistics.py b/thicket/stats/calc_boxplot_statistics.py index 51055387..df3be28e 100644 --- a/thicket/stats/calc_boxplot_statistics.py +++ b/thicket/stats/calc_boxplot_statistics.py @@ -31,7 +31,7 @@ def calc_boxplot_statistics(thicket, columns=[], quartiles=[0.25, 0.5, 0.75], ** if len(columns) == 0: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/check_normality.py b/thicket/stats/check_normality.py index e8d55633..fdf25d42 100644 --- a/thicket/stats/check_normality.py +++ b/thicket/stats/check_normality.py @@ -28,7 +28,7 @@ def check_normality(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/correlation_nodewise.py b/thicket/stats/correlation_nodewise.py index 6969dc91..5e9f0432 100644 --- a/thicket/stats/correlation_nodewise.py +++ b/thicket/stats/correlation_nodewise.py @@ -30,7 +30,7 @@ def correlation_nodewise(thicket, column1=None, column2=None, correlation="pears """ if column1 is None or column2 is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures( diff --git a/thicket/stats/display_heatmap.py b/thicket/stats/display_heatmap.py index aaf649ad..4b04eccc 100644 --- a/thicket/stats/display_heatmap.py +++ b/thicket/stats/display_heatmap.py @@ -23,7 +23,7 @@ def display_heatmap(thicket, columns=None, **kwargs): """ if columns is None: raise ValueError( - "To see a list of valid columns, run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures( diff --git a/thicket/stats/display_histogram.py b/thicket/stats/display_histogram.py index 8ddf5f9b..13f94a19 100644 --- a/thicket/stats/display_histogram.py +++ b/thicket/stats/display_histogram.py @@ -26,7 +26,7 @@ def display_histogram(thicket, node=None, column=None, **kwargs): """ if column is None or node is None: raise ValueError( - "To see a list of valid columns, run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) if not isinstance(node, ht.node.Node): diff --git a/thicket/stats/maximum.py b/thicket/stats/maximum.py index 6151fd52..dc1805fc 100644 --- a/thicket/stats/maximum.py +++ b/thicket/stats/maximum.py @@ -22,7 +22,7 @@ def maximum(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/mean.py b/thicket/stats/mean.py index 8ab670eb..860c1715 100644 --- a/thicket/stats/mean.py +++ b/thicket/stats/mean.py @@ -22,7 +22,7 @@ def mean(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/median.py b/thicket/stats/median.py index c57b552a..9ca9649e 100644 --- a/thicket/stats/median.py +++ b/thicket/stats/median.py @@ -22,7 +22,7 @@ def median(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/minimum.py b/thicket/stats/minimum.py index 54dac892..498b36fb 100644 --- a/thicket/stats/minimum.py +++ b/thicket/stats/minimum.py @@ -22,7 +22,7 @@ def minimum(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/percentiles.py b/thicket/stats/percentiles.py index 81fec98f..40aa16e4 100644 --- a/thicket/stats/percentiles.py +++ b/thicket/stats/percentiles.py @@ -31,7 +31,7 @@ def percentiles(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/std.py b/thicket/stats/std.py index e2244161..624f00d7 100644 --- a/thicket/stats/std.py +++ b/thicket/stats/std.py @@ -24,7 +24,7 @@ def std(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns) diff --git a/thicket/stats/variance.py b/thicket/stats/variance.py index 4b87f6cc..8b3c8750 100644 --- a/thicket/stats/variance.py +++ b/thicket/stats/variance.py @@ -25,7 +25,7 @@ def variance(thicket, columns=None): """ if columns is None: raise ValueError( - "To see a list of valid columns, please run Thicket.get_perf_columns()." + "To see a list of valid columns, run 'Thicket.performance_cols'." ) verify_thicket_structures(thicket.dataframe, index=["node"], columns=columns)