draw_canvas
Hello,
First, sorry for my bad english
I hope there is the good topic of the forum to speak about that... I train on tutorial exercises.
In the intermediate tutorial, the inline script give me some difficulties. I have finished but it does'nt work.
Difficulties appear at the begenning.
c = draw_canvas()
def draw_canvas(c):
c = canvas [...]
_it say me to inspect that:_
NameErrorTraceback (most recent call last)
<ipython-input-2-b13c72a3f6d3> in <module>()
----> 1 c = draw_canvas()
NameError: name 'draw_canvas' is not defined
The note indicates me to disable auto_prepare function, unfortunaly the exemples are to complicate for me because... I m a Rookie.
In fact I don't know where write this function in the script, and if it is necessary to recopy all the function which is represented in the example ?
Does anyone has some advice to help me?
Thank you.
Chris
Comments
Dear Chris,
I am afraid you posted this into the wrong forum. This is the support forum for the Python Library Expyriment (http://www.expyriment.org).
It seems to me that you are seeking help with OpenSesame (http://osdoc.cogsci.nl/), though.
I will move this topic over to the correct forum.
Best,
Florian
Haaaa Sorry,
yes I am seeking help
Ok Florian
If @fladd had been a real Python boss
, he would have spotted the issue immediately, because it is just a general Python error, unrelated to OpenSesame per se.
You are calling the function
draw_functionbefore you have defined it. That is, this is not correct:But this is:
In any case, it's probably best if you first learn some basic Python, and then do the OpenSesame tutorial.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you Sebastiaan !!