audeering / audbcards

Data cards for audio datasets
https://audeering.github.io/audbcards/
Other
0 stars 0 forks source link

Handle datasets with a fixed file duration #73

Closed hagenw closed 3 months ago

hagenw commented 3 months ago

We are creating plots showing the duration distribution for the files in a dataset, e.g.

image

When a dataset contains only files with the same duration, we are getting the following warning during building the HTML page:

UserWarning: Dataset has 0 variance; skipping density estimate. Pass `warn_singular=False` to disable this warning.

and the resulting plot looks like this:

image

I think, we should maybe not try to create a plot in this case and present the result differently, e.g.

| files | 60, all have a duration of 600.0 s |