Skip to content

Commit 23c9460

Browse files
committed
Simplify _wrap_weights()
1 parent ec1decd commit 23c9460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: python/evalica/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
def _wrap_weights(weights: Collection[float] | None, n: int) -> Collection[float]:
4848
if weights is None:
49-
return np.repeat(1., n)
49+
return [1.] * n
5050

5151
assert np.isfinite(weights).all(), "weights must be finite" # type: ignore[call-overload]
5252

0 commit comments

Comments
 (0)