Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Brookes Template 2020
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wakefield Morys-Carter
Brookes Template 2020
Commits
56cc98be
Commit
56cc98be
authored
4 years ago
by
Wakefield Morys-Carter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undoing trials_3.map
parent
e30fcbda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
html/template-legacy-browsers.js
html/template-legacy-browsers.js
+10
-10
html/template.js
html/template.js
+10
-10
template.psyexp
template.psyexp
+2
-2
No files found.
html/template-legacy-browsers.js
View file @
56cc98be
...
@@ -693,11 +693,11 @@ function embedded_formRoutineEnd(trials) {
...
@@ -693,11 +693,11 @@ function embedded_formRoutineEnd(trials) {
thisComponent
.
setAutoDraw
(
false
);
thisComponent
.
setAutoDraw
(
false
);
}
}
});
});
showSlider
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showSlider
'
]);
showSlider
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showSlider
'
]);
showLoop
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showLoop
'
]);
showLoop
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showLoop
'
]);
showAge
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showAge
'
]);
showAge
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showAge
'
]);
showVideo
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showVideo
'
]);
showVideo
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showVideo
'
]);
showSeed
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showSeed
'
]);
showSeed
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showSeed
'
]);
// the Routine "embedded_form" was not non-slip safe, so reset the non-slip timer
// the Routine "embedded_form" was not non-slip safe, so reset the non-slip timer
routineTimer
.
reset
();
routineTimer
.
reset
();
...
@@ -717,11 +717,11 @@ function random_seedRoutineBegin(trials) {
...
@@ -717,11 +717,11 @@ function random_seedRoutineBegin(trials) {
frameN
=
-
1
;
frameN
=
-
1
;
// update component parameters for each repeat
// update component parameters for each repeat
msg
=
(((
"
Testing reseeding random numbers.
\n\n
randomnum1:
"
+
randomnum1
.
toString
())
+
"
\n\n
randomnum2:
"
)
+
randomnum2
.
toString
());
msg
=
(((
"
Testing reseeding random numbers.
\n\n
randomnum1:
"
+
randomnum1
.
toString
())
+
"
\n\n
randomnum2:
"
)
+
randomnum2
.
toString
());
console
.
log
(
showSlider
[
0
]);
console
.
log
(
showSlider
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showLoop
[
0
]);
console
.
log
(
showLoop
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showAge
[
0
]);
console
.
log
(
showAge
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showVideo
[
0
]);
console
.
log
(
showVideo
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showSeed
[
0
]);
console
.
log
(
showSeed
.
slice
((
-
1
))
[
0
]);
instructions
.
setText
((
msg
+
'
\n\n
Press space to continue
'
));
instructions
.
setText
((
msg
+
'
\n\n
Press space to continue
'
));
// keep track of which components have finished
// keep track of which components have finished
...
...
This diff is collapsed.
Click to expand it.
html/template.js
View file @
56cc98be
...
@@ -696,11 +696,11 @@ function embedded_formRoutineEnd(trials) {
...
@@ -696,11 +696,11 @@ function embedded_formRoutineEnd(trials) {
thisComponent
.
setAutoDraw
(
false
);
thisComponent
.
setAutoDraw
(
false
);
}
}
}
}
showSlider
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showSlider
'
]);
showSlider
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showSlider
'
]);
showLoop
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showLoop
'
]);
showLoop
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showLoop
'
]);
showAge
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showAge
'
]);
showAge
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showAge
'
]);
showVideo
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showVideo
'
]);
showVideo
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showVideo
'
]);
showSeed
=
psychoJS
.
experiment
.
_trials
_3
Data
.
map
((
trial
)
=>
trial
[
'
showSeed
'
]);
showSeed
=
psychoJS
.
experiment
.
_trialsData
.
map
((
trial
)
=>
trial
[
'
showSeed
'
]);
// the Routine "embedded_form" was not non-slip safe, so reset the non-slip timer
// the Routine "embedded_form" was not non-slip safe, so reset the non-slip timer
routineTimer
.
reset
();
routineTimer
.
reset
();
...
@@ -720,11 +720,11 @@ function random_seedRoutineBegin(trials) {
...
@@ -720,11 +720,11 @@ function random_seedRoutineBegin(trials) {
frameN
=
-
1
;
frameN
=
-
1
;
// update component parameters for each repeat
// update component parameters for each repeat
msg
=
(((
"
Testing reseeding random numbers.
\n\n
randomnum1:
"
+
randomnum1
.
toString
())
+
"
\n\n
randomnum2:
"
)
+
randomnum2
.
toString
());
msg
=
(((
"
Testing reseeding random numbers.
\n\n
randomnum1:
"
+
randomnum1
.
toString
())
+
"
\n\n
randomnum2:
"
)
+
randomnum2
.
toString
());
console
.
log
(
showSlider
[
0
]);
console
.
log
(
showSlider
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showLoop
[
0
]);
console
.
log
(
showLoop
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showAge
[
0
]);
console
.
log
(
showAge
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showVideo
[
0
]);
console
.
log
(
showVideo
.
slice
((
-
1
))
[
0
]);
console
.
log
(
showSeed
[
0
]);
console
.
log
(
showSeed
.
slice
((
-
1
))
[
0
]);
instructions
.
setText
((
msg
+
'
\n\n
Press space to continue
'
));
instructions
.
setText
((
msg
+
'
\n\n
Press space to continue
'
));
// keep track of which components have finished
// keep track of which components have finished
...
...
This diff is collapsed.
Click to expand it.
template.psyexp
View file @
56cc98be
...
@@ -458,8 +458,8 @@
...
@@ -458,8 +458,8 @@
<CodeComponent
name=
"code"
>
<CodeComponent
name=
"code"
>
<Param
name=
"Begin Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Routine"
updates=
"constant"
val=
"msg = ((("Testing reseeding random numbers.\n\nrandomnum1: " + randomnum1.toString()) + "\n\nrandomnum2: ") + randomnum2.toString());&#10;console.log(showSlider
[0]);&#10;console.log(showLoop[0]);&#10;console.log(showAge[0]);&#10;console.log(showVideo[0]);&#10;console.log(showSeed
[0]);&#10;"
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Routine"
updates=
"constant"
val=
"msg = ((("Testing reseeding random numbers.\n\nrandomnum1: " + randomnum1.toString()) + "\n\nrandomnum2: ") + randomnum2.toString());&#10;console.log(showSlider
.slice((- 1))[0]);&#10;console.log(showLoop.slice((- 1))[0]);&#10;console.log(showAge.slice((- 1))[0]);&#10;console.log(showVideo.slice((- 1))[0]);&#10;console.log(showSeed.slice((- 1))
[0]);&#10;"
valType=
"extendedCode"
/>
<Param
name=
"Begin Routine"
updates=
"constant"
val=
"msg="Testing reseeding random numbers.\n\nrandomnum1: "+str(randomnum1) + "\n\nrandomnum2: "+str(randomnum2)&#10;&#10;print(showSlider[
0])&#10;print(showLoop[0])&#10;print(showAge[0])&#10;print(showVideo[0])&#10;print(showSeed[0
])"
valType=
"extendedCode"
/>
<Param
name=
"Begin Routine"
updates=
"constant"
val=
"msg="Testing reseeding random numbers.\n\nrandomnum1: "+str(randomnum1) + "\n\nrandomnum2: "+str(randomnum2)&#10;&#10;print(showSlider[
-1])&#10;print(showLoop[-1])&#10;print(showAge[-1])&#10;print(showVideo[-1])&#10;print(showSeed[-1
])"
valType=
"extendedCode"
/>
<Param
name=
"Code Type"
updates=
"None"
val=
"Auto->JS"
valType=
"str"
/>
<Param
name=
"Code Type"
updates=
"None"
val=
"Auto->JS"
valType=
"str"
/>
<Param
name=
"Each Frame"
updates=
"constant"
val=
"keys = event.getKeys(['space','quit'], waitRelease=True)&#10;if 'quit' in keys:&#10; core.quit()&#10;elif 'space' in keys or showSeed != 1:&#10; continueRoutine=False&#10; &#10;"
valType=
"extendedCode"
/>
<Param
name=
"Each Frame"
updates=
"constant"
val=
"keys = event.getKeys(['space','quit'], waitRelease=True)&#10;if 'quit' in keys:&#10; core.quit()&#10;elif 'space' in keys or showSeed != 1:&#10; continueRoutine=False&#10; &#10;"
valType=
"extendedCode"
/>
<Param
name=
"Each JS Frame"
updates=
"constant"
val=
"var _pj;&#10;function _pj_snippets(container) {&#10; function in_es6(left, right) {&#10; if (((right instanceof Array) || ((typeof right) === "string"))) {&#10; return (right.indexOf(left) > (- 1));&#10; } else {&#10; if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {&#10; return right.has(left);&#10; } else {&#10; return (left in right);&#10; }&#10; }&#10; }&#10; container["in_es6"] = in_es6;&#10; return container;&#10;}&#10;_pj = {};&#10;_pj_snippets(_pj);&#10;keys = event.getKeys(["space", "quit"], {"waitRelease": true});&#10;if (_pj.in_es6("quit", keys)) {&#10; core.quit();&#10;} else {&#10; if ((_pj.in_es6("space", keys) || (showSeed !== 1))) {&#10; continueRoutine = false;&#10; }&#10;}&#10;"
valType=
"extendedCode"
/>
<Param
name=
"Each JS Frame"
updates=
"constant"
val=
"var _pj;&#10;function _pj_snippets(container) {&#10; function in_es6(left, right) {&#10; if (((right instanceof Array) || ((typeof right) === "string"))) {&#10; return (right.indexOf(left) > (- 1));&#10; } else {&#10; if (((right instanceof Map) || (right instanceof Set) || (right instanceof WeakMap) || (right instanceof WeakSet))) {&#10; return right.has(left);&#10; } else {&#10; return (left in right);&#10; }&#10; }&#10; }&#10; container["in_es6"] = in_es6;&#10; return container;&#10;}&#10;_pj = {};&#10;_pj_snippets(_pj);&#10;keys = event.getKeys(["space", "quit"], {"waitRelease": true});&#10;if (_pj.in_es6("quit", keys)) {&#10; core.quit();&#10;} else {&#10; if ((_pj.in_es6("space", keys) || (showSeed !== 1))) {&#10; continueRoutine = false;&#10; }&#10;}&#10;"
valType=
"extendedCode"
/>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment