Skip to content

ENH: Add examples module with example function, use pooch, adapt from librosa #33

Closed

Description

@NickleDave
  • I don't want to take the namespace data (scikit-image) or datasets (scikit-learn), might need these later
  • I prefer the librosa.example approach
  • but I don't see a need to hide it in a sub-package like librosa.util.files right now
  • I want to include a handful of files in the package, but
  • Probably we should just go ahead and use pooch and be able to grab entire datasets later

so:

Activity

  1. added
    ENH: enhancement
    on May 9, 2023
  2. self-assigned this
    on May 9, 2023
  3. NickleDave commented on Jan 19, 2024

    @NickleDave
    ContributorAuthor

    Thinking more about API, and also ability to cite.
    We want to get back things we can work with right away.
    But we also want to give people credit.
    I think we should have a name with associated metadata, but when you pass in the name, you get back Audio/Spectrogram/Annotations etc immediately

    >>> import vocalpy as voc
    >>> voc.examples.list()
    {
        'bells.wav' : 'Zebra finch song from Sound Analysis Pro website ()',
        ...
    }
    >>> audio = voc.example('bells.wav')
    >>> print(audio)
    Audio(data=...)
    
  4. NickleDave commented on Jan 19, 2024

    @NickleDave
    ContributorAuthor

    I didn't find built-in examples in warbleR per se but it looks like Marcelo has this package:
    https://github.com/maRce10/NatureSounds
    https://marce10.github.io/NatureSounds/reference/index.html
    I think we should convert these to audio (rdata will help) and then add with citation.

  5. added 2 commits that reference this issue on Jan 20, 2024
    48c5c31
    8abb3f5
  6. added a commit that references this issue on Jan 29, 2024
    d58d43f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ENH: enhancement

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions