Module npy

Source
Expand description

Reading and writing in the numpy npy format.

The npy format is described here. Only a subset required to read/write SFS is supported. Only simple type descriptors for the basic integer and float types are supported. In addition, only reading/writing C-order is supported; trying to read a Fortran-order npy file will result in a run-time error.

Functionsยง

read_array
Reads an array in npy format from a reader.
write_array
Writes an array in npy format to a writer.