Skip to main content

CSV parsing and analysis for PainFace generated CSVs

Project description

PainFace Data Analysis Suite

Welcome to the official package for PainFace grimace data analysis!

  • This package offers a few handy methods that you can use to extract useful metrics and action unit data from the raw .csv data exported by PainFace

Installation

  • Open Command Prompt/Terminal or whatever shell you choose.
  • If you do not already have pip installed, follow the instructions at this link: https://pip.pypa.io/en/stable/installation/
  • Once pip is installed, simply use the below command to install.
pip install painface

Usage

Windows:

  1. Once painface is installed, ensure that all of the raw .csv file data that you have exported from PainFace is in one folder/directory.
  2. Then, once you are inside the folder/directory in which all of your csv files are located, right click in the Explorer, and select Open in Terminal. This is especially important, as you must be in the directory with all of your data in order for the data filtering commands to work properly.
  3. Once the terminal has opened, Open a python environment by typing in
python

followed by

import painface

The painface pacakage contains two key methods: batch_grimace and AU_grimace

Batch_grimace:

  • This method is the first method you will typically use in order to generate individualized csv files which serve as the initial filtering of the data. In addition to these csv files, a data_log.csv file will be generated with a summarized set of results for your data.
  • The method parameters are threshold, start time, stop time, and the threshold for the number of action units (the threshold should be between 1 and 5 units)
  • To use the method, use the command:
painface.batch_grimace(threshold, start, stop, AUThreshold)

and replace each of the parameters with your desired values. You will likely be prompted with the number of files that you wish to be processed, so just type Y or N depending on if the number of files looks correct or not.

AU_grimace:

  • This method is used to generate a timeseries analysis of each of the possible action unit scoring combinations, and uses the .csv files generated by the batch_grimace command as an input.
  • The method parameters are threshold, start time, and stop time
  • To use the method, use the command:
painface.AU_grimace(threshold, start, stop)

and replace each of the parameters with your desired values.

KEEP IN MIND THAT YOU MUST USE batch_grimace BEFORE USING AU_grimace

License

MIT

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

painface-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

painface-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file painface-0.1.1.tar.gz.

File metadata

  • Download URL: painface-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for painface-0.1.1.tar.gz
Algorithm Hash digest
SHA256 73be2a42116bf19fb7dc5fd0af5df707691be81350fff4edb34d2cbd45f38d66
MD5 48fa7ba3bd9e4691d88d6aebe385493b
BLAKE2b-256 19b06a16f8bf9a23578c973891da137be3f88f7a87773330e68d72e1c2460514

See more details on using hashes here.

File details

Details for the file painface-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: painface-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for painface-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1954d86692fef84da6b9a50d8aad9361093b9c7e5e401d9517ac4eda54c5cf16
MD5 5e8f33ce4212453e292e333a80456261
BLAKE2b-256 b8dc21b646285c28e2f6502bc7fe67f97f9f2519478315eb004c52abe43cc45c

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