Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 3.51 KB

README.md

File metadata and controls

30 lines (29 loc) · 3.51 KB

PyHab

Documentation Status
Looking time and stimulus presentation system for PsychoPy.

What is PyHab?

Research with human infants (and some non-human animals) often relies on measuring looking times. Manual looking time coding is still very common. Currently, they are only a handful of programs built for this purpose, especially for live coding of looking times (during the experiment), and those programs are old, opaque, and difficult to integrate with stimulus presentation. Many studies that control stimulus presentation on the basis of infant's looking (starting a trial when they look at the display, ending it when they look away for a given period of time) still require two experimenters, one to control the stimuli and one to code the looking times.

I felt that it was time for an update, so I built a script that runs in PsychoPy (freely available from psychopy.org) that can both replace older looking-time coding software with something open-source, and also control stimulus presentation directly.

Important notes

  • PyHab is not a stand-alone program. It is a script that runs in PsychoPy. You will need to install PsychoPy. The latest stable version can be found at psychopy.org/download.html
  • I strongly recommend using PsychoPy version 2023.2.0 or later (as of August 2023).
  • PyHab has a graphical interface for building new studies, but you will still need to open the program initially in PsychoPy's coder view. Read the manual before your begin!
  • PyHab is still very much in development! Don't be shy about contacting me for feature requests. It is now much more flexible than it was, but there are still some designs it cannot produce I'm sure, and I would love to hear about them.
  • If you do use PyHab for a study that you then submit for publication, please cite both PsychoPy and PyHab. PyHab relies very heavily on PsychoPy (but is not directly affiliated with or developed by the makers of PsychoPy), so credit is due as much to them as it is to me.
  • Please join the Pyhab announcements mailing list for news about updates and important technical information
  • KNOWN ISSUES:
  • Multi-monitor setups where one of the monitors is a Mac Retina display can sometimes offset the location of the stimulus window or distort the contents of the coder window. There may be a work-around but it depends on what version of MacOS you're using.
  • There were several issues with the sound system prior to PsychoPy 2023.2.0, but the newest version of PsychoPy seems to have fixed all of them. Hooray!

Installing PyHab and Getting Started

Click here for the installation and quick-start guides

Citing PyHab and PsychoPy

If you use PyHab, please cite both of the following:

  • Follow the guidelines for citing PsychoPy: http://psychopy.org/about/index.html#citingpsychopy
  • Kominsky, J. F. (2019) PyHab: Open-Source Real Time Infant Gaze Coding and Stimulus Presentation Software. Infant Behavior & Development, 54, 114-119. doi:10.1016/j.infbeh.2018.11.006