FF: remove the use of currentlyRecording in EyetrackerControl#6567
FF: remove the use of currentlyRecording in EyetrackerControl#6567TEParsons merged 9 commits intopsychopy:devfrom
Conversation
Routines can end when not all Components are FINISHED - if the Routine is force ended (be it by Routine Settings, a Keyboard/Mouse/etc. Component or by a Code component), but I think removing this is fine anyway as we no longer need I think you're right that Also where you see E128 it's fine to just do the indentation, you don't need to flag it and wait :) |
|
Sure. I just think we don't toggle the I think this should be an option if the Re: |
|
@mh105 I think tests are failing because of a bug that's fixed in upstream - could you rebase/merge dev into this branch and push out again? |
|
@TEParsons All good now! Although see my comment in #6599, is there a bug that is somehow halting the experiment? |
As @TEParsons might have guessed, I tried to use the
EyetrackerControlcomponent, and it still isn't working the way we want after #6463 and #6468. I just made a BF and was about to PR torelease, then I realized you had a BF commit 9157901 to thedevbranch already, which made essentially the same changes...I guess great minds think alike :) And I like how you explicitly define the
start()andstop()methods as opposed to using@status.setter. This is the same problem as we discussed for sound component start/stop and how it interacts with component.status.I'm making this PR to add two additional things after comparing my BF with your BF commit 9157901:
writeRoutineEndCode()for thisEyetrackerControlcomponent to togglestatustoFINISHED. If it isn'tFINISHED, the routine couldn't end anyways sincecontinueRoutinewill get turned back toTruedue to theEyetrackerControlcomponent not beingFINISHED.currentlyRecordingclass attribute unnecessary and potentially problematic. For example, if I manually turned the eyetracker recording status toFalsewithout using aStop OnlyEyetrackerControlcomponent, then aStart OnlyEyetrackerControlcomponent won't clear events properly because it relies onEyetrackerControl.currentlyRecordinggetting turned back toFalse. Couldn't we simply useself.tracker.isRecordingEnabled()to assess whether the eyetracker is recording or not?