Skip to content

Commit

Permalink
tests updated for new metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LoannPeurey committed Oct 31, 2023
1 parent f846c83 commit 674d395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
6 changes: 3 additions & 3 deletions tests/truth/peak_metrics.csv
Original file line number Diff line number Diff line change
@@ -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,,,,,,,,

0 comments on commit 674d395

Please sign in to comment.