Skip to content

ENH: Run Microphone.saveClips in endExperiment#6845

Merged
TEParsons merged 3 commits intopsychopy:devfrom
TEParsons:dev-bf-mic-atexit
Sep 13, 2024
Merged

ENH: Run Microphone.saveClips in endExperiment#6845
TEParsons merged 3 commits intopsychopy:devfrom
TEParsons:dev-bf-mic-atexit

Conversation

@TEParsons
Copy link
Copy Markdown
Contributor

@TEParsons TEParsons commented Sep 13, 2024

Isn't an issue from Builder as when you finish an experiment the Python process closes anyway (triggering Microphone.del), but if you're using Session to run several experiments at once then Microphone.del isn't called and Microphone.saveClips isn't called unless the experiment runs to completion. This PR means that anything which triggers endExperiment (i.e. pressing ESCAPE) will call Microphone.saveClips

@TEParsons TEParsons requested a review from peircej September 13, 2024 12:22
@TEParsons TEParsons merged commit 0176f98 into psychopy:dev Sep 13, 2024
@TEParsons TEParsons changed the title ENH: Run Microphone.saveClips at exit ENH: Run Microphone.saveClips in endExperiment Sep 13, 2024
@TEParsons TEParsons deleted the dev-bf-mic-atexit branch September 19, 2024 08:59
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