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.

change Log and Updates


V 1.4 Update 12/11/24 make adding header=True in conversion optional. By default header=True is applied.

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')

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.4.tar.gz (4.4 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.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asc2csv-1.4.tar.gz
Algorithm Hash digest
SHA256 aa91ec115d2f08908653a088efaa018a89feaf47d475002889af665a0dd52e46
MD5 0d43fd753d61dd822f21d3a61bd1ea13
BLAKE2b-256 8ebe54b98df6958a9447e211c82c355c42f2782fac4a3331d5fe1971d43fe0d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asc2csv-1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc14be304a5439c28253cdb10ef6c3453b411934eb66e55c74dfd55c7b1cf3c
MD5 52d0e2087f6762fe493bf8c0c9bb9cc3
BLAKE2b-256 57d945b9f38c95a621a74e1592111291f8e7c64a9a58825b9ffeb6f142b2bbc5

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