Skip to content

Commit c80d9f3

Browse files
authored
Merge pull request #28 from krz/dev
update load function
2 parents 58fbf2d + 72bf008 commit c80d9f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/data.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ function load(id::Int; maxbytes = nothing)
7272
@info "Downloading dataset $id."
7373
download(load_Dataset_Description(id)["data_set_description"]["url"], fname)
7474
end
75-
ARFFFiles.load(x -> ARFFFiles.readcolumns(x; maxbytes = maxbytes), fname)
75+
open(fname) do io
76+
reader = ARFFFiles.loadstreaming(io)
77+
return ARFFFiles.readcolumns(reader; maxbytes=maxbytes)
78+
end
7679
end
7780

7881

0 commit comments

Comments
 (0)