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.
See the repository for information about the default features and how to use this crate with Cargo.
Limitations
-
Parsing of
.npy
files is currently limited to files where thedescr
field of the header dictionary is a Python string literal of the form'string'
,"string"
,'''string'''
, or"""string"""
. -
WritableElement
andReadableElement
are 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 |