Skip to main content

read_array

Function read_array 

Source
pub fn read_array<R: Read>(reader: &mut R) -> FerrayResult<DynArray>
Expand description

Read an .npy-formatted array from reader and return it as a DynArray.

Standalone equivalent of numpy.lib.format.read_array. Internally delegates to crate::npy::load_dynamic_from_reader.

ยงErrors

Returns errors from the underlying NPY parser (bad magic, dtype mismatch, truncated stream, etc.).