Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

00_luminance_meas.py 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. # a simple script which presents the grey, white, and green colours used in the experiment
  2. # I use this to record screen luminance
  3. from psychopy import visual, core, monitors, event
  4. # set up ViewPix monitor
  5. mon_Hz = 60 # refresh rate
  6. mon_framelen = 1/mon_Hz # length of one frame in seconds
  7. mon = monitors.Monitor(name='ViewPix', notes='{0}Hz'.format(mon_Hz))
  8. mon.setWidth(52)
  9. mon.setDistance(48)
  10. mon.setSizePix((1920, 1080))
  11. # mon.setSizePix((750, 500))
  12. mon.saveMon()
  13. # set up the Psychopy window
  14. win = visual.Window(fullscr=True,
  15. size=mon.getSizePix(),
  16. screen=1,
  17. monitor=mon,
  18. units='deg',
  19. color=[0, 0, 0])
  20. # hide the mouse
  21. event.Mouse(visible=False)
  22. colours = [[0,0,0], [1,1,1], [-1,-1,-1], [1,-1,-1], [-1,1,-1], [-1,-1,1]]
  23. print('Press space to continue...')
  24. for c in colours:
  25. print('Colour: {}'.format(c))
  26. win.color = c
  27. win.flip()
  28. win.flip()
  29. event.waitKeys(keyList='space')