Skip to content

Commit

Permalink
Specify dependencies versions
Browse files Browse the repository at this point in the history
  • Loading branch information
d31003 committed May 16, 2024
1 parent ae942ea commit 61247d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ classifiers = [
dependencies = [
"numpy",
"pandas",
"seaborn",
"statannotations",
"seaborn"="0.11.2",
"matplotlib"="3.8.4"
"statannotations=0.6.0",
"scipy"
]

Expand Down
10 changes: 7 additions & 3 deletions swarm_visualizer/utility/statistics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ def add_wilcoxon_value(
hue=None,
order_list=None,
box_pairs=None,
test_type=None,
text_format=None,
test_type="Wilcoxon",
text_format="full",
loc=None,
fontsize=20,
verbose=0,
pvalue_format_string="{:.4f}",
show_test_name=False,
**kwargs
) -> None:

annotator = Annotator(ax,box_pairs,data=df, x=x_var, y=y_var, hue = hue, order=order_list)
annotator.configure(test=test_type, text_format=text_format, loc=loc, verbose=verbose, fontsize=fontsize)
annotator.configure(test=test_type, text_format=text_format, loc=loc, verbose=verbose, fontsize=fontsize,
pvalue_format_string=pvalue_format_string, show_test_name=show_test_name, **kwargs)
annotator.apply_and_annotate()
3 changes: 1 addition & 2 deletions tests/test_p_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import pytest

from swarm_visualizer import plot_grouped_boxplot, plot_paired_boxplot
from swarm_visualizer.utility import save_fig, set_plot_properties
from swarm_visualizer.utility import add_wilcoxon_value
from swarm_visualizer.utility import save_fig, set_plot_properties, add_wilcoxon_value

# Example Plots location
_X1_DATA = np.arange(0, 5, 0.05) + np.random.normal(0, 0.1, 100)
Expand Down

0 comments on commit 61247d9

Please sign in to comment.