sigmf-python
sigmf-python copied to clipboard
SigMFile data_file is None from archive
SigMFFile member data_file is None when creaeting a SigMFFile from archive. This ends up raising an exception when calling get_capture_byte_boundarys due to calling path.getsize with None.
https://github.com/sigmf/sigmf-python/blob/bd260606e72dde3526bab4d30a97cc7608b1f161/sigmf/sigmffile.py#L390
I don't know if there are other cases.
data_file being None probably leads to sample_count=0 as well, which triggers an end of file error in read_samples if count is not -1.
For sigmf==1.1.5, reading archives works fine with data_file and sample_count set correctly.
For sigmf==1.2.10, reading archives results in data_file=None and sample_count=0.