-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file["varname"]
and file[:varname]
interface?
#30
Comments
This seems reasonable to me. It's also possible we might want to use this syntax for an interface that allows incremental reading/writing of datasets, analogous to what HDF5 (and MATLAB's |
Not sure how that would play together, though. |
Can we get both without ambiguity?
|
My guess was that to achieve this, we need another family of proxy-types for |
I figure my issues falls into this category. I was hoping I could read mat = matopen("myfile.mat")
mat.plain["data"][:, :, :, 1] but get the following error: ERROR: Dataset indexing (hyperslab) is available only for bits types
Stacktrace:
[1] _getindex(::HDF5.HDF5Dataset, ::Type{T} where T, ::UnitRange{Int64}, ::Vararg{Union{Int64, Range{Int64}},N} where N) at .julia/v0.6/HDF5/src/HDF5.jl:1682
[2] getindex(::HDF5.HDF5Dataset, ::UnitRange{Int64}, ::UnitRange{Int64}, ::UnitRange{Int64}, ::Int64, ::Vararg{Int64,N} where N) at .julia/v0.6/HDF5/src/HDF5.jl:1678
[3] getindex(::HDF5.HDF5Dataset, ::Colon, ::Colon, ::Colon, ::Int64, ::Vararg{Int64,N} where N) at .julia/v0.6/HDF5/src/HDF5.jl:1747 There are no issues reading via |
Shoot delving into the issue, this is a reading a matrix of complex numbers |
I just found myself intuitively expecting that, probably because I'm used to it from scipy io and jsoncpp.
Would you want a PR for that, or is it too non-Julian? (Or is there a caveat which I'm not seeing?)
The text was updated successfully, but these errors were encountered: