Skip to content

Commit fbf9e66

Browse files
Fix UnitWeights slow iteration (#602)
Fixes #600
1 parent ec33334 commit fbf9e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/weights.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ All weight elements are identically one.
275275
sum(wv::UnitWeights{T}) where T = convert(T, length(wv))
276276
isempty(wv::UnitWeights) = iszero(wv.len)
277277
length(wv::UnitWeights) = wv.len
278-
size(wv::UnitWeights) = Tuple(length(wv))
278+
size(wv::UnitWeights) = tuple(length(wv))
279279

280280
Base.convert(::Type{Vector}, wv::UnitWeights{T}) where {T} = ones(T, length(wv))
281281

0 commit comments

Comments
 (0)