sam81 / BDF.jl

Module to read Biosemi BDF files with the Julia programming language
MIT License
8 stars 7 forks source link

Add ability to read IO types #3

Closed rob-luke closed 10 years ago

rob-luke commented 10 years ago

This allows reading directly from S3 using AWS.jl

using JBDF
using AWS
using AWS.S3

# Local control file
dats, evtTab, trigs, statusChan = readBdf("BDFtestfiles/Newtest17-2048.bdf")

# Read file from AWS
env = AWSEnv(xxx)
bkt = "xxx"
fle2 = "BDFtestfiles/Newtest17-2048.bdf"
resp = S3.get_object(env, bkt, fle2);
dats2, evtTab2, trigs2, statusChan2 = readBdf(resp.obj)

# Do the files match
println(isequal(dats, dats2))
>>> true
sam81 commented 10 years ago

Merged, thanks! I haven't had the time to test it but I trust your test results.