forked from sigmf/sigmf-python
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix count samples from annotations (sigmf#47)
Fixed two scenarios where SigMFFile._count_samples() failed: * No data_file registered: sample_count should be calculated from annotation with highest end index, not from annotation with highest start index * If no core:sample_count is provided in the annotation, core:sample_start should be used (sample count must at least be equal to this) --------- Co-authored-by: messybear <messybear@thatsmessy.net>
- Loading branch information
1 parent
7c979a4
commit 1386965
Showing
2 changed files
with
97 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters