Closed povik closed 2 years ago
According to https://github.com/gnuradio/SigMF/pull/154/files the idea of these changes is correct.
Works for me. It's a bit sad that we have to remove all annotations which have their start before the first sample. Supporting that would require larger changes to the code base though.
It's a bit sad that we have to remove all annotations which have their start before the first sample.
Annotations like that are actually disallowed in the current wording of the spec, although I would rather they were not.
@povik any thoughts about my suggested change above?
Seems like an improvement. Let me take up the change.
The sample indices of a SigMF annotation include a global recording offset. Remove it to correctly handle annotations in recordings with non-zero offset.
(I asked in the SigMF spec repo to confirm this is the correct treatment of indices, see here)