From 674d395b5b01e33508e049a217fee50082d457c3 Mon Sep 17 00:00:00 2001 From: Loann Peurey Date: Tue, 31 Oct 2023 12:07:06 +0100 Subject: [PATCH] tests updated for new metrics --- tests/test_metrics.py | 6 ++---- tests/truth/peak_metrics.csv | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/test_metrics.py b/tests/test_metrics.py index a188fdd1..b56c9324 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -301,13 +301,11 @@ def test_metrics_peaks(project, am): [["voc_speaker", "peak_vtc", 'FEM', pd.NA], ["voc_speaker", "peak_vtc", 'CHI', pd.NA], ["peak_voc_speaker", "peak_vtc", 'FEM', 1000], - ["peak_voc_speaker", "peak_vtc", 'CHI', 1000], + ["peak_voc_speaker", "peak_vtc", 'CHI', 3600000], ["voc_speaker_ph", "peak_vtc", 'FEM', pd.NA], ["voc_speaker_ph", "peak_vtc", 'CHI', pd.NA], - ["peak_voc_speaker_ph", "peak_vtc", 'FEM', 1000], - ["peak_voc_speaker_ph", "peak_vtc", 'CHI', 1000], ["wc_adu_ph", "peak_alice", pd.NA, pd.NA], - ["peak_wc_adu_ph", "peak_alice", pd.NA, 1000], + ["peak_wc_adu", "peak_alice", pd.NA, 1000], ["simple_CTC", "peak_vtc", pd.NA, pd.NA], ["peak_simple_CTC", "peak_vtc", pd.NA, 1000], ]), columns=["callable", "set", "speaker", "period_time"]) diff --git a/tests/truth/peak_metrics.csv b/tests/truth/peak_metrics.csv index b25fc826..c362f144 100644 --- a/tests/truth/peak_metrics.csv +++ b/tests/truth/peak_metrics.csv @@ -1,3 +1,3 @@ -recording_filename,child_id,duration_peak_alice,wc_adu_ph,peak_wc_adu_ph,duration_peak_vtc,voc_fem,voc_chi,peak_voc_fem,peak_voc_chi,voc_fem_ph,voc_chi_ph,peak_voc_fem_ph,peak_voc_chi_ph,simple_CTC,peak_simple_CTC -sound.wav,1,4000,7200.0,7200.0,4000,8.0,20.0,2.0,5.0,7200.0,18000.0,7200.0,18000.0,16.0,4.0 -sound2.wav,1,0,,,0,,,,,,,,,, +recording_filename,child_id,duration_peak_alice,wc_adu_ph,peak_wc_adu,duration_peak_vtc,voc_fem,voc_chi,peak_voc_fem,peak_voc_chi,voc_fem_ph,voc_chi_ph,simple_CTC,peak_simple_CTC +sound.wav,1,4000,7200,2,4000,8,20,2,,7200,18000,16,4 +sound2.wav,1,0,,,0,,,,,,,,