-
Notifications
You must be signed in to change notification settings - Fork 15
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
make 1D variable with an unlimited dimensions behave in the same way as 2D variables #124
Conversation
Ok that makes sense, it was trying to handle linear indices on a vector. Maybe @meggart knows the background here. Can you write a test so we dont break this again? |
Good idea! Would it be ok to add NetCDF.jl as a test dependency? I am not sure how to create such array using only DiskArrays. |
There is a |
OK, I just added the test. Without commit 76152b8, I checked that the test reproduces the failure in the function |
Looks good! Thanks for adding that. Would it make sense to explicitly test 2d arrays there too? |
Thanks a lot. As you @rafaqz mentioned there was a special method for linear indexing into multidimensional arrays and in this case it was taking over linear indexing into 1D arrays as well. Looks good to me. |
OK, I just added a 2d array. |
This solves issue #123 for NetCDF.jl and NCDatasets.jl