Skip to content

Conversation

@Teque5
Copy link
Collaborator

@Teque5 Teque5 commented Dec 24, 2025

Overdue fix that makes memory slices match read_samples behavior in all cases.

Currently blocked by PR #116.

Closes issue #60.

Introduces a breaking API change to rarely used kwargs (autoscale and raw_components) from SigMFFile.read_samples(). As such I also increment minor version.

* When reading from a SigMF (.sigmf) archive, slicing and reading entire file worked, but not reading specific sample count
* add test for archive read_samples and refactor related tests
* Make slicing equivalent to reading for integer types
* e.g. meta[0:10] == meta.read_samples(count=10)
* Breaking API Change: autoscale and raw_components parameters removed from read methods
* Move autoscale configuration from method parameters to SigMFFile constructor
* Remove already deprecated raw_components parameter from all methods
* Update read_samples() and read_samples_in_capture() to use instance autoscale setting
* Add autoscale support to fromfile(), fromarchive(), and SigMFArchiveReader
* Simplify __getitem__ with unified scaling behavior for consistency
* increment minor version
@Teque5 Teque5 self-assigned this Dec 24, 2025
@Teque5 Teque5 added the enhancement New feature or request label Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants