Skip to content

BF: If a Mic was never started, it would error on saving recording#7076

Merged
TEParsons merged 2 commits intopsychopy:devfrom
TEParsons:dev-bf-mic-not-started
Jan 31, 2025
Merged

BF: If a Mic was never started, it would error on saving recording#7076
TEParsons merged 2 commits intopsychopy:devfrom
TEParsons:dev-bf-mic-not-started

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

Because .bank is called by Builder whether or not the Component actually started (so whether or not the recording is empty) - but calling bank on a mic with an empty recording means that mic.clips gets a None appended. Fix is to instead store an empty AudioClip.

@TEParsons TEParsons requested a review from mdcutone January 30, 2025 15:58
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 49.99%. Comparing base (17c0cea) to head (0bda5c4).
Report is 24 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #7076      +/-   ##
==========================================
+ Coverage   40.86%   49.99%   +9.13%     
==========================================
  Files         347      347              
  Lines       64056    64062       +6     
==========================================
+ Hits        26174    32030    +5856     
+ Misses      37882    32032    -5850     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)

@TEParsons TEParsons merged commit b81f7e5 into psychopy:dev Jan 31, 2025
7 checks passed
@TEParsons TEParsons deleted the dev-bf-mic-not-started branch February 12, 2025 16:57
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