Skip to content

Regenerate Data Files

Overview

As of SightLab 2.5 you can now regenerate data from sessions that have already been run. This allows you to test different thresholds (like time for dwell, fixations, noise reduction, etc.) or re-run older sessions with updated algorithms and access new data files.

Here are the steps to regenerate data files.

  1. You will need to take your entire Data/date_time_experiment_data folder and place it in a new folder (can call it something like "regenerated data"). Note, there is also an example script you could use located at ExampleScripts/regenerate_test.
  2. Place the folder or folders you want to regenerate in a new folder and call it something like "Data"
  3. Copy the regenerate_Test.py file into this folder or use the Example Script, or just add the following code to a new script in your regenerate folder
import sightlab_utils.sightlab as sl
from sightlab_utils.settings import *

sightlab = sl.SightLab()

#Put the name of the folder where your original data is
sightlab.regenerateDataFiles('Data')
  1. Run the regenerate script and the regenerated files will be in a new folder called Data_regenerated. You can re-run the same folder with different thresholds as many times as you want and they will appear in a new folder.

Options available include:

folderPath,

dispersionThreshold,

durationThreshold,

dwellThreshold, fileType (per trial or combined),

noiseReductionThreshold,

flipEyePitch (set this to True if using a data file prior to SightLab 2.6 and want to make eye pitch down negative instead of positive, which is now the default)

Was this page helpful?