audeering / audbcards

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

Add file duration distribution to data card #48

Closed hagenw closed 9 months ago

hagenw commented 9 months ago

This adds information on the file durations to the file header row of the data card. It shows the minimum duration, maximum duration, and an inline distribution plot of all durations, e.g.

image

This is achieved by adding the property audbcards.Datacard.file_duration_distribution, that can be accessed in the templates via file_duration_distribution.

The idea was first presented in https://github.com/audeering/datasets/pull/5, which can be replaced by the implementation provided here.