io_improvement #7

Merged
madrigal merged 3 commits from io_improvement into main 2025-10-22 11:16:19 -04:00
Showing only changes of commit 4420ae76c9 - Show all commits

View File

@ -163,11 +163,11 @@ def test_sigmf_2(tmp_path):
annotations = [annotation1, annotation2]
recording1 = Recording(data=complex_data_1, metadata=sample_metadata, annotations=annotations, overwrite=True)
recording1 = Recording(data=complex_data_1, metadata=sample_metadata, annotations=annotations)
# Save to tmp_path using the base name
filename = tmp_path / "test"
to_sigmf(recording=recording1, path=tmp_path, filename=filename.name)
to_sigmf(recording=recording1, path=tmp_path, filename=filename.name, overwrite=True)
# Load from tmp_path; from_sigmf expects the base name
recording2 = from_sigmf(filename)