-
Notifications
You must be signed in to change notification settings - Fork 18
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
FIX: Not looping leading to TypeError #119
Conversation
Actually, there is
|
@cbrnr I'd be happy to receive a review on this! |
playback_lsl is mine, but I'm happy to see others use it and improve it. The previous default behaviour was to loop, and now the default behaviour is to not loop. I prefer if the default is to loop, but then how do we fix the argument name in argparse? Do we only offer "--no-loop"? I'm not great with |
I can also be convinced that not-looping is the better default behaviour. |
Hey @cboulay -- thanks for programming and sharing this script, it has been very helpful for me! (this comment is what I should have started this PR with, sorry if this all came across as brash)
yes, that would be a sensible alternative solution.
I think from a user experience perspective it's more natural to expect a playback to NOT loop by default (think of music that you play). Please let me know if you want me to change the default back to looping, and adjust the flag to be Other than that, it would be ready for merge from my side :) |
Just my two cents (and you said you can be convinced), I'd also think that not looping is a better default. But I leave this up to you, so feel free to merge whenever you're happy @cboulay! |
@sappelhoff can you rebase please? Afterwards I think we can merge. |
@cbrnr sure -- done! |
Thanks @sappelhoff! |
A flag like
--loop
in this case is typically used as a "true-if-supplied" flag. However, it was instead (confusinglycounter-intuitively) used as a "false-if-supplied" flag.This is now fixed.
python -m pyxdf.examples.playback_lsl.py --loop
will loop, whereas not supplying--loop
will not loop.