Skip to content

Commit

Permalink
Bug fixes on delta_g
Browse files Browse the repository at this point in the history
Fixes #148.
  • Loading branch information
Jacobluke- committed Aug 1, 2023
1 parent c489cbd commit 486005a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dabest/_stats_tools/effsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def two_group_difference(control:list|tuple|np.ndarray, #Accepts lists, tuples,
import numpy as np
import warnings

if effect_size == "mean_diff" or effect_size=="delta_g":
if effect_size == "mean_diff":
return func_difference(control, test, np.mean, is_paired)

elif effect_size == "median_diff":
Expand Down
2 changes: 1 addition & 1 deletion nbs/API/effsize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
" import numpy as np\n",
" import warnings\n",
"\n",
" if effect_size == \"mean_diff\" or effect_size==\"delta_g\":\n",
" if effect_size == \"mean_diff\":\n",
" return func_difference(control, test, np.mean, is_paired)\n",
"\n",
" elif effect_size == \"median_diff\":\n",
Expand Down
Binary file modified nbs/tests/baseline_images/test_71_unpaired_delta_g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 486005a

Please sign in to comment.