Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error got an unexpected keyword argument "reset" when trying to pause using PTB sounds #5619

Merged
merged 1 commit into from Jun 8, 2023

Conversation

peircej
Copy link
Member

@peircej peircej commented Jun 8, 2023

Pause was calling self.track.stop not self.stop

self.track.stop is a lower level function and doesn't have the convenience of including the reset=True/False option so users got an error:

...backend_ptb.py line 539, in pause
        self.track.stop(reset=False)
TypeError: stop() got an unexpected keyword argument "reset"

The key thing here is that although self.track.stop exists it doesn't
have the convenience of including the reset=True/False option so users
got an error:
```
...backend_ptb.py line 539, in pause
        self.track.stop(reset=False)
TypeError: stop() got an unexpected keyword argument "reset"
```
@peircej peircej requested a review from mdcutone June 8, 2023 13:58
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #5619 (9a56777) into release (20ded07) will decrease coverage by 0.01%.
The diff coverage is 16.66%.

@@             Coverage Diff             @@
##           release    #5619      +/-   ##
===========================================
- Coverage    43.15%   43.15%   -0.01%     
===========================================
  Files          313      313              
  Lines        58547    58550       +3     
===========================================
+ Hits         25264    25265       +1     
- Misses       33283    33285       +2     
Impacted Files Coverage Δ
psychopy/sound/backend_ptb.py 23.07% <16.66%> (-0.21%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@peircej peircej merged commit 7f5acf3 into psychopy:release Jun 8, 2023
1 of 3 checks passed
@peircej peircej deleted the bf-ptb-stop-no-reset branch July 28, 2023 13:34
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.

None yet

1 participant