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.

@Teque5 Teque5 self-assigned this Dec 24, 2025
@Teque5 Teque5 added the enhancement New feature or request label Dec 24, 2025
@Teque5 Teque5 mentioned this pull request Jan 2, 2026
2 tasks
* 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 force-pushed the feature/unify-sample-access branch from eb0555a to 4e889b6 Compare January 5, 2026 23:07
@Teque5 Teque5 marked this pull request as ready for review January 5, 2026 23:09
@Teque5 Teque5 merged commit ef0d8ce into main Jan 5, 2026
8 checks passed
@Teque5 Teque5 deleted the feature/unify-sample-access branch January 5, 2026 23:11
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.

3 participants