Read IOStream for use with S3
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 293
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to pass an IOBuffer to MAT.jl?
This would be useful when storing data on services such as Amazon S3 with AWS.jl.
I tried the following code, but it did not work.
using AWS
using AWS.S3
env = AWSEnv(); bkt = "???"
file = S3.get_object(env, bkt, "testfile.mat").obj
#IOBuffer(data=Uint8[...], readable=true, writable=true, seekable=true, append=false, size=1040, maxsize=Inf, ptr=1041, mark=-1)
vars = matread(file)
# ERROR: `matread` has no method matching matread(::IOBuffer)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the matread entry point in MAT.jl and inspect how it currently accepts file inputs. Try the issue's AWS.S3 IOBuffer example and identify the existing read path it must support; done means matread(file) works for an IOBuffer containing a MATLAB file and the behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100