Skip to content

Add original sample rate products and time buffer#43

Merged
stoutta6 merged 9 commits into
mainfrom
tas/original-fs
May 12, 2026
Merged

Add original sample rate products and time buffer#43
stoutta6 merged 9 commits into
mainfrom
tas/original-fs

Conversation

@stoutta6
Copy link
Copy Markdown
Collaborator

@stoutta6 stoutta6 commented May 4, 2026

Adding optional flag to create additional copies of all images using the original sample rate of the wav file. All bat call processing is still done on the standardized resampled data as before, and the results are referenced to the original sample rate STFT and/or interpolated as needed to create the new images.

Additionally, added optional time buffer (in ms) argument. The default of 1 ms corresponds to previous processing. To ensure bat calls are not chopped off, a 5 ms time buffer seems to work well.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

❌ Patch coverage is 93.93939% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.2%. Comparing base (740cba2) to head (a7d2732).

Files with missing lines Patch % Lines
batbot/spectrogram/__init__.py 93.8% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main     #43     +/-   ##
=======================================
+ Coverage   57.6%   59.2%   +1.6%     
=======================================
  Files          7       7             
  Lines       1322    1383     +61     
=======================================
+ Hits         762     820     +58     
- Misses       560     563      +3     
Files with missing lines Coverage Δ
batbot/__init__.py 42.5% <100.0%> (ø)
batbot/spectrogram/__init__.py 70.3% <93.8%> (+1.4%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 740cba2...a7d2732. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@bluemellophone bluemellophone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stoutta6 stoutta6 merged commit 6820cc8 into main May 12, 2026
10 checks passed
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.

2 participants