sigmf / sigmf-python

Easily interact with Signal Metadata Format (SigMF) recordings.
https://sigmf.org
GNU Lesser General Public License v3.0
42 stars 16 forks source link

Getting one sample vs slice from a sigmf file #25

Closed bebau closed 10 months ago

bebau commented 1 year ago

Suppose I do

import sigmf
a = sigmf.sigmffile.fromfile("example")

If I begin slicing rather than using the built in read_samples, I receive a seemingly valid numpy array unless I want just one element, in which case it fails. Should probably be consistent between array slices and single indices.

image