Skip to content

Commit e6ca904

Browse files
committed
Black 24.1.1
1 parent d26af45 commit e6ca904

7 files changed

Lines changed: 8 additions & 13 deletions

File tree

pingouin/bayesian.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Bayesian functions."""
2+
23
import warnings
34
import numpy as np
45
from scipy.integrate import quad

pingouin/circular.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,7 @@ def circ_corrcc(x, y, correction_uniform=False):
545545
r = (r_minus - r_plus) / denom
546546

547547
# Compute T- and p-values
548-
tval = (
549-
np.sqrt((n * (x_sin**2).mean() * (y_sin**2).mean()) / np.mean(x_sin**2 * y_sin**2))
550-
* r
551-
)
548+
tval = np.sqrt((n * (x_sin**2).mean() * (y_sin**2).mean()) / np.mean(x_sin**2 * y_sin**2)) * r
552549

553550
# Approximately distributed as a standard normal
554551
pval = 2 * norm.sf(abs(tval))

pingouin/multivariate.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,8 @@ def multivariate_normality(X, alpha=0.05):
102102
mu = 1 - a ** (-p / 2) * (1 + p * b**2 / a + (p * (p + 2) * (b**4)) / (2 * a**2))
103103
si2 = (
104104
2 * (1 + 4 * b**2) ** (-p / 2)
105-
+ 2
106-
* a ** (-p)
107-
* (1 + (2 * p * b**4) / a**2 + (3 * p * (p + 2) * b**8) / (4 * a**4))
108-
- 4
109-
* wb ** (-p / 2)
110-
* (1 + (3 * p * b**4) / (2 * wb) + (p * (p + 2) * b**8) / (2 * wb**2))
105+
+ 2 * a ** (-p) * (1 + (2 * p * b**4) / a**2 + (3 * p * (p + 2) * b**8) / (4 * a**4))
106+
- 4 * wb ** (-p / 2) * (1 + (3 * p * b**4) / (2 * wb) + (p * (p + 2) * b**8) / (2 * wb**2))
111107
)
112108

113109
# Lognormal mean and variance

pingouin/parametric.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,9 +1354,7 @@ def welch_anova(data=None, dv=None, between=None):
13541354
ms_betadj = ss_betadj / ddof1
13551355

13561356
# Calculate lambda, F-value, p-value and np2
1357-
lamb = (3 * np.sum((1 / (grp.count() - 1)) * (1 - (weights / weights.sum())) ** 2)) / (
1358-
r**2 - 1
1359-
)
1357+
lamb = (3 * np.sum((1 / (grp.count() - 1)) * (1 - (weights / weights.sum())) ** 2)) / (r**2 - 1)
13601358
ddof2 = 1 / lamb
13611359
fval = ms_betadj / (1 + (2 * lamb * (r - 2)) / 3)
13621360
pval = f.sf(fval, ddof1, ddof2)

pingouin/plotting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Raphael Vallat <[email protected]>
55
- Nicolas Legrand <[email protected]>
66
"""
7+
78
import numpy as np
89
import pandas as pd
910
import seaborn as sns

pingouin/tests/test_pandas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Nicolas Legrand <[email protected]>
55
- Raphael Vallat <[email protected]>
66
"""
7+
78
import numpy as np
89
import pingouin as pg
910
from unittest import TestCase

pingouin/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Helper functions."""
2+
23
import numbers
34
import numpy as np
45
import pandas as pd

0 commit comments

Comments
 (0)