Module npy

Module npy 

Source
Expand description

Reading and writing for SFS in the numpy npy format.

The npy format is described here. Only a subset required to read/write an 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_sfs
Reads an SFS in npy format from a reader.
read_sfs_from_path
Reads an SFS in npy format from a file path.
write_sfs
Writes an SFS in npy format to a writer.
write_sfs_to_path
Writes an SFS in npy format to a file path.