You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I occasionally get mysterious crashes when using the pairwise t-test, e.g:
.../pingouin/pairwise.py", line 397, in pairwise_tests
df_ttest = ttest(
.../pingouin/parametric.py", line 310, in ttest
bf = bayesfactor_ttest(tval, nx, ny, paired=paired, alternative=alternative, r=r)
.../pingouin/bayesian.py", line 128, in bayesfactor_ttest
assert isinstance(t, (int, float)), "The T-value must be a int or a float."
AssertionError: The T-value must be a int or a float.
This happens when using a fairly innocuous dataframe:
@raphaelvallat can I ask why this is marked as invalid?
Looking at the code (see linked PR) there's a clear issue with how the scipy interface is used, and this is causing issues in certain cases, since a tuple is treated as if it were a float/int
@George3d6 --> Invalid does not mean that the issue is not valid, but rather that something doesn't look right in the Pingouin code. Apologies for the confusion. I'll update the label to "bug".
I occasionally get mysterious crashes when using the pairwise t-test, e.g:
This happens when using a fairly innocuous dataframe:
The issue seems to arise from the fact that the
t
variable being checked by the assert is actually a single-element array (e.g.[0.521]
)I've been unable to figure out the exact cause of the bug or replicate it, any help with this would be appreciated.
The text was updated successfully, but these errors were encountered: