You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating the experiment in builder, the code doesn't get updated automatically. Please see that the sizes for both different stim are the same:
But, the result is this in code:
You have set the size of option1Image to be set every repeat rather than constant. When you do this the size is initially set to a fixed arbitrary value (in this case a value of 1) and only gets set to (win.size[0]/5,None) when the trial Routine actually begins (on each repeat of the loop). Your option3Image is set to constant so it gets its size setting applied when it is initialised.
So the image init code being written here is exactly as expected, but the code change you're looking for is not where you expected.
Now, there's still a question of why are the images are a different size when set during init or set later, and that's one we'll need to investigate 🤔
You have set the size of option1Image to be set every repeat rather than constant. When you do this the size is initially set to a fixed arbitrary value (in this case a value of 1) and only gets set to (win.size[0]/5,None) when the trial Routine actually begins (on each repeat of the loop). Your option3Image is set to constant so it gets its size setting applied when it is initialised.
So the image init code being written here is exactly as expected, but the code change you're looking for is not where you expected.
Now, there's still a question of why are the images are a different size when set during init or set later, and that's one we'll need to investigate 🤔
Sharp eye! I hadn't noticed that! I'm editing everything next week, I'll see if changing those things you pointed out on my end can have a different effect. Thanks!
I am thinking these issues may be related. The experiment I had been working on utilized Emotiv EEG components. I had to do some changes and disabled the Emotiv EEG components. After re-enabling them, I consistently recieved errors that cortex_rec_2 is not defined, or something along those lines. After creating an identical experiment from scratch it works!
I think that I am experiencing these issues when I disable a component for testing, then reenable it after, but I'm not entirely sure yet.
PsychoPy Version
2023.2.3
What OS are your PsychoPy running on?
Windows 10
Bug Description
When updating the experiment in builder, the code doesn't get updated automatically. Please see that the sizes for both different stim are the same:
But, the result is this in code:
"
option1Image = visual.ImageStim(
win=win,
name='option1Image',
image='fordvferrari1.jpg', mask=None, anchor='center',
ori=0.0, pos=((-win.size[0]/3), 0), size=1.0,
color=[1,1,1], colorSpace='rgb', opacity=None,
flipHoriz=False, flipVert=False,
texRes=128.0, interpolate=True, depth=-3.0)
"
The result visually for this issue is:
its a very small issue in the case of these images, but you can see the difference. Please see attached code files:
test.zip
Expected Behaviour
I would expect the image sizes to update in the code after updating them in the builder
Steps to Reproduce
...
Additional context
No response
The text was updated successfully, but these errors were encountered: