Skip to content

Commit 47d0454

Browse files
committed
Try to fix error
1 parent c44f7b4 commit 47d0454

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qolmat/analysis/holes_characterization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,10 @@ def test(
732732
return p_value
733733
else:
734734
B = self._build_B(list_proj, n_cols)
735-
U = np.array([item[0] for item in parallel_results])
736-
U_sigma = np.array([item[1] for item in parallel_results])
735+
U_matrix = np.array([np.atleast_1d(item[0]) for item in parallel_results])
736+
U_sigma = np.array([np.atleast_1d(item[1]) for item in parallel_results])
737737
p_values = [
738-
self._compute_partial_p_value(B, U, U_sigma, k)
738+
self._compute_partial_p_value(B, U_matrix, U_sigma, k)
739739
for k in range(n_cols)
740740
]
741741
return p_value, p_values

0 commit comments

Comments
 (0)