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

Example seems broken #124

Closed
faroit opened this issue May 18, 2020 · 2 comments
Closed

Example seems broken #124

faroit opened this issue May 18, 2020 · 2 comments

Comments

@faroit
Copy link
Contributor

faroit commented May 18, 2020

I am runnning the example in the readme using python 3.6, adjusting the paths:

import audiomate
from audiomate.corpus import io

# Download a dataset
esc_downloader = io.ESC50Downloader()
esc_downloader.download('esc')

# Load and work with the dataset
esc50 = audiomate.Corpus.load('esc', reader='esc-50')

# e.g. Read the audio signal and the label of specific sample/utterance
utterance = esc50.utterances['1-100032-A-0']
samples = utterance.read_samples()
label = utterance.label_lists[audiomate.corpus.LL_SOUND_CLASS][0].value

While the download worked without problems, retrieving labels resulted in an error:

Traceback (most recent call last):
  File "test.py", line 14, in <module>
    label = utterance.label_lists[audiomate.corpus.LL_SOUND_CLASS][0].value
TypeError: 'LabelList' object does not support indexing
@faroit
Copy link
Contributor Author

faroit commented May 18, 2020

This issue should be fixed as part of the audiomate JOSS review openjournals/joss-reviews#2135

@ynop ynop closed this as completed in 5f3847a May 18, 2020
@faroit
Copy link
Contributor Author

faroit commented May 18, 2020

great! that works!

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