Skip to main content

Python program to rerun eye health diagnostic group's recording data

Project description

OKNRERUN

Python program to rerun eye health diagnostic group's recording data.
In the rerunning process, it will copy all data into a new folder(which will never overwrite the original folder) except config and trials data.
Then, it will rerun trial data which includes the pupil detection(optional), updating trial csv, okn detection, applying okn rules and drawing the trial plot.
At the end of trial rerunning, it will also produce summary csv and summary plot for all trials.

External Program Requirement

ffmpeg

We need ffmpeg when we are rerunning the recording with pupil detection in order to split the video.
We do not need ffmpeg if we are rerunning without using pupil detector.

Installation requirements and guide

Anaconda

To install this program, Anaconda python distributing program and Anaconda Powershell Prompt are needed.
If you do not have Anaconda, please use the following links to download and install:
Download link: https://www.anaconda.com/products/distribution
Installation guide link: https://docs.anaconda.com/anaconda/install/

PIP install

To install oknrerun, you have to use Anaconda Powershell Prompt.
After that, you can use the oknrerun from any command prompt.
In Anaconda Powershell Prompt:

pip install oknrerun

To check and upgrade version

In Anaconda Powershell Prompt, To check current version

oknrerun --version

To upgrade

pip install -U oknrerun

Usage

We can rerun a recording folder with or without pupil detector.

Without pupil detector

oknrerun -d (directory to recording folder to be rerun) -okndl (directory to okndetector)

With pupil detector

oknrerun -d (directory to recording folder to be rerun) -okndl (directory to okndetector) -pd (type or indicator)

type or indicator

Type = type of pupil detector such as opm and plm.
Note: Currently there is only opm type.
Indicator = on, y, 1 or true.

Optional flags/arguments

  1. -uc (directory to updater config(gazefilters.json))
  2. -okndc (directory to okn detector config(okndetector.gaze.config))
  3. -pi (directory to plot info(oknserver_graph_plot_config.json))
  4. -ri (directory to rule info(the config file which include rules))
  5. -bl (buffer length of tiny fill buffer to be used with pupil detector). Default is 7.
  6. -opmdc (directory to opm detector config(opm_detector_config.json))
  7. -es (extra string to give the name of updated trial csv). Default is updated_.
  8. -di (direction input to overwrite the direction of existing recording direction of all trials)

To check built-in config information and defaults

oknrerun --display (config name or defaults)

Available names

  1. uc (updater config)
  2. okndc (okn detector config)
  3. opmdc (opm detector config)
  4. pi (plot info)
  5. ri (rule info)
  6. defaults

Example usage

oknrerun --display uc

This will display the built-in information of updater config (gazefilters.json).

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

oknrerun-1.0.3.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

oknrerun-1.0.3-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file oknrerun-1.0.3.tar.gz.

File metadata

  • Download URL: oknrerun-1.0.3.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for oknrerun-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3aa88e4094eeda5e5d2368366247c88d6c98c62f33f4cf49717d2428f5c17983
MD5 96e4c3243b2f783b1d7786c6449ee4cb
BLAKE2b-256 7c83dffc0bf93671008f936075e316e19956a187ed3b439e6f2e26ed30e5a4a1

See more details on using hashes here.

File details

Details for the file oknrerun-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: oknrerun-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for oknrerun-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 883a85169f32333152ecbe341f0df7dd141945de33f8835f6ccfcec4a68c8ee3
MD5 771204635d81800f0070412aedefbabf
BLAKE2b-256 23fd7b9f4c2510cd424ab551cab8192d7a0035f9d2b311ee68f0093bfe053349

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