test_operations
Comprehensive tests for gwframe operations module.
TestCombineChannels ¶
Tests for combine_channels operation.
test_combine_directories ¶
Test combining channels from multiple directories with matching frames.
Source code in gwframe/tests/test_operations.py
test_combine_two_files ¶
Test combining channels from two files.
Source code in gwframe/tests/test_operations.py
test_combine_with_keep_channels ¶
Test combining with channel filtering (keep).
Source code in gwframe/tests/test_operations.py
TestDropChannels ¶
Tests for drop_channels operation.
test_drop_multiple_channels ¶
Test dropping different numbers of channels.
Source code in gwframe/tests/test_operations.py
test_drop_single_channel ¶
Test dropping a single channel.
Source code in gwframe/tests/test_operations.py
TestImputeMissingData ¶
Tests for impute_missing_data operation.
test_impute_different_values ¶
test_impute_different_values(tmp_path, sample_data, create_test_frame, replace_value, fill_value, input_data, expected_data)
Test imputing different replacement and fill values.
Source code in gwframe/tests/test_operations.py
test_impute_nan_values ¶
Test imputing NaN values with zeros.
Source code in gwframe/tests/test_operations.py
TestRecompressFrames ¶
Tests for recompress_frames operation.
test_recompress_different_settings ¶
Test recompressing with different compression settings.
Source code in gwframe/tests/test_operations.py
TestRenameChannels ¶
Tests for rename_channels operation.
test_rename_input_types ¶
Test rename with different input types.
Source code in gwframe/tests/test_operations.py
test_rename_single_file ¶
Test renaming channels in a single file.
Source code in gwframe/tests/test_operations.py
TestReplaceChannels ¶
Tests for replace_channels operation.
test_replace_channel_data ¶
Test replacing channel data from another file.
Source code in gwframe/tests/test_operations.py
TestResizeFrames ¶
Tests for resize_frames operation.
test_resize_no_split ¶
Test that frames are kept when target duration >= source duration.
Source code in gwframe/tests/test_operations.py
test_resize_preserve_data ¶
Test that resizing preserves data values.
Source code in gwframe/tests/test_operations.py
test_resize_split_frames ¶
Test splitting frames into smaller duration.
Source code in gwframe/tests/test_operations.py
create_test_frame ¶
Factory fixture to create test frames with specified channels.
Source code in gwframe/tests/test_operations.py
multi_frame_file ¶
Create a multi-frame GWF file for testing.
Source code in gwframe/tests/test_operations.py
multiple_files ¶
Create multiple GWF files for testing operations that work on file sets.
Source code in gwframe/tests/test_operations.py
sample_data ¶
single_frame_file ¶
Create a single-frame GWF file for testing.