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

audb.load_to() does not load all attachments #313

Closed
hagenw opened this issue Jul 14, 2023 · 2 comments
Closed

audb.load_to() does not load all attachments #313

hagenw opened this issue Jul 14, 2023 · 2 comments
Labels
bug Something isn't working invalid This doesn't seem right load

Comments

@hagenw
Copy link
Member

hagenw commented Jul 14, 2023

If a database has several attachments (in this case all attached as folders, haven't checked the case of single files yet), and is loaded with audb.load_to('build/', ...) it might happen that not all attachments are loaded.

Assume the following entry in the db.yaml header:

attachments:
  a-a: {description: 'Attachment a-a', path: a/a/}
  a-b: {description: 'Attachment a-b', path: a/b/}
  b-a: {description: 'Attachment b', path: b/a/}
  c-a: {description: 'Attachment c', path: c/a/}

The expected directory tree of the attachments after loading them would be:

build/
  a/
    a/
      file-a-a-1
      file-a-a-2
    b/
      file-a-b-1
      file-a-b-2
  b/
    a/
      file-b-a-1
      file-b-a-2
  c/
    a/
      file-c-a-1
      file-c-a-2

Instead what we get is

build/
  a/
    a/
      file-a-a-1
      file-a-a-2
    b/
      file-a-b-1
      file-a-b-2

So it is only loading two of the four attachments.

@hagenw hagenw added the bug Something isn't working label Jul 14, 2023
@hagenw
Copy link
Member Author

hagenw commented Jul 14, 2023

I tested with num_workers=8 and num_workers=1, result is the same.

@hagenw
Copy link
Member Author

hagenw commented May 28, 2024

I tried to replicate this error in #421, but did not suceed.

@hagenw hagenw added the invalid This doesn't seem right label May 28, 2024
@hagenw hagenw closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right load
Projects
None yet
Development

No branches or pull requests

1 participant