Skip to main content

read_samples

Function read_samples 

Source
pub fn read_samples(
    path: impl AsRef<Path>,
    datatype: Option<Datatype>,
    channel: usize,
) -> Result<Samples>
Expand description

Read samples from a SigMF recording (.sigmf-meta, .sigmf-data, .sigmf), an NPY array (.npy) or a raw file of the given data type: the samples of channel and the sampling rate when the file records it.

ยงErrors

Error::Config for a raw file without a data type, or a channel that the recording does not have; the errors of the readers.