audeering / audformat

Format to store media files and annotations
https://audeering.github.io/audformat/
Other
11 stars 1 forks source link

Support loading db with splits in misc tables #416

Closed hagenw closed 8 months ago

hagenw commented 8 months ago

It was possible to assign splits to misc tables before and also to store those databases. But when trzing to load a database with a misc table that has a split assigned, loading failed as the splits objects were loaded after the misc tables were loaded.

This pull request adds a test for loading a database with a misc table that has a split assigned. This tests fails for the current master. The needed fix is then added to the code of audformat.Database.load().

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5dcf78e) 100.0% compared to head (1a78d56) 100.0%.

Additional details and impacted files | [Files](https://app.codecov.io/gh/audeering/audformat/pull/416?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering) | Coverage Δ | | |---|---|---| | [audformat/core/database.py](https://app.codecov.io/gh/audeering/audformat/pull/416?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering#diff-YXVkZm9ybWF0L2NvcmUvZGF0YWJhc2UucHk=) | `100.0% <100.0%> (ø)` | |