Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
M
Morphologie
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marie Côté
Morphologie
Commits
eaf70a19
Commit
eaf70a19
authored
May 01, 2019
by
Marie Côté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
14cb1b77
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
240 additions
and
16 deletions
+240
-16
Epreuves_morpho.psyexp
Epreuves_morpho.psyexp
+1
-1
Epreuves_morpho_lastrun.py
Epreuves_morpho_lastrun.py
+5
-11
_Derivation_flexion_2019_May_01_1049.csv
data/_Derivation_flexion_2019_May_01_1049.csv
+2
-0
_Derivation_flexion_2019_May_01_1049.log
data/_Derivation_flexion_2019_May_01_1049.log
+228
-0
_Derivation_flexion_2019_May_01_1049.psydat
data/_Derivation_flexion_2019_May_01_1049.psydat
+0
-0
Epreuves_morpho.js
html/Epreuves_morpho.js
+2
-2
Epreuves_morphoNoModule.js
html/Epreuves_morphoNoModule.js
+2
-2
No files found.
Epreuves_morpho.psyexp
View file @
eaf70a19
...
...
@@ -594,7 +594,7 @@
<Param
name=
"Begin Routine"
updates=
"constant"
val=
"theseKeys=key_resp_Apprentissage_Derivation_flexion.keys&#10;shift_flag = False"
valType=
"extendedCode"
/>
<Param
name=
"Code Type"
updates=
"None"
val=
"Both"
valType=
"str"
/>
<Param
name=
"Each Frame"
updates=
"constant"
val=
"n= len(theseKeys)&#10;i = 0&#10;while i < n:&#10; &#10; if (theseKeys[i] == 'return' and inputText != ""):&#10; if inputText == Reponse:&#10; msg = "Bravo!"&#10; else:&#10; msg = "La réponse était « " + Reponse + " »!"&#10; continueRoutine = False&#10; break&#10;&#10; elif theseKeys[i] == 'return':&#10; i = 1 + 1&#10;&#10; elif theseKeys[i] == 'backspace':&#10; inputText = inputText[:-1]&#10; i = i + 1&#10;&#10; elif theseKeys[i] == 'space':&#10; inputText += ' '&#10; i = i + 1&#10;&#10; elif theseKeys[i] in ['lshift', 'rshift']:&#10; shift_flag = True&#10; i = i + 1&#10;&#10; else:&#10; if len(theseKeys[i]) == 1:&#10; if shift_flag:&#10; inputText += chr( ord(theseKeys[i]) - ord(' '))&#10; shift_flag = False&#10; else:&#10; inputText += theseKeys[i]&#10;&#10; i = i + 1"
valType=
"extendedCode"
/>
<Param
name=
"Each JS Frame"
updates=
"constant"
val=
"if (theseKeys == undefined) {&#10; var theseKeys = key_resp_Apprentissage_Derivation_flexion.keys;&#10; }&#10;&#10;if (shift_flag == undefined) {&#10; var shift_flag = false;&#10; }&#10;&#10;if (inputText == undefined) {&#10; var inputText = '';&#10; }&#10;&#10;if (msg == undefined) {&#10; var msg = ''&#10; }&#10;&#10;var n = theseKeys.length;&#10;var i = 0;&#10;&#10;while (i < n) {&#10; &#10; if (theseKeys[i] == 'return' && inputText != '') {&#10; if (
true) {&#10; msg = 'Bravo!'&#10; }&#10; else {&#10; msg = 'La réponse était « ' + Reponse + ' »!'&#10; }&#10; continueRoutine = false;&#10; break&#10; }&#10;&#10; else if (theseKeys[i] == 'return') {&#10; i = 1
+ 1&#10; }&#10;&#10; else if (theseKeys[i] == 'backspace') {&#10; inputText = inputText.slice(0,-1)&#10; i = i + 1&#10; }&#10;&#10; else if (theseKeys[i] == 'space') {&#10; inputText += ' ';&#10; i = i + 1&#10; }&#10;&#10; else if (theseKeys[i] in ['lshift', 'rshift']) {&#10; shift_flag = true;&#10; i = i + 1&#10; }&#10;&#10; else {&#10; if (theseKeys[i].length == 1) {&#10; if (shift_flag == true) {&#10; var temp = theseKeys[i].charCodeat(0) - 32;&#10; inputText += String.fromCharCode(temp);&#10; shift_flag = false&#10; }&#10; else {&#10; inputText += theseKeys[i]&#10; }&#10; }&#10; i = i + 1&#10; }&#10; }"
valType=
"extendedCode"
/>
<Param
name=
"Each JS Frame"
updates=
"constant"
val=
"if (theseKeys == undefined) {&#10; var theseKeys = key_resp_Apprentissage_Derivation_flexion.keys;&#10; }&#10;&#10;if (shift_flag == undefined) {&#10; var shift_flag = false;&#10; }&#10;&#10;if (inputText == undefined) {&#10; var inputText = '';&#10; }&#10;&#10;if (msg == undefined) {&#10; var msg = ''&#10; }&#10;&#10;var n = theseKeys.length;&#10;var i = 0;&#10;&#10;while (i < n) {&#10; &#10; if (theseKeys[i] == 'return' && inputText != '') {&#10; if (
inputText == Reponse) {&#10; msg = 'Bravo!'&#10; }&#10; else {&#10; msg = 'La réponse était « ' + Reponse + ' »!'&#10; }&#10; continueRoutine = false;&#10; break&#10; }&#10;&#10; else if (theseKeys[i] == 'return') {&#10; i = i
+ 1&#10; }&#10;&#10; else if (theseKeys[i] == 'backspace') {&#10; inputText = inputText.slice(0,-1)&#10; i = i + 1&#10; }&#10;&#10; else if (theseKeys[i] == 'space') {&#10; inputText += ' ';&#10; i = i + 1&#10; }&#10;&#10; else if (theseKeys[i] in ['lshift', 'rshift']) {&#10; shift_flag = true;&#10; i = i + 1&#10; }&#10;&#10; else {&#10; if (theseKeys[i].length == 1) {&#10; if (shift_flag == true) {&#10; var temp = theseKeys[i].charCodeat(0) - 32;&#10; inputText += String.fromCharCode(temp);&#10; shift_flag = false&#10; }&#10; else {&#10; inputText += theseKeys[i]&#10; }&#10; }&#10; i = i + 1&#10; }&#10; }"
valType=
"extendedCode"
/>
<Param
name=
"End Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"End JS Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"End JS Routine"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
...
...
Epreuves_morpho_lastrun.py
View file @
eaf70a19
...
...
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v3.0.6),
on
avril 19, 2019, at 23:2
8
on
mai 01, 2019, at 10:4
8
If you publish work using this script please cite the PsychoPy publications:
Peirce, JW (2007) PsychoPy - Psychophysics software in Python.
Journal of Neuroscience Methods, 162(1-2), 8-13.
...
...
@@ -100,19 +100,13 @@ text_Accueil_Apprentissage = visual.TextStim(win=win, name='text_Accueil_Apprent
# Initialize components for Routine "Apprentissage_Derivation_flexion"
Apprentissage_Derivation_flexionClock
=
core
.
Clock
()
# Set experiment start values for variable component inputText
inputText
=
''
inputTextContainer
=
[]
# Set experiment start values for variable component msg
msg
=
''
msgContainer
=
[]
Mot_Apprentissage_Derivation_flexion
=
visual
.
TextStim
(
win
=
win
,
name
=
'Mot_Apprentissage_Derivation_flexion'
,
text
=
'default text'
,
font
=
'Arial'
,
pos
=
(
0
,
0.3
),
height
=
0.08
,
wrapWidth
=
None
,
ori
=
0
,
color
=
[
0
,
0
,
0
],
colorSpace
=
'rgb'
,
opacity
=
1
,
languageStyle
=
'LTR'
,
depth
=
-
2
.0
);
depth
=
0
.0
);
inputText
=
""
Phrase_Apprentissage_Derivation_flexion
=
visual
.
TextStim
(
win
=
win
,
name
=
'Phrase_Apprentissage_Derivation_flexion'
,
text
=
'default text'
,
...
...
@@ -120,14 +114,14 @@ Phrase_Apprentissage_Derivation_flexion = visual.TextStim(win=win, name='Phrase_
pos
=
(
0
,
0
),
height
=
0.05
,
wrapWidth
=
None
,
ori
=
0
,
color
=
[
0
,
0
,
0
],
colorSpace
=
'rgb'
,
opacity
=
1
,
languageStyle
=
'LTR'
,
depth
=-
5
.0
);
depth
=-
3
.0
);
Reponse_Apprentissage_Derivation_flexion
=
visual
.
TextStim
(
win
=
win
,
name
=
'Reponse_Apprentissage_Derivation_flexion'
,
text
=
'default text'
,
font
=
'Arial'
,
pos
=
(
0
,
-
0.1
),
height
=
0.05
,
wrapWidth
=
None
,
ori
=
0
,
color
=
[
1.0
,
-
1
,
-
1
],
colorSpace
=
'rgb'
,
opacity
=
1
,
languageStyle
=
'LTR'
,
depth
=-
6
.0
);
depth
=-
4
.0
);
# Initialize components for Routine "Apprentissage_Derivation_flexion_feedback"
Apprentissage_Derivation_flexion_feedbackClock
=
core
.
Clock
()
...
...
@@ -1124,7 +1118,7 @@ for thisLoop_Apprentissage_Derivation_flexion in Loop_Apprentissage_Derivation_f
shift_flag
=
False
Phrase_Apprentissage_Derivation_flexion
.
setText
(
Phrase
)
# keep track of which components have finished
Apprentissage_Derivation_flexionComponents
=
[
inputText
,
msg
,
Mot_Apprentissage_Derivation_flexion
,
key_resp_Apprentissage_Derivation_flexion
,
Phrase_Apprentissage_Derivation_flexion
,
Reponse_Apprentissage_Derivation_flexion
]
Apprentissage_Derivation_flexionComponents
=
[
Mot_Apprentissage_Derivation_flexion
,
key_resp_Apprentissage_Derivation_flexion
,
Phrase_Apprentissage_Derivation_flexion
,
Reponse_Apprentissage_Derivation_flexion
]
for
thisComponent
in
Apprentissage_Derivation_flexionComponents
:
if
hasattr
(
thisComponent
,
'status'
):
thisComponent
.
status
=
NOT_STARTED
...
...
data/_Derivation_flexion_2019_May_01_1049.csv
0 → 100644
View file @
eaf70a19
Loop_Apprentissage_Derivation_flexion.thisRepN,Loop_Apprentissage_Derivation_flexion.thisTrialN,Loop_Apprentissage_Derivation_flexion.thisN,Loop_Apprentissage_Derivation_flexion.thisIndex,Mot,Phrase,Reponse,Finale,Code,Origine,But,Transformation,Categorie,key_resp_Apprentissage_Derivation_flexion.keys,key_resp_Apprentissage_Derivation_flexion.rt,participant,session,date,expName,psychopyVersion,frameRate,
,,,,,,,,,,,,,"['c', 'o', 'n', 'd', 'u', 'c', 't', 'r', 'i', 'c', 'e', 'return']","[0.901627300074324, 1.0327816000208259, 1.101001900038682, 1.1838398000691086, 1.253006900078617, 1.3849247000180185, 1.601456500007771, 1.683229000074789, 1.8007948000449687, 1.9005302999867126, 1.999904000083916, 2.0997413999866694]",,,,,,,
data/_Derivation_flexion_2019_May_01_1049.log
0 → 100644
View file @
eaf70a19
This diff is collapsed.
Click to expand it.
data/_Derivation_flexion_2019_May_01_1049.psydat
0 → 100644
View file @
eaf70a19
File added
html/Epreuves_morpho.js
View file @
eaf70a19
...
...
@@ -2157,7 +2157,7 @@ function Apprentissage_Derivation_flexionRoutineEachFrame() {
while
(
i
<
n
)
{
if
(
theseKeys
[
i
]
==
'return'
&&
inputText
!=
''
)
{
if
(
tru
e
)
{
if
(
inputText
==
Repons
e
)
{
msg
=
'Bravo!'
}
else
{
...
...
@@ -2168,7 +2168,7 @@ function Apprentissage_Derivation_flexionRoutineEachFrame() {
}
else
if
(
theseKeys
[
i
]
==
'return'
)
{
i
=
1
+
1
i
=
i
+
1
}
else
if
(
theseKeys
[
i
]
==
'backspace'
)
{
...
...
html/Epreuves_morphoNoModule.js
View file @
eaf70a19
...
...
@@ -2149,7 +2149,7 @@ function Apprentissage_Derivation_flexionRoutineEachFrame() {
while
(
i
<
n
)
{
if
(
theseKeys
[
i
]
==
'return'
&&
inputText
!=
''
)
{
if
(
tru
e
)
{
if
(
inputText
==
Repons
e
)
{
msg
=
'Bravo!'
}
else
{
...
...
@@ -2160,7 +2160,7 @@ function Apprentissage_Derivation_flexionRoutineEachFrame() {
}
else
if
(
theseKeys
[
i
]
==
'return'
)
{
i
=
1
+
1
i
=
i
+
1
}
else
if
(
theseKeys
[
i
]
==
'backspace'
)
{
...
...
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