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 asc2csv

Usage

Import the package and use the process_asc_file() function:

import asc2csv 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.3.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.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asc2csv-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 2d3093a028ea18e5be0e71b19ee7d06bb34f60c8857a12d3a47a6edae006f841
MD5 e32791a8d1ad322ff1229d964c0ec41e
BLAKE2b-256 fea4c9b93401fac2aa66467cf70da4bc5e0b9d18770a523f55ca718fe2ae588f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asc2csv-1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea705d3aba98a3a4157507e01e317da1fbbbec206d2740eb37df30a644af712
MD5 0792840b0e279d82566281a9e82b97a8
BLAKE2b-256 d9920e368716bc19b8a1bc51cc0985936d60d403ccf6acc3b9c99b426d0f0ed7

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