test_compare
Tests for the gwframe.compare module.
TestCompareChannels ¶
Channel set handling.
TestCompareData ¶
Sample data comparison.
TestCompareFilesIdentical ¶
Comparison of identical files.
TestCompareMasks ¶
Mask (dataValid) comparison.
TestCompareMetadata ¶
Per-channel metadata comparison.
TestComparePaths ¶
Directory and path-level comparison.
dir_pair ¶
Two directories with matching files (different names).
Source code in gwframe/tests/test_compare.py
shifted_pair ¶
The same six 1 s frames, cut into files at different boundaries.
Source code in gwframe/tests/test_compare.py
test_file_vanished_during_compare ¶
File deleted from retention between pairing and reading.
Source code in gwframe/tests/test_compare.py
test_file_vanished_during_keying ¶
File deleted from retention between directory listing and keying.
Source code in gwframe/tests/test_compare.py
test_kwargs_forwarded ¶
Tolerances propagate to per-file comparison in directory mode.
Source code in gwframe/tests/test_compare.py
test_pairing_is_content_based ¶
A data mismatch is attributed to the time-matched pair.
Source code in gwframe/tests/test_compare.py
TestCompareStructure ¶
Frame structure comparison.
test_offset_frames_paired_by_span ¶
Files sharing one span pair correctly even at different indices.
Source code in gwframe/tests/test_compare.py
base_data ¶
write_file ¶
Write a GWF file from a list of {channel: array-or-(array, kwargs)}.