id3c.tests.test_write_flyscan_data#

Tests for id3c.utils.flyscan_3idc_analysis.write_flyscan_data.

Verifies the on-disk /entry/flyscan_data layout, the virtual dataset selection, the provenance attributes, and idempotency. Synthetic AD file + a hand-built paired DataFrame; no IOC, no catalog.

Functions#

test_writes_expected_layout(tmp_path)

All datasets and group attributes are present and correct.

test_virtual_dataset_selects_correct_frames(tmp_path)

The virtual 'data' maps frame_index into the source stack.

test_idempotent_rewrite(tmp_path)

Writing twice replaces the group without error.

test_n_frames_expected_omitted_when_none(tmp_path)

No n_frames_expected attribute when the argument is None.

Module Contents#

id3c.tests.test_write_flyscan_data.test_writes_expected_layout(tmp_path)[source]#

All datasets and group attributes are present and correct.

id3c.tests.test_write_flyscan_data.test_virtual_dataset_selects_correct_frames(tmp_path)[source]#

The virtual ‘data’ maps frame_index into the source stack.

id3c.tests.test_write_flyscan_data.test_idempotent_rewrite(tmp_path)[source]#

Writing twice replaces the group without error.

id3c.tests.test_write_flyscan_data.test_n_frames_expected_omitted_when_none(tmp_path)[source]#

No n_frames_expected attribute when the argument is None.