Skip to content

Commit

Permalink
Update error message in stats functions (#96)
Browse files Browse the repository at this point in the history
Update to query Thicket.performance_cols instead of an internal get function
  • Loading branch information
michaelmckinsey1 authored Oct 9, 2023
1 parent 264b2f4 commit e908a15
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion thicket/stats/calc_boxplot_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/check_normality.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/correlation_nodewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/display_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/display_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/maximum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/median.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/minimum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/percentiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/std.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thicket/stats/variance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e908a15

Please sign in to comment.