IPS-LMU / emuR

The main R package for the EMU Speech Database Management System (EMU-SDMS)
http://ips-lmu.github.io/EMU.html
23 stars 15 forks source link

Miss-leading error message when extracting tracks for an empty segment list #243

Closed FredrikKarlssonSpeech closed 3 years ago

FredrikKarlssonSpeech commented 3 years ago

I just noticed this (using the ae dmo database):

> query(ae,"Phonetic=a") -> a
> afm <- get_trackdata(ae,a,"fm")

  INFO: parsing 0 fms segments/events
Error in utils::txtProgressBar(min = 0, max = nrow(seglist), style = 3) : 
  must have 'max' > 'min'
In addition: Warning message:
In get_trackdata(ae, a, "fm") :
  The emusegs/emuRsegs object passed in refers to bundles with in-homogeneous sampling rates in their audio files! Here is a list of all refered to bundles incl. their sampling rate: 
[1] session        name           annotates      sample_rate    md5_annot_json
<0 rows> (or 0-length row.names)

I am using emuR 2.1.1, in case this has been fixed already.

raphywink commented 3 years ago

Thanks! Just implemented an explicit check + error