Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
signal_detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jäkel, Frank
signal_detection
Commits
2563558d
Commit
2563558d
authored
May 31, 2020
by
Jäkel, Frank
Browse files
Options
Downloads
Patches
Plain Diff
Debug mode to switch between window and fullscreen.
parent
51441eb1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
signal_detection.py
+8
-3
8 additions, 3 deletions
signal_detection.py
with
8 additions
and
3 deletions
signal_detection.py
+
8
−
3
View file @
2563558d
...
...
@@ -10,6 +10,7 @@ import warnings
warnings
.
filterwarnings
(
'
ignore
'
)
# set some global variables
DEBUG
=
False
params
=
dict
()
params
[
'
num_of_trials
'
]
=
50
# a block always consists of 50 trials
params
[
'
fps
'
]
=
60.0
# assume same frames per second for everyone
...
...
@@ -75,7 +76,11 @@ def setup(intensity,task):
error
(
'
Unknown task: should be yes-no or 2AFC
'
)
# this will create a warning that no monitor is specified
# but we don't care because we only have pixel images
win
=
visual
.
Window
([
800
,
600
],
allowGUI
=
True
,
fullscr
=
True
,
if
DEBUG
:
win
=
visual
.
Window
([
800
,
600
],
allowGUI
=
True
,
units
=
'
pix
'
,
color
=
[
0.5
,
0.5
,
0.5
])
else
:
win
=
visual
.
Window
(
fullscr
=
True
,
units
=
'
pix
'
,
color
=
[
0.5
,
0.5
,
0.5
])
win
.
setMouseVisible
(
False
)
message
=
visual
.
TextStim
(
win
,
pos
=
[
0
,
100
],
text
=
text
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment