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

Remove exceptions from birdsongrec.py #254

Merged
merged 1 commit into from
May 18, 2023

Conversation

NickleDave
Copy link
Collaborator

This removes NotADirectory and FileNotFound errors raised by birdsongrec2annot when wavpath doesn't exist or it can't find the wav files in the specified wavpath, respectively.

My intent was to make sure the files were there, if something else depended on them.
But this prevents someone from accessing the annotations if they don't have the wav files. Which is the opposite of the point of this package.

It also requires extra logic from a downstream library -- e.g. I'm hitting these errors in vak right now because I'm trying to open the annotation file inside a directory where I don't have (and don't want to have) the wav files -- I'm using the annotations with spectrograms generated from the audio.

So this removes the errors -- they're more trouble than they're worth. Will do the same in the current version, but vak still depends on 3.4.x

This removes NotADirectory and FileNotFound errors raised by
`birdsongrec2annot` when `wavpath` doesn't exist or it can't find
the wav files in the specified `wavpath`, respectively.

My intent was to make sure the files were there,
if something else depended on them.
But this prevents someone from accessing the annotations
if they don't have the wav files.
Which is the opposite of the point of this package.
@NickleDave NickleDave merged commit 3500c19 into maintenance/3.4.x May 18, 2023
@NickleDave NickleDave deleted the remove-birdsongrec-exceptions branch May 18, 2023 16:38
NickleDave added a commit that referenced this pull request May 18, 2023
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

Successfully merging this pull request may close these issues.

1 participant