rh716
April 27, 2021, 9:50pm
1
THIS IS MY CODE
def genString(n):
uppercase = (‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’);
stringo = ‘’;
for i in range(n):
stringo += uppercase[randint(0,25)];
return stringo;
amp1=0.3
amp2=0.3
ang1=(avgangle+(diffangletemp/2)) (math.pi/180)
ang2=(avgangle-(diffangletemp/2)) (math.pi/180)
digit1 = str(randint(3,8));
for i in range(3):
if i == 1:
str_l = genString(1);
str_r = genString(1);
stringo = str_l + digit1 + str_r;
else:
stringo = genString(3);
if i==0:
textbox1 = stringo;
else:
textbox1 = textbox1 + ‘\n’ + stringo;
digit2 = str(randint(3,8));
for i in range(3):
if i == 1:
str_l = genString(1);
str_r = genString(1);
stringo = str_l + digit2 + str_r;
else:
stringo = genString(3);
if i==0:
textbox2 = stringo;
else:
textbox2 = textbox2 + ‘\n’ + stringo;
#textbox1= digit1
#textbox2= digit2
Could you place the focus point at avgangle * (math.pi/180) ?
I drew out where I would place the points to focus. I have 10 trails I want the point to appear each time.
[FFF7FC91-E266-4EC8-AC2B-EE5A4686A253]
[BEA5268F-D1C8-413E-83FB-EB053E78B98E]
THIS IS MY CODE
def genString(n):
uppercase = (‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’);
stringo = ‘’;
for i in range(n):
stringo += uppercase[randint(0,25)];
return stringo;
amp1=0.3
amp2=0.3
ang1=(avgangle+(diffangletemp/2))(math.pi/180)
ang2=(avgangle-(diffangletemp/2))(math.pi/180)
digit1 = str(randint(3,8…
rh716
April 27, 2021, 10:09pm
3
What do you mean I am confused?
What are the positions of your two text stimuli? That feels far more relevant than the code for their content.
rh716
April 27, 2021, 10:30pm
5
amp1=0.3
amp2=0.3
ang1=(avgangle+(diffangletemp/2)) (math.pi/180)
ang2=(avgangle-(diffangletemp/2)) (math.pi/180)
ang=30
Hence me suggesting that you place the focus point at your average angle.
However, perhaps that’s not your question.
How are you translating your polar coordinates into x y positions?
rh716
April 27, 2021, 11:31pm
7
Thank you, I wanted to know if there are settings on the builder view to add the focus point. I am new to pscyhopy/coding, in general, I am taking a research class, which is the first time I have to do all this.
I am translating my coordinates by adding the diffangletemp= 30 in the begin experiment tab of the code
I usually add text component with a + as the contents or a cross shaped polygon component.