You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use npy::NpyData;use npy::Serializable;#[derive(npy_derive::Serializable)]#[derive(Debug,PartialEq)]structArray23{field:[[i32;3];2],}fnmain(){println!("{}", <Array23asSerializable>::dtype().descr());}
[('field', '<i4', (3,2,)), ]
Observe that the outer dimension of 2 comes last in the output.
(Thankfully, saving a file still writes the correct number of total elements... it's just that, if you read the file in numpy, it'll turn into a 3x2 array)
A fix for this will be included in #15 since it completely replaces the Serializable trait.
The text was updated successfully, but these errors were encountered:
ExpHP
linked a pull request
Jun 6, 2019
that will
close
this issue
Observe that the outer dimension of 2 comes last in the output.
(Thankfully, saving a file still writes the correct number of total elements... it's just that, if you read the file in numpy, it'll turn into a 3x2 array)
A fix for this will be included in #15 since it completely replaces the Serializable trait.
The text was updated successfully, but these errors were encountered: