Closed tphakala closed 2 weeks ago
The recent changes introduce and enhance range filtering capabilities in the BirdNET-Go application. The updates include new commands for printing and managing range filters, modifications to the way species scores are handled and displayed, and improvements to the internal logic for determining probable species. These enhancements aim to provide more detailed and user-friendly output for BirdNET range filter results.
Files | Summary |
---|---|
cmd/rangefilter/print.go |
Introduced PrintCommand for printing BirdNET range filter results and added GetCurrentDateFormatted utility function. |
cmd/rangefilter/range.go |
Added a command for range operations in BirdNET-Go. |
cmd/root.go |
Integrated rangefilter package, created rangeCmd using rangefilter.Command(settings) , and added rangeCmd to the root command's subcommands. |
internal/analysis/processor/actions.go |
Updated UpdateRangeFilterAction to extract species labels from species scores and assign them to *a.IncludedSpecies . |
internal/analysis/processor/processor.go |
Modified the New function to convert species scores to species labels before assigning them to *p.IncludedSpecies . |
internal/birdnet/birdnet.go |
Changed getMetaModelData() to use bn.Settings.BirdNET.RangeFilter.Model instead of Version . |
internal/birdnet/rangefilter.go |
Updated GetProbableSpecies to return SpeciesScore structs instead of strings and modified PrintSpeciesScores to print detailed species information. |
sequenceDiagram
participant User
participant CLI
participant RangeFilter
participant BirdNET
participant Processor
User ->> CLI: Execute range command
CLI ->> RangeFilter: Call Command(settings)
RangeFilter ->> BirdNET: GetProbableSpecies()
BirdNET ->> Processor: Return species scores
Processor ->> RangeFilter: Extract species labels
RangeFilter ->> CLI: Return range command
CLI ->> User: Display range results
In fields where birds sing clear and bright,
New commands take their flight.
Scores and labels, now refined,
BirdNET's wisdom, redefined.
With every chirp and every call,
Range filters guide us all.
🐦✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
…ge filter model