Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Opensesame on tablet, subject_parity always registers "even"

edited January 2014 in OpenSesame

Hi Sebastiaan,
I started testing my experiment on the tablet (Samsung Nexus 10).
When I had a look at the data, I found that the variable subject_parity - which I´m using for counterbalancing - always registers “even”, also when the subject_nr is uneven.
This only happens when I run the experiment on the tablet, not when I'm running it on my computer (with droid back-end). Do you know what goes wrong here?
Best,
Anne

Comments

  • edited 11:04PM

    Hi Anne,

    Right, that's a small bug in the Android runtime. Thanks for pointing it out (issue).

    For now, you can easily work around this by adding an inline_script item to the very beginning of your experiment, with the following code in the prepare phase:

    exp.set_subject(self.get('subject_nr'))
    

    This will basically do what the runtime should've done automatically, namely set some internal variables based on the subject number.

    Cheers!
    Sebastiaan

  • edited 11:04PM

    perfect, it works! Thanks :)

Sign In or Register to comment.