tests.recipes.cpc1.baseline package

Submodules

tests.recipes.cpc1.baseline.test_compute_scores module

Tests for cpc1 compute_scores module

tests.recipes.cpc1.baseline.test_compute_scores.hydra_cfg()[source]

Fixture for hydra config.

tests.recipes.cpc1.baseline.test_compute_scores.test_run(hydra_cfg)[source]

Test run function.

tests.recipes.cpc1.baseline.test_run module

Tests for cpc1 run module

tests.recipes.cpc1.baseline.test_run.hydra_cfg()[source]

Fixture for hydra config.

tests.recipes.cpc1.baseline.test_run.not_tqdm(iterable)[source]

Replacement for tqdm that just passes back the iterable.

Useful for silencing tqdm in tests.

tests.recipes.cpc1.baseline.test_run.test_calculate_SI(hydra_cfg, tmp_path)[source]

Test calculate_SI function.

tests.recipes.cpc1.baseline.test_run.test_listen(hydra_cfg)[source]

Test listen function.

tests.recipes.cpc1.baseline.test_run.test_run(mock_calculate_SI, mock_run_HL_processing, hydra_cfg)[source]

Test run function.

tests.recipes.cpc1.baseline.test_run.test_run_HL_processing(hydra_cfg, tmp_path)[source]

Test run_HL_processing function.

tests.recipes.cpc1.baseline.test_run.truncated_read_signal(filename: str | Path) np.ndarray[source]

Replacement for wavfile read signal function.

Returns first 1 second of the signal

Module contents