Skip to content

Commit e6b7423

Browse files
committed
enforce checksum in normal mode
1 parent eff84a2 commit e6b7423

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sigmf/convert/wav.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def wav_to_sigmf(
164164
# handle NCD case where no output files are created
165165
if create_ncd and out_path is None:
166166
# create metadata-only SigMF for NCD pointing to original file
167-
meta = SigMFFile(global_info=global_info, skip_checksum=True)
168-
meta.set_data_file(data_file=wav_path, offset=header_bytes, skip_checksum=True)
167+
meta = SigMFFile(global_info=global_info)
168+
meta.set_data_file(data_file=wav_path, offset=header_bytes)
169169
meta.data_buffer = io.BytesIO()
170170
meta.add_capture(0, metadata=capture_info)
171171
log.debug("created NCD SigMF: %r", meta)
@@ -197,6 +197,7 @@ def wav_to_sigmf(
197197
# metadata returned should be for this archive
198198
meta = fromfile(filenames["archive_fn"])
199199
else:
200+
# write separate meta and data files
200201
data_path = filenames["data_fn"]
201202
wav_data.tofile(data_path)
202203

0 commit comments

Comments
 (0)