Skip to content

Commit 1cc1d91

Browse files
charleskawczynskirafaqz
authored andcommitted
Fix bug in zip
1 parent 118b43e commit 1cc1d91

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/zip.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ function DiskZip(As::AbstractArray...)
4141
return DiskZip(rechunked)
4242
end
4343
end
44-
# For now we only allow zip on exact same-sized arrays
45-
function DiskZip(As...)
46-
throw(
47-
ArgumentError("zip on disk arrays only works with other same-sized AbstractArray")
48-
)
49-
end
44+
# # For now we only allow zip on exact same-sized arrays
5045

5146
# Collect zipped disk arrays in the right order
5247
function Base.collect(dz::DiskZip)
@@ -65,7 +60,7 @@ function Base.zip(A1::AbstractDiskArray, A2::AbstractDiskArray, As::AbstractArra
6560
return DiskZip(A1, A2, As...)
6661
end
6762
function Base.zip(A1::AbstractDiskArray, A2::AbstractArray, As::AbstractArray...)
68-
return DiskZip(A1, A1, As...)
63+
return DiskZip(A1, A2, As...)
6964
end
7065
function Base.zip(A1::AbstractArray, A2::AbstractDiskArray, As::AbstractArray...)
7166
return DiskZip(A1, A2, As...)

0 commit comments

Comments
 (0)