Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# hedfpy hedfpy is a tool to convert SR Research eyelink eye position and pupil size data to hdf5 format. hedfpy can also preprocess the data to the starting point of most standard pupil size analyses, for example those performed using [FIRDeconvolution](https://github.com/tknapen/FIRDeconvolution “FIRDeconvolution”). These are: - Blink detection (over and above the eyelink’s own blink detection mechanisms) - Blink interpolation (linear/spline) - (Micro)Saccade detection (possibly over and above the eyelink’s own blink detection mechanisms, using Engbert and Mergenthaler, PNAS 2006 algorithm) - Band-pass filtering of pupil size signals using Butterworth filters. - Cleaning up the pupil size signal based on a nuisance GLM which estimates the effects of blinks, (micro)saccades, and gaze position (foreshortening of the pupil).

## MSG format for full parsing of the edf file data, hedfpy assumes a specific trial-based experimental format that is communicated to the eye tracker. Specifically, it looks for explicitly formatted messages by means of regular expressions. These messages detail the start and end of trial phases, trials, button press events, sound events and the stimulus parameters for a given trial which are all stored in tabular format in the HDF5 file. The parsing of these messages can be turned off for basic functionality.

## Dependencies numpy, scipy, matplotlib, statsmodels, sklearn, tables, lmfit

Further install requirements: hdf5 libraries, edf2asc command-line utility from [SR Research](http://www.sr-research.com “SR Research”)

TODO 1. For now, the edf_message_data_to_hdf method of HDFEyeOperator and EDFOperator searches for both eyelink-generated and experiment-generated MSG strings in the edf file’s output. The eyelink generated messages are standard, but the experiment-generated ones are not. At the moment, the methods that tease these messages apart dissect the EDF’s output into trial timings, trial phase timings, trial parameters, button press and sound occurrences based on regular expressions that are hard-coded in the EDFOperator. This needs to be parceled out of the code so that this becomes more generally user-friendly. 2. hedfpy now processes an edf file according to a fixed set of preprocessing steps (see the code in HDFEyeOperator’s edf_gaze_data_to_hdf). These need to be made elective at some point.

Metadata

Release files for hedfpy 0.0.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedfpy 0.0.dev3
File Size Uploaded Provenance Actions
hedfpy-0.0.dev3.tar.gz 3.8 MB Without provenance Details for hedfpy-0.0.dev3.tar.gz

Release files / hedfpy-0.0.dev3.tar.gz

Download URL hedfpy-0.0.dev3.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ee3b0c18319b36c6a1e2bb2882293cd8cca8d73fd626d22aa465fe89dd4b8e19
BLAKE2b-256 checksum
How to use checksums
1103238b663a167c75221335b0036ac38fc0a812adcda4b36eae91475cce076e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hedfpy 0.0.dev3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page