Howdy, Stranger!

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

Supported by

Issues with counter balancing

Hi there i was wondering if any one could help.

I have designed my experiment which contains 8 seperate blocks, I have read and watched all tutorials regarding counter balancing with particular attention to the python code for counter balancing for more than two blocks. However when tryingnto run the experiment I keep getting notification that both skip and offset are removed. Can any one advise on how to correct this issue?

Thank you in advance

Comments

  • Hi Joanne,

    Could you copy-paste the notification in here? We'll also need more details, e.g. your python code, and structure of the loop item.

    Cheers

    Josh

  • Hi Josh

    this is the overall layout of my experiment -

    The notification -

    the structure of my counter balancing code is as follows:

    if self.get ('subject_nr')%8 == 1:
    b1 = 0
    b2 = 1
    b3 = 2
    b4 = 3
    b5 = 4
    b6 = 5
    b7 = 6
    b8 = 7
    elif self.get ('subject_nr')%8 == 2:
    b1 = 7
    b2 = 0
    b3 = 1
    b4 = 2
    b5 = 3
    b6 = 4
    b7 = 5
    b8 = 6
    elif self.get ('subject_nr')%8 == 3:
    b1 = 6
    b2 = 7
    b3 = 0
    b4 = 1
    b5 = 2
    b6 = 3
    b7 = 4
    b8 = 5
    elif self.get ('subject_nr')%8 == 4:
    b1 = 5
    b2 = 6
    b3 = 7
    b4 = 0
    b5 = 1
    b6 = 2
    b7 = 3
    b8 = 4
    elif self.get ('subject_nr')%8 == 5:
    b1 = 4
    b2 = 5
    b3 = 6
    b4 = 7
    b5 = 0
    b6 = 1
    b7 = 2
    b8 = 3
    elif self.get ('subject_nr')%8 == 6:
    b1 = 3
    b2 = 4
    b3 = 5
    b4 = 6
    b5 = 7
    b6 = 0
    b7 = 1
    b8 = 2
    elif self.get ('subject_nr')%8 == 7:
    b1 = 2
    b2 = 3
    b3 = 4
    b4 = 5
    b5 = 6
    b6 = 7
    b7 = 0
    b8 = 1
    elif self.get ('subject_nr')%8 == 8:
    b1 = 1
    b2 = 2
    b3 = 3
    b4 = 4
    b5 = 5
    b6 = 6
    b7 = 7
    b8 = 0
    exp.set ('b1',b1)
    exp.set ('b2',b2)
    exp.set ('b3',b3)
    exp.set ('b4',b4)
    exp.set ('b5',b5)
    exp.set ('b6',b6)
    exp.set ('b7',b7)
    exp.set ('b8',b8)

    thank you

    Joanne

  • Hi Josh

    I have totally redesigned the experiment however i am now getting error messages with regards to my images.

    i have attached screen prints of the error message plus my set up if you could advise me I would be greatly appreciated

    joanne

  • Hi Joanne,

    It seems that your are referring to a non-exisiting picture or picture name ".jpg". The correct way to loop over a set of pictures is to call them on a sketchpad (or canvas) by "[your_variable_name].jpg" or "[your_variable_name].png". I guess you forgot to add the variable name somewhere.

    Best,
    Laurent

Sign In or Register to comment.