Closed samuelbryant closed 3 years ago
Is this using hdf5
from the master branch? 0.7.1 is still only ndarray
0.14: https://crates.io/crates/hdf5/0.7.1/dependencies
I tried using 0.7.1 and 0.7.0 with ndarray 0.13, 0.14, and 0.15.
Wait I'm sorry. I tried using 0.15 and 0.13. Apparently 0.14 does in fact work. Thank you for the help.
When I tried to run the code in
example.rs
using the exact same dependencies as the master project itself (namelyhdf5 = "0.7.1"
andndarray = "0.15"
), it spits out the errors:I checked whether this would work because I am getting the same sort of error in my own code. In my own code I am getting something that seems non-sensical. Here are two snippets of code which seem to contradict each other:
Code Snippet 1
Both the
dataset.write
line andlet ab2: ...
trigger the same error:Which is fine... I guess they can't convert from a reference to owned data to the owned data itself without copying so that makes sense. But then when you try passing the object directly, it works in the first case but not the second case:
Code Snippet 2
Now the first line "let ab2: ArrayBase...." runs fine. But now the
dataset.write
line is complaining thatHuh? This is extremely confusing. It seems like there are two trait bounds which appear mututally exclusive? Maybe I'm just being thick. I really don't understand what this
write
function is looking for.