audeering / audbcards

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

Dataset.publication_owner can return unexpected value #93

Open hagenw opened 2 months ago

hagenw commented 2 months ago

For most datasets I have tested audbcards.Dataset.publication_owner it works as expected.

But for crema-d it behaves strange:

>>> import audbackend
>>> audbackend.__version__
'2.0.1'
>>> backend = audbackend.backend.Artifactory('https://audeering.jfrog.io/artifactory', 'data-public')
>>> maven = audbackend.interface.Maven(backend)
>>> # Expected owner
>>> with backend:
...     print(maven.owner("/crema-d/db.yaml", "1.3.0"))
audeering
>>> import audeer
>>> cache_root = audeer.path("cache")
>>> audeer.rmdir(cache_root)
>>> _ = audeer.mkdir(cache_root)
>>> import audbcards
>>> audbcards.__version__
'0.2.0'
>>> ds = audbcards.Dataset("crema-d", "1.3.0", cache_root=cache_root)
>>> ds.publication_owner
'_system_'

Even though the code executed by audbcards.Dataset.publication_owner is identical to what I did above using audbackend:

https://github.com/audeering/audbcards/blob/75e27c55961dd628cb25a97e8451f6277705e7ad/audbcards/core/dataset.py#L286-L291

/cc @ChristianGeng

hagenw commented 2 months ago

The issue exists only for our public repository, not for our internal repositories.