Add option to set birdnet app data manually - #37
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for overriding BirdNET’s application-data directory via an environment variable, enabling users to place downloaded models/benchmarks in a custom location (useful for deployments with restricted home directories or shared storage).
Changes:
- Introduce
BIRDNET_APP_DATA(ENV_VAR_APP_DATA) as a global constant. - Update app-data resolution to prefer
BIRDNET_APP_DATAwhen set. - Document the override mechanism in the setup/FAQ docs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/birdnet/utils/local_data.py |
Adds env-var-based override for the computed application data folder. |
src/birdnet/globals.py |
Defines the BIRDNET_APP_DATA env var constant. |
docs/setup.rst |
Documents how to set BIRDNET_APP_DATA on Windows and Linux/macOS. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
stefantaubert
approved these changes
May 9, 2026
stefantaubert
added a commit
that referenced
this pull request
May 9, 2026
* Fix issue 32 (#35) * fix table * fix issue 32 * rm accident * bump version * Fixing mac issues (#40) * Fixing mac issues * fix issue --------- Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de> Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues (#43) * Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues * add fix for issue 38 * add comment for current limitation --------- Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * Add option to set birdnet app data manually (#37) * Add option to set birdnet app data manually * update with copilot suggestions * add entry in changelog --------- Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * bump version --------- Co-authored-by: Josef Haupt <josef_haupt@gmx.net> Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de> Co-authored-by: Felix Günther <guenther@oekofor.de>
stefantaubert
added a commit
that referenced
this pull request
May 9, 2026
* Fix issue 32 (#35) * fix table * fix issue 32 * rm accident * bump version * Fixing mac issues (#40) * Fixing mac issues * fix issue --------- Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de> Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues (#43) * Upcast timing columns to float32 in Arrow export to avoid halffloat interop issues * add fix for issue 38 * add comment for current limitation --------- Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * Add option to set birdnet app data manually (#37) * Add option to set birdnet app data manually * update with copilot suggestions * add entry in changelog --------- Co-authored-by: Stefan Taubert <23339395+stefantaubert@users.noreply.github.com> * bump version --------- Co-authored-by: Josef Haupt <josef_haupt@gmx.net> Co-authored-by: Stefan Kahl <kahst@hrz.tu-chemnitz.de> Co-authored-by: Felix Günther <guenther@oekofor.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.