Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header as returned by audb.info.header() fails for __eq__() #391

Open
hagenw opened this issue Apr 26, 2024 · 0 comments
Open

Header as returned by audb.info.header() fails for __eq__() #391

hagenw opened this issue Apr 26, 2024 · 0 comments

Comments

@hagenw
Copy link
Member

hagenw commented Apr 26, 2024

When loading the header in an empty cache, and check if the object is equal to another header object (in this case the same)

import audb

header = audb.info.header("emodb", version="1.4.1", cache_root="./cache")
header == header

it fails with

...
RuntimeError: No file found for table with path '.../emodb/1.4.1/db.emotion.{pkl|csv}'

The reason is that the header is a audformat.Database object, but not all parts of the database are loaded, so we cannot call __eq__(). As a workaround we can do:

str(header) == str(header)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant