Crate ndarray_npy [−] [src]
This crate provides methods to read/write ndarray's ArrayBase type
from/to .npy and .npz files.
See ReadNpyExt and WriteNpyExt for reading/writing .npy files.
See NpzReader and NpzWriter for reading/writing .npz files.
Limitations
-
Parsing of
.npyfiles is currently limited to files where thedescrfield of the header dictionary is a Python string literal of the form'string',"string",'''string''', or"""string""". -
WritableElementandReadableElementare currently implemented only for fixed-size integers and floating point numbers.
The plan is to add support for more element types (including custom user-defined structs) in the future.
Structs
| NpzReader |
Reader for |
| NpzWriter |
Writer for |
Enums
| ReadNpyError |
An error reading a |
| ReadNpzError |
An error reading a |
| WriteNpyError |
An error writing a |
| WriteNpzError |
An error writing a |
Traits
| ReadNpyExt |
Extension trait for reading |
| ReadableElement |
An array element type that can be read from an |
| WritableElement |
An array element type that can be written to an |
| WriteNpyExt |
Extension trait for writing |