Skip to content

v1.4.0 Unified Sample Access

Choose a tag to compare

@Teque5 Teque5 released this 08 Jan 19:05
· 11 commits to main since this release
ef0d8ce

New ways to use SigMF

When accessing samples from sigmf files samples returning from a direct read and a slice always yield the same result:

import sigmf
meta = sigmf.fromfile('some_archive.sigmf')
# equivalent methods
meta[:] == meta.read_samples()
meta[0:1024] == meta.read_samples(count=1024)
meta[3:13] == meta.read_samples(start_index=3, count=10)

Integer datatypes are now always scaled such that the min/max is -1/1. If raw values are desired then set autoscale=False when doing fromfile():

meta = sigmf.fromfile('some_archive.sigmf', autoscale=False)
# still equivalent:
meta[0:10] == meta.read_samples(count=10)

What's Changed

Full Changelog: v1.3.0...v1.4.0