id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
5,900
GUI.py
psychopy_psychopy/psychopy/demos/coder/input/GUI.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo to illustrate Dialog (Dlg) classes and usage. """ from psychopy import gui # Fetch default gui handler (qt if available) from psychopy import __version__ # Get the PsychoPy version currently in use ## You can explicitly choose one of the qt/wx backends like this...
1,763
Python
.py
44
37.704545
92
0.710111
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,901
customMouse.py
psychopy_psychopy/psychopy/demos/coder/input/customMouse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of CustomMouse(), showing movement limits, click detected upon release, and ability to change the pointer. """ # authors Jeremy Gray & Todd Parsons from psychopy import visual, event # Create window win = visual.Window(units="height") # Create a virtual mouse v...
1,554
Python
.py
44
31.090909
84
0.677312
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,902
joystick_universal.py
psychopy_psychopy/psychopy/demos/coder/input/joystick_universal.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ There are two ways to retrieve info from the first 3 joystick axes. You can use: joy.getAxis(0) joy.getX() Beyond those 3 axes you need to use the getAxis(id) form. Although it may be that these don't always align fully. This demo should help you to find out wh...
2,489
Python
.py
70
31.671429
80
0.669439
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,903
mouse.py
psychopy_psychopy/psychopy/demos/coder/input/mouse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of mouse handling. As of version 1.51 the mouse coordinates for myMouse.getPos() myMouse.setPos() myMouse.getRel() are in the same units as the window. You can also check the motion of the wheel with myMouse.getWheelRel() (in two directions for the m...
1,888
Python
.py
54
31.148148
69
0.675631
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,904
elementArrays.py
psychopy_psychopy/psychopy/demos/coder/stimuli/elementArrays.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of the ElementArrayStim, a highly optimised stimulus for generating arrays of similar (but not identical) elements, such as in global form arrays or random dot stimuli. Elements must have the same basic texture and mask, but can differ in any other way (ori, sf, ...
2,984
Python
.py
67
41.19403
97
0.737552
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,905
rotatingFlashingWedge.py
psychopy_psychopy/psychopy/demos/coder/stimuli/rotatingFlashingWedge.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo: Rotate flashing wedge """ from psychopy import visual, event, core win = visual.Window([800, 800]) globalClock = core.Clock() # Make two wedges (in opposite contrast) and alternate them for flashing wedge1 = visual.RadialStim(win, tex='sqrXsqr', color=1, size=...
1,158
Python
.py
30
35.5
77
0.707404
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,906
bufferImageStim.py
psychopy_psychopy/psychopy/demos/coder/stimuli/bufferImageStim.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of class psychopy.visual.BufferImageStim() - take a snapshot of a multi-item screen image - save and draw as a BufferImageStim - report speed of BufferImageStim to speed of drawing each item separately """ from psychopy import visual, event, core # need a windo...
2,984
Python
.py
66
42.212121
96
0.705781
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,907
plaid.py
psychopy_psychopy/psychopy/demos/coder/stimuli/plaid.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo creating a drifting visual plaid stimulus. For combining stimuli (e.g. to create a plaid) it's best to use blendMode='add' rather than blendMode='avg'. In this blendMode the background is not overwritten but added to, which is ideal in this instance. On the other...
1,430
Python
.py
33
40.939394
84
0.716655
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,908
MovieStim.py
psychopy_psychopy/psychopy/demos/coder/stimuli/MovieStim.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of MovieStim MovieStim opens a video file and displays it on a window. """ from psychopy import visual, core, constants from psychopy.hardware import keyboard # window to present the video win = visual.Window((800, 600), fullscr=False) # keyboard to listen for...
1,574
Python
.py
52
26.865385
70
0.692512
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,909
textStimuli.py
psychopy_psychopy/psychopy/demos/coder/stimuli/textStimuli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of text rendering in pyglet, including: - how to specify fonts - unicode - rotating text - mirror-image - bidirectional and reshaped Arabic/Farsi text """ from psychopy import visual, core, event from numpy import sin # Create a window to draw in win = visual.Wi...
3,809
Python
.py
101
33.930693
174
0.694934
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,910
textbox_editable.py
psychopy_psychopy/psychopy/demos/coder/stimuli/textbox_editable.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from psychopy import visual, core, event, logging import numpy as np logging.console.setLevel(logging.EXP) c = core.Clock() from psychopy.visual.textbox2 import TextBox2, allFonts win = visual.Window([800, 800], monitor='testMonitor') logging.exp("{:.3f}: created window...
2,190
Python
.py
49
37.653061
322
0.655566
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,911
stim3d.py
psychopy_psychopy/psychopy/demos/coder/stimuli/stim3d.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Demo for 3D stimulus classes. This demonstrates how to render 3D stimuli, set lighting and adjust materials. """ from psychopy import core import psychopy.visual as visual from psychopy.visual import LightSource, BlinnPhongMaterial, BoxStim, SphereStim from psychopy.to...
3,067
Python
.py
81
34.814815
80
0.742568
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,912
screensAndWindows.py
psychopy_psychopy/psychopy/demos/coder/stimuli/screensAndWindows.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Using multiple screens and windows with PsychoPy """ from psychopy import visual, event from numpy import sin, pi # numeric python if True: # use two positions on one screen winL = visual.Window(size=[400, 300], pos=[100, 200], screen=0, ...
1,846
Python
.py
46
35.043478
85
0.654922
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,913
variousVisualStims.py
psychopy_psychopy/psychopy/demos/coder/stimuli/variousVisualStims.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of several visual stimuli depending on the mouse position. """ from psychopy import visual, event, core import numpy win = visual.Window([600, 600], color='black') gabor = visual.GratingStim(win, mask='gauss', pos=[-0.5, -0.5], color=[0, 0, 1], sf=5, ori=30) mo...
1,207
Python
.py
35
31.428571
94
0.652586
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,914
soundStimuli.py
psychopy_psychopy/psychopy/demos/coder/stimuli/soundStimuli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Sound stimuli are currently an area of development in PsychoPy Previously we used pygame. Now the pyo library is also supported. On OSX this is an improvement (using coreaudio rather than SDL). On windows this should help on systems with good sound cards, but this is ...
1,242
Python
.py
35
33.4
108
0.74518
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,915
maskReveal.py
psychopy_psychopy/psychopy/demos/coder/stimuli/maskReveal.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of an efficient visual mask, by modulating its opacity. When you want to reveal an image gradually from behind a mask, the tempting thing to do is to alter a stimulus mask using .setMask() That will actually be very slow because of the overhead in sending textur...
1,834
Python
.py
49
34.510204
77
0.726708
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,916
counterphase.py
psychopy_psychopy/psychopy/demos/coder/stimuli/counterphase.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ There are many ways to generate counter-phase, e.g. vary the contrast of a grating sinusoidally between 1 and -1, take 2 gratings in opposite phase overlaid and vary the opacity of the upper one between 1: 0, or take two gratings overlaid with the upper one of 0.5 opac...
1,281
Python
.py
34
35.235294
83
0.726171
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,917
visual_noise.py
psychopy_psychopy/psychopy/demos/coder/stimuli/visual_noise.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo: Using an arbitrary numpy array as a visual stimulus. Also illustrates logging DEBUG level details to the console. """ from psychopy import visual, event, core, logging import numpy logging.console.setLevel(logging.DEBUG) win = visual.Window([600, 600], allowG...
736
Python
.py
22
30.954545
60
0.71773
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,918
clockface.py
psychopy_psychopy/psychopy/demos/coder/stimuli/clockface.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of using ShapeStim to make a functioning visual clock. """ from psychopy import visual, core, event import numpy, time win = visual.Window([800, 800], monitor='testMonitor') # vertices (using numpy means we can scale them easily) handVerts = numpy.array([ [0, 0.8...
1,300
Python
.py
33
36.272727
72
0.670644
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,919
secondOrderGratings.py
psychopy_psychopy/psychopy/demos/coder/stimuli/secondOrderGratings.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from psychopy import visual, core, event from psychopy.visual.secondorder import EnvelopeGrating from psychopy.visual.noise import NoiseStim import numpy as np win = visual.Window([512, 512], blendMode='add', screen=1, useFBO=True) # comment in to test life without shade...
2,535
Python
.py
55
41.890909
92
0.677602
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,920
customTextures.py
psychopy_psychopy/psychopy/demos/coder/stimuli/customTextures.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Textures (e.g. for a GratingStim) can be created from custom numpy arrays. For this they should be square arrays, with size in powers of two (e.g. 64, 128, 256, 512) A 256x256 array can then be given color efficiently using the normal stimulus methods. A 256x256x3 arr...
1,935
Python
.py
44
41.909091
106
0.751864
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,921
shapeContains.py
psychopy_psychopy/psychopy/demos/coder/stimuli/shapeContains.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo for psychopy.visual.ShapeStim.contains() and .overlaps() Also inherited by various other stimulus types. """ from psychopy import visual, event, core win = visual.Window(size=(500, 500), monitor='testMonitor', units='norm') mouse = event.Mouse() txt = 'click th...
1,712
Python
.py
41
38.097561
82
0.6787
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,922
dot_gabors.py
psychopy_psychopy/psychopy/demos/coder/stimuli/dot_gabors.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of gabor dots, using autodraw. """ from psychopy import visual, core, event # Create a window to draw in win = visual.Window((600, 600), allowGUI=False, monitor='testMonitor', units='deg') # Initialize gabor_shape = visual.GratingStim(win,...
1,142
Python
.py
27
39.148148
107
0.703704
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,923
embeddedOpenGL.py
psychopy_psychopy/psychopy/demos/coder/stimuli/embeddedOpenGL.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo shows how you can make standard opengl calls within a psychopy script, allowing you to draw anything that OpenGL can draw (i.e. anything). """ from psychopy import visual, core from pyglet import gl win = visual.Window([600, 600], units='norm', monitor='tes...
798
Python
.py
26
27.769231
75
0.672346
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,924
gabor.py
psychopy_psychopy/psychopy/demos/coder/stimuli/gabor.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from psychopy import core, visual, event # create a window to draw in win = visual.Window([400, 400.0], allowGUI=False) # INITIALISE SOME STIMULI gabor = visual.GratingStim(win, tex="sin", mask="gauss", texRes=256, size=[1.0, 1.0], sf=[4, 0], ori = 0, name='g...
775
Python
.py
23
30.26087
69
0.667114
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,925
colorPalette.py
psychopy_psychopy/psychopy/demos/coder/stimuli/colorPalette.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from psychopy import locale_setup, visual, core import numpy as np from psychopy.hardware import keyboard from psychopy import misc def createPalette(size): """ Creates the color palette array in HSV and returns as RGB """ # Create array hsv = np.one...
4,240
Python
.py
103
30.757282
83
0.561247
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,926
dots.py
psychopy_psychopy/psychopy/demos/coder/stimuli/dots.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of dot kinematogram """ from psychopy import visual, event, core win = visual.Window((600, 600), allowGUI=False, winType='pyglet') # Initialize some stimuli dotPatch = visual.DotStim(win, color=(1.0, 1.0, 1.0), dir=270, nDots=500, fieldShape='circle', field...
1,017
Python
.py
26
36.384615
97
0.701629
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,927
face_jpg.py
psychopy_psychopy/psychopy/demos/coder/stimuli/face_jpg.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo shows you different image presentation using visual.ImageStim and visual.GratinGstim. It introduces some of the many attributes of these stimulus types. """ # Import the modules that we need in this script from psychopy import core, visual, event # Create a...
1,530
Python
.py
39
36.25641
79
0.709177
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,928
aperture.py
psychopy_psychopy/psychopy/demos/coder/stimuli/aperture.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo for the class psychopy.visual.Aperture(). Draw two gabor circles, one with an irregular aperture and one with no aperture. """ from psychopy import visual, event # Need to allowStencil=True for a window with an Aperture: win = visual.Window([400, 400], allowSte...
1,146
Python
.py
26
42.653846
87
0.706943
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,929
ratingScale.py
psychopy_psychopy/psychopy/demos/coder/stimuli/ratingScale.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo for the class psychopy.visual.RatingScale() author: Jeremy Gray, Example 4 by Henrik Singmann """ from psychopy import visual, event, core, logging import os # create a window before creating your rating scale, whatever units you like: win = visual.Window(fulls...
7,136
Python
.py
141
46.992908
261
0.715375
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,930
shapes.py
psychopy_psychopy/psychopy/demos/coder/stimuli/shapes.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of psychopy.visual.ShapeStim: lines and arbitrary fillable shapes See shapeContains.py for dynamic interaction of ShapeStim and Mouse. """ from psychopy import visual, event, core from psychopy.visual import ShapeStim win = visual.Window(size=(500, 400), units=...
4,854
Python
.py
48
98.5625
2,381
0.55646
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,931
kanizsa.py
psychopy_psychopy/psychopy/demos/coder/stimuli/kanizsa.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Demo for the class psychopy.visual.Pie(). Use the `Pie` class to create a Kanizsa figure which produces illusory contours. """ from psychopy import core import psychopy.visual as visual from psychopy.visual import Pie from psychopy import event # open a window to rend...
971
Python
.py
30
29.533333
79
0.678495
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,932
imagesAndPatches.py
psychopy_psychopy/psychopy/demos/coder/stimuli/imagesAndPatches.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of ImageStim and GratingStim with image contents. """ from psychopy import core, visual, event # Create a window to draw in win = visual.Window((800, 800), monitor='testMonitor', allowGUI=False, color='black') # Initialize some stimuli beach = visual.ImageStim(...
1,637
Python
.py
42
35.47619
92
0.682219
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,933
starField.py
psychopy_psychopy/psychopy/demos/coder/stimuli/starField.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ElementArray demo. This demo requires a graphics card that supports OpenGL2 extensions. It shows how to manipulate an arbitrary set of elements using numpy arrays and avoiding for loops in your code for optimised performance. See also the elementArrayStim demo. """ ...
1,292
Python
.py
35
34.285714
74
0.741961
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,934
compare_text_timing.py
psychopy_psychopy/psychopy/demos/coder/stimuli/compare_text_timing.py
# -*- coding: utf-8 -*- """ Tests the timing of the TextBox, TextBox2, and TextStim: * Time to create and perform the first build() of each stim type. * Time to change the stim text to be displayed and call draw(). * Time to do a draw() call when the stim text content has not changed. At the end of the test, ...
6,917
Python
.py
171
28.877193
79
0.555339
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,935
textbox_simple.py
psychopy_psychopy/psychopy/demos/coder/stimuli/textBoxStim/textbox_simple.py
# -*- coding: utf-8 -*- """ Shows how to create two textBox stim and present them. The first textbox simply displays the text provided, centered. The second textbox shows more of the configuration options available for the stim type. Created on Thu Mar 21 18:37:10 2013 @author: Sol """ from psychopy import visual, co...
2,248
Python
.py
59
25.542373
92
0.529385
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,936
textbox_glyph_placement.py
psychopy_psychopy/psychopy/demos/coder/stimuli/textBoxStim/textbox_glyph_placement.py
# -*- coding: utf-8 -*- """ Shows use of getGlyphPositionForTextIndex() to get exact bounding box for a given glyph based on an index in the text string being shown. Displayed the mouse position in display coord's so the reported glyph position can be validated. Created on Thu Mar 21 18:37:10 2013 @author: Sol """ ...
3,233
Python
.py
78
28.717949
99
0.56114
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,937
keyboard.py
psychopy_psychopy/psychopy/demos/coder/iohub/keyboard.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example of how to access Keyboard events using iohub. Displays information from ioHub Keyboard Events vs. psychopy.event.geKeys(). """ from __future__ import absolute_import, division, print_function from builtins import str from psychopy import core, visual, event f...
7,861
Python
.py
162
44.493827
76
0.706986
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,938
delaytest.py
psychopy_psychopy/psychopy/demos/coder/iohub/delaytest.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tests the round trip delay from when the experiment runtime requests new events from the ioHub server to when a response with >=1 new event is received and ready for use within the experiment script. Only getEvent requests that return with at least one new event are u...
8,759
Python
.py
181
38.41989
110
0.61773
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,939
keyboardreactiontime.py
psychopy_psychopy/psychopy/demos/coder/iohub/keyboardreactiontime.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ keyboard_rt.run.py Keyboard Reaction Time Calculation shown within a line length matching task. Initial Version: May 6th, 2013, Sol Simpson """ from psychopy import core, visual from psychopy.iohub import launchHubServer from math import fabs win = visual.Window((...
2,681
Python
.py
69
34.884058
95
0.668085
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,940
mouse_multi_window.py
psychopy_psychopy/psychopy/demos/coder/iohub/mouse_multi_window.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test for using iohub mouse with multiple windows on multiple monitors. To enable multi window support for the iohub Mouse device: launchHubServer(window=win, Mouse=dict(enable_multi_window=True)) In this mode, if the mouse is over a psychopy window, mouse position is...
4,547
Python
.py
100
37.92
121
0.643455
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,941
mouse.py
psychopy_psychopy/psychopy/demos/coder/iohub/mouse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of using the iohub mouse. """ import sys from psychopy import visual, core from psychopy.iohub import launchHubServer win = visual.Window((1920, 1080), units='height', fullscr=True, allowGUI=False, screen=0) # create the process that will run in the background...
4,117
Python
.py
87
41.586207
119
0.685643
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,942
launchHub.py
psychopy_psychopy/psychopy/demos/coder/iohub/launchHub.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Testing the iohub.launchHubServer function illustrating the different ways it can be used. No PsychoPy Window is created for this demo; results are printed to stdout. Initial Version: May 6th, 2013, Sol Simpson """ from psychopy.iohub import launchHubServer def tes...
6,310
Python
.py
127
41.330709
97
0.679837
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,943
pstbox.py
psychopy_psychopy/psychopy/demos/coder/iohub/serial/pstbox.py
# NOTE: Example currently not working in Python 3. import time import numpy as np from psychopy import core, visual from psychopy.iohub import launchHubServer from psychopy.iohub.devices import Computer ##################################################################### # # Device setup # # Settings for serial po...
3,876
Python
.py
130
26.592308
75
0.619137
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,944
_parseserial.py
psychopy_psychopy/psychopy/demos/coder/iohub/serial/_parseserial.py
# Contains the custom serial parsing function that is used by # the customparser.py demo script. # IMPORTANT: Remember that this code will be called from the iohub server # process, not the psychopy experiment process. # When code is running in the ioHub Server Process, you can have text printed # to the experiment pr...
2,461
Python
.py
45
47.244444
90
0.701536
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,945
customparser.py
psychopy_psychopy/psychopy/demos/coder/iohub/serial/customparser.py
""" Demo using a custom serial rx parser to generate ioHub Serial Device events. The _parseserial.py file is also required for this demo, as it contains the custom parser function that the ioHub Serial device uses during runtime. ** This demo assumes that whatever is written to the device serial port is simply re...
2,935
Python
.py
71
36.211268
107
0.689583
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,946
_wintabgraphics.py
psychopy_psychopy/psychopy/demos/coder/iohub/wintab/_wintabgraphics.py
# -*- coding: utf-8 -*- """ Wintab util objects / functions for stylus, position traces. """ import math from psychopy import visual from psychopy.visual.basevisual import MinimalStim class PenPositionStim(MinimalStim): """Draws the current pen x,y position with graphics that represent the pressure, z axis,...
10,797
Python
.py
234
33.111111
80
0.562571
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,947
pen_demo.py
psychopy_psychopy/psychopy/demos/coder/iohub/wintab/pen_demo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example using the iohub Wintab Pen device. Demo requires a properly installed Wintab compatible device running on Windows. (Wacom digital pen, MS Surface v1 or v2, ...) """ import os import time import _wintabgraphics as wintabgraphics from psychopy import core, visual...
9,638
Python
.py
207
35.082126
100
0.585413
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,948
saveEventReport.py
psychopy_psychopy/psychopy/demos/coder/iohub/iodatastore/saveEventReport.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example for reading events from an iohub hdf5 file. Events can optionally be grouped (typically into trials) by either: 1. Reading iohub experiment messages 2. Reading the iohub .hdf5 condition variables table 3. Reading a psychopy trial-by-trial .csv data (...
2,627
Python
.py
46
51.065217
119
0.696616
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,949
simple.py
psychopy_psychopy/psychopy/demos/coder/iohub/eyetracking/simple.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple iohub eye tracker device demo. Select which tracker to use by setting the TRACKER variable below. """ from psychopy import core, visual from psychopy.iohub import launchHubServer from psychopy.iohub.util import hideWindow, showWindow # Eye tracker to use ('mous...
5,796
Python
.py
129
34.410853
116
0.60347
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,950
validation.py
psychopy_psychopy/psychopy/demos/coder/iohub/eyetracking/validation.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Calibrate, validate, run with GC cursor demo / test. Select which tracker to use by setting the TRACKER variable below. """ from psychopy import core, visual from psychopy import iohub from psychopy.iohub.client.eyetracker.validation import TargetStim from psychopy.ioh...
12,797
Python
.py
226
33.300885
120
0.444763
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,951
run.py
psychopy_psychopy/psychopy/demos/coder/iohub/eyetracking/gcCursor/run.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ gc_cursor_demo/run.py Demonstrates the ioHub Common EyeTracking Interface by displaying a gaze cursor at the currently reported gaze position on an image background. Select which tracker to use by setting the TRACKER variable below. Edit the associated configuration d...
15,476
Python
.py
287
33.292683
117
0.481621
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,952
readTrialEventsByMessages.py
psychopy_psychopy/psychopy/demos/coder/iohub/eyetracking/gcCursor/readTrialEventsByMessages.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example of reading events from an iohub hdf5 file, saving to a tab delimited text file. Events are split into trials by reading the time of 'TRIAL_START' and 'TRIAL_END' experiment Message events. SAVE_EVENT_TYPE and SAVE_EVENT_FIELDS specify the event type, and which...
1,472
Python
.py
28
49.035714
105
0.716968
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,953
readTrialEventsByConditionVariables.py
psychopy_psychopy/psychopy/demos/coder/iohub/eyetracking/gcCursor/readTrialEventsByConditionVariables.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example of reading events from an iohub hdf5 file, saving to a tab delimited text file. The condition variables table is used to split samples into trial groupings, saving condition variable columns with each event. SAVE_EVENT_TYPE and SAVE_EVENT_FIELDS specify the eve...
2,909
Python
.py
55
44.436364
105
0.636172
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,954
parallelPortOutput.py
psychopy_psychopy/psychopy/demos/coder/hardware/parallelPortOutput.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ parallel ports demo This is for win32 only. """ from psychopy import visual, core from psychopy import parallel nFramesOn = 5 nFramesOff = 30 nCycles = 2 parallel.setPortAddress(0x378) # address for parallel port on many machines pinNumber = 2 # choose a pin to wr...
1,340
Python
.py
38
32.289474
76
0.712626
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,955
labjack_u3.py
psychopy_psychopy/psychopy/demos/coder/hardware/labjack_u3.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo for using labjack DAC devices See also http: //labjack.com/support/labjackpython but note that the version shipped with standalone PsychoPy has u3 (and others below an umbrella called labjack) so the import line is slightly different to the documentation on L...
1,357
Python
.py
49
24.163265
68
0.70216
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,956
CRS_BitsPlusPlus.py
psychopy_psychopy/psychopy/demos/coder/hardware/CRS_BitsPlusPlus.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ In PsychoPy 1.81.00 the support for Bits++ has been substantially rewritten and will require a few changes to your code. It will allow a greater range of devices to be used in future (including BitsSharp). From now on, rather than the device/mode being a setting of t...
2,423
Python
.py
57
39.912281
89
0.735745
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,957
CRS_BitsBox.py
psychopy_psychopy/psychopy/demos/coder/hardware/CRS_BitsBox.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo shows you how to use a CRS BitsSharp device with PsychoPy As of version 1.81.00 PsychoPy can make use of the Bits # in any of its rendering modes provided that your graphics card supports OpenGL framebuffer objects. You don't need to worry about setting th...
2,456
Python
.py
59
39.677966
102
0.740445
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,958
egi_netstation.py
psychopy_psychopy/psychopy/demos/coder/hardware/egi_netstation.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo comes from the simple_distilled example provided with pynetstation. Note that egi pynetstation can also be used in a multi-threaded form. See the pynetstation documentation for further information. """ # Set up: import egi.simple as egi # import egi.thread...
1,038
Python
.py
31
31.580645
77
0.740181
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,959
camera.py
psychopy_psychopy/psychopy/demos/coder/hardware/camera.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Simple demo for recording a video from a camera and saving the result to disk. """ import psychopy import time import psychopy.core as core import psychopy.event as event import psychopy.visual as visual from psychopy.hardware.camera import Camera from psychopy.sound.m...
3,174
Python
.py
70
43.371429
94
0.761025
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,960
cedrusRB730.py
psychopy_psychopy/psychopy/demos/coder/hardware/cedrusRB730.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo of using Cedrus RB730 hardware """ from psychopy.hardware import cedrus from psychopy import core import sys rb730 = cedrus.RB730(7, baudrate=115200) # Get RB info print(rb730.getInfo()) # this is the time taken to send a signal to the unit and back via USB: pr...
902
Python
.py
30
27.6
79
0.71875
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,961
testSoundLatency.py
psychopy_psychopy/psychopy/demos/coder/hardware/testSoundLatency.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo allows for automated testing of the sound latency on your system. To use it you need a labjack (or adapt for a similar device) and a cable to connect the earphones jack to the AIN0 (and GND) pins of the labjack. (The PsychoPy team would be interested to hear...
3,821
Python
.py
107
31.607477
101
0.672442
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,962
monitorDemo.py
psychopy_psychopy/psychopy/demos/coder/hardware/monitorDemo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Often you can control monitors simply from the Monitor Center in the PsychoPy application, but you can also create/control them using scripts. This allow you to override certain values for the current run: : mon = monitors.Monitor('testMonitor') # load the testM...
883
Python
.py
19
43.736842
74
0.762573
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,963
qmixPump.py
psychopy_psychopy/psychopy/demos/coder/hardware/qmixPump.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple example of Cetoni neMESYS syringe pump control, based on the `pyqmix` library. The syringe pump system is described in the following publication: CA Andersen, L Alfine, K Ohla, & R Höchenberger (2018): "A new gustometer: Template for the construction of...
2,652
Python
.py
66
33.515152
78
0.652225
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,964
crsBitsAdvancedDemo.py
psychopy_psychopy/psychopy/demos/coder/hardware/crsBitsAdvancedDemo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This demo was created by Andrew Schofield to show how to use the advanced input/output functionality in the bits.py module. It also acts as a test routine to make sure your device is working and that the bits.py module is intact. The bits.py module mostly provides...
28,454
Python
.py
682
33.870968
108
0.577515
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,965
RiftMinimal.py
psychopy_psychopy/psychopy/demos/coder/hardware/RiftMinimal.py
# Minimal Oculus Rift head-mounted display example. Press the 'q' key or use # the application GUI to exit. Requires PsychXR to be installed. # # This file is public domain. # from psychopy import visual, event, core # visual imported, even if not used! # Create a VR session, treat the returned object just like a reg...
1,626
Python
.py
37
39.081081
79
0.713654
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,966
ioLab_bbox.py
psychopy_psychopy/psychopy/demos/coder/hardware/ioLab_bbox.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Demo to illustrate using ioLabs button box. """ __author__ = 'Jonathan Roberts (orig demo); Jeremy Gray (rewrite 2013)' from psychopy.hardware import iolab import random from psychopy import core, visual, event # set up the button box bbox = iolab.ButtonBox() button...
1,871
Python
.py
51
33.313725
85
0.683803
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,967
VSHD_Distortion.py
psychopy_psychopy/psychopy/demos/coder/hardware/VSHD_Distortion.py
# Barrel distortion adjustment example for the Nordic Neural Labs VisualSystemHD # in-scanner display. # # This file is public domain. # from psychopy import visual, event, core # visual imported, even if not used! import numpy as np # Create a VSHD window. Multisampling is enabled to reduce artifacts around # edge ...
1,576
Python
.py
38
37.763158
80
0.709234
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,968
RiftHeadTrackingExample.py
psychopy_psychopy/psychopy/demos/coder/hardware/RiftHeadTrackingExample.py
# Oculus Rift head-mounted display example for rendering 3D with head tracking. # Press the 'q' key or use the application GUI to exit. Press 'r' to recenter # the HMD's view. Requires PsychXR 0.2+ to be installed. # # This file is public domain. # from psychopy import visual, event, core from psychopy.tools import arr...
3,626
Python
.py
79
40.64557
82
0.707732
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,969
draw grid stim.py
psychopy_psychopy/psychopy/demos/builder/Experiments/dragAndDrop/draw grid stim.py
import os import random from PIL import Image, ImageDraw # Grid parameters grid_size = 100 # Size of each grid square gap_size = 5 # Size of the gap between grid squares num_rows = 3 # Number of rows in the grid num_cols = 3 # Number of columns in the grid total_grids = num_rows * num_cols num_images = 10...
2,157
Python
.py
48
39.083333
119
0.66348
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,970
serialdevice.py
psychopy_psychopy/psychopy/hardware/serialdevice.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Base class for serial devices. Includes some convenience methods to open ports and chec...
13,102
Python
.py
323
29.108359
98
0.558812
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,971
brainproducts.py
psychopy_psychopy/psychopy/hardware/brainproducts.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for `Brain Products GMBH <https://www.brainproducts.com>`_ hardware. Here w...
1,017
Python
.py
24
38.75
79
0.744422
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,972
microphone.py
psychopy_psychopy/psychopy/hardware/microphone.py
import sys import time import numpy as np from psychtoolbox import audio as audio from psychopy import logging as logging, prefs from psychopy.localization import _translate from psychopy.constants import NOT_STARTED from psychopy.hardware import BaseDevice, BaseResponse, BaseResponseDevice from psychopy.sound.audiode...
49,810
Python
.py
1,133
33.427184
104
0.61631
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,973
labjacks.py
psychopy_psychopy/psychopy/hardware/labjacks.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """This provides a basic LabJack U3 class that can write a full byte of data, by extending...
980
Python
.py
23
39.217391
80
0.745263
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,974
button.py
psychopy_psychopy/psychopy/hardware/button.py
from psychopy import logging, constants, core from psychopy.hardware import base, DeviceManager, keyboard from psychopy.localization import _translate class ButtonResponse(base.BaseResponse): # list of fields known to be a part of this response type fields = ["t", "value", "channel"] def __init__(self, t...
7,055
Python
.py
173
31.127168
102
0.627099
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,975
photodiode.py
psychopy_psychopy/psychopy/hardware/photodiode.py
import json from psychopy import core, layout, logging from psychopy.hardware import base, DeviceManager from psychopy.localization import _translate from psychopy.hardware import keyboard class PhotodiodeResponse(base.BaseResponse): # list of fields known to be a part of this response type fields = ["t", "va...
30,750
Python
.py
777
27.976834
118
0.562981
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,976
emotiv.py
psychopy_psychopy/psychopy/hardware/emotiv.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for EMOTIV devices such as button boxes. These are optional components that...
1,017
Python
.py
26
34.807692
79
0.730964
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,977
keyboard.py
psychopy_psychopy/psychopy/hardware/keyboard.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """To handle input from keyboard (supersedes event.getKeys) The Keyboard class was new in PsychoPy 3.1 and replaces the older `event.getKeys()` calls. Psychtoolbox versus event.getKeys ------------------------------------ On 64 bits Python3 installations it provides ac...
37,702
Python
.py
815
35.206135
116
0.578229
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,978
eyetracker.py
psychopy_psychopy/psychopy/hardware/eyetracker.py
from psychopy.constants import STARTED, NOT_STARTED, PAUSED, STOPPED, FINISHED from psychopy.alerts import alert from psychopy import logging from psychopy.iohub.devices import importDeviceModule from psychopy.tools.attributetools import AttributeGetSetMixin from copy import copy import importlib import sys class Eye...
4,614
Python
.py
113
31.575221
91
0.63967
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,979
listener.py
psychopy_psychopy/psychopy/hardware/listener.py
import sys import threading import time from psychopy import logging class ListenerLoop(threading.Thread): """ Asynchonous execution loop to continuously poll a device for new messages. Not recommended if using listeners within an experiment. Attributes ---------- devices : list[BaseDevice] ...
9,931
Python
.py
286
25.594406
120
0.592253
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,980
minolta.py
psychopy_psychopy/psychopy/hardware/minolta.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Minolta light-measuring devices. These are optional components that can...
725
Python
.py
14
49.571429
120
0.7849
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,981
cedrus.py
psychopy_psychopy/psychopy/hardware/cedrus.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Cedrus Corporation devices such as button boxes. These are optional com...
853
Python
.py
23
34.434783
79
0.765281
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,982
manager.py
psychopy_psychopy/psychopy/hardware/manager.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Hardware device management. """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). __all__ = [ 'deviceManager', 'getDeviceManage...
30,801
Python
.py
821
27.539586
100
0.60167
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,983
__init__.py
psychopy_psychopy/psychopy/hardware/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import glob from itertools import chain from psychopy import logging from . import eyetracker, listener from .manager import DeviceManager, deviceManager from .base import BaseDevice, BaseResponse, BaseResponseDevice try: from collections.abc import Iterabl...
7,038
Python
.py
182
30.115385
80
0.615802
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,984
emulator.py
psychopy_psychopy/psychopy/hardware/emulator.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Software fMRI machine emulator. Idea: Run or debug an experiment script using exactly ...
985
Python
.py
31
28.967742
79
0.761194
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,985
base.py
psychopy_psychopy/psychopy/hardware/base.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Base class for hardware device interfaces. """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). __all__ = [ 'BaseDevice' ] import ...
12,630
Python
.py
326
28.941718
119
0.606982
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,986
iolab.py
psychopy_psychopy/psychopy/hardware/iolab.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for ioLab Systems button boxes. These are optional components that can be o...
1,067
Python
.py
28
34
79
0.726744
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,987
qmix.py
psychopy_psychopy/psychopy/hardware/qmix.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Cetoni neMESYS syringe pump systems. These are optional components that...
1,212
Python
.py
34
30.205882
79
0.695132
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,988
labhackers.py
psychopy_psychopy/psychopy/hardware/labhackers.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """This provides basic LabHackers (www.labhackers.com) device classes. These are optional...
864
Python
.py
20
39.65
79
0.746714
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,989
pr.py
psychopy_psychopy/psychopy/hardware/pr.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Photo Research Inc. spectroradiometers. These are optional components t...
760
Python
.py
14
52.071429
130
0.793758
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,990
forp.py
psychopy_psychopy/psychopy/hardware/forp.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Current Designs Inc. devices such as button boxes. This class is only u...
1,358
Python
.py
34
35.411765
79
0.705167
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,991
speaker.py
psychopy_psychopy/psychopy/hardware/speaker.py
from psychopy.hardware import BaseDevice, DeviceManager from psychopy.sound import setDevice, getDevices, backend from psychopy.tools import systemtools as st from psychopy import logging class SpeakerDevice(BaseDevice): def __init__(self, index, channels=2, sampleRateHz=48000): # store channels and sampl...
4,799
Python
.py
112
29.8125
99
0.559802
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,992
gammasci.py
psychopy_psychopy/psychopy/hardware/gammasci.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). """Interfaces for Gamma-Scientific light-measuring devices. Tested with S470, but should ...
663
Python
.py
13
49.076923
118
0.786604
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,993
__init__.py
psychopy_psychopy/psychopy/hardware/buttonbox/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Classes and functions for button boxes. This module serves as the entry point for plugin classes implementing third-party button box interfaces. All installed interfaces are discoverable by calling the :func:`getAllButtonBoxes()` function. """ # Part of the PsychoPy l...
2,987
Python
.py
90
28.1
79
0.694241
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,994
parallel.py
psychopy_psychopy/psychopy/hardware/triggerbox/parallel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Trigger interface for the parallel port. This module provides a simple trigger interface using the computer's parallel port. """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the te...
10,530
Python
.py
268
29.716418
83
0.60452
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,995
__init__.py
psychopy_psychopy/psychopy/hardware/triggerbox/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Classes and functions for using trigger boxes. Trigger boxes are used to send electrical signals to external devices. They are typically used to synchronize the presentation of stimuli with the recording of physiological data. This module provides a common interface for...
1,798
Python
.py
42
39.071429
81
0.759472
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,996
base.py
psychopy_psychopy/psychopy/hardware/triggerbox/base.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Base classes for trigger box interfaces. Trigger boxes are used to send electrical signals to external devices. They are typically used to synchronize the presentation of stimuli with the recording of physiological data. This module provides a common interface for acces...
3,929
Python
.py
125
23.4
79
0.584996
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,997
__init__.py
psychopy_psychopy/psychopy/hardware/mouse/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Classes and functions for interfacing with pointing devices (i.e. mice). """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). __all__ =...
29,029
Python
.py
697
32.837877
80
0.627238
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,998
bits.py
psychopy_psychopy/psychopy/hardware/crs/bits.py
from psychopy.tools.pkgtools import PluginStub class BitsSharp( PluginStub, plugin="psychopy-crs", doclink="https://psychopy.github.io/psychopy-crs/coder/bits/#psychopy_crs.bits.BitsSharp" ): pass class BitsPlusPlus( PluginStub, plugin="psychopy-crs", doclink="https://psychopy.github...
766
Python
.py
25
26.48
104
0.747956
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)
5,999
shaders.py
psychopy_psychopy/psychopy/hardware/crs/shaders.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2024 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). # Acknowledgements: # Written by Jon Peirce # # Based on shader code for mono++ and ...
843
Python
.py
24
32.291667
79
0.737361
psychopy/psychopy
1,662
900
218
GPL-3.0
9/5/2024, 5:09:29 PM (Europe/Amsterdam)