Skip to main content

A Python package for converting EyeLink .asc files to structured .csv files.

Project description

ascii2edf

ascii2edf is a Python package developed for converting EyeLink .asc files into structured .csv files, facilitating the analysis of eye-tracking data. It extracts gaze data and event details such as blinks, saccades, and fixations, organizing them into an easy-to-use format.

Features

  • Converts EyeLink .asc files to .csv format efficiently.
  • Extracts and processes blink (EBLINK), saccade (ESACC), and fixation (EFIX) event data.
  • Aligns timestamps relative to trial start for consistent temporal analysis.
  • Handles missing data by combining event and sample data fields where applicable.

Installation

To install the package, run:

pip install ascii2edf

Usage

Import the package and use the process_asc_file() function:

import ascii2edf as convert

convert.process_asc_file('input_file.asc', 'output_file.csv', header=True)

Parameters

  • input_file_path (str): Path to the input .asc file.
  • output_csv_path (str): Path to save the output .csv file.
  • header (bool, optional): Whether to include a header row in the output CSV. Default is True.

Requirements

  • Python >= 3.6
  • pandas

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement, please submit a pull request or open an issue.

Creator and Maintainer

Mohammad Ahsan Khodami

Acknowledgments

  • The EyeLink system and data format are provided by SR Research.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asc2csv-1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asc2csv-1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file asc2csv-1.2.tar.gz.

File metadata

  • Download URL: asc2csv-1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for asc2csv-1.2.tar.gz
Algorithm Hash digest
SHA256 b0dce159578f1851b4379ac4dc02ff2ee2c2ccfb92a171cc8ada913c4e304eb2
MD5 60c3a706b5f810e0563e72bf1f19e405
BLAKE2b-256 72996950d3f3579fba73d2149f120f8d51c0459cf16889a85e6a9e211fe6191e

See more details on using hashes here.

File details

Details for the file asc2csv-1.2-py3-none-any.whl.

File metadata

  • Download URL: asc2csv-1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for asc2csv-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0c7ff16e575d24ce4e8daf92b7e421ed4422c1a8bf44356249e023772096293
MD5 20bf8478a329c64338eccfa962a9e902
BLAKE2b-256 52b2e1eb3c22b2ee08ea9dc42447665bb6ebf58870e3c2c991bb301a8655ccd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page