Configuration#
The MultiplEYE pEYEpline uses a central configuration system to manage all parameters, ensuring reproducible and consistent data processing.
Loading Precedence#
The pEYEpline searches for configuration in the following order:
CLI Argument:
--config_path your_config.yamlwhen running the preprocessing script.Environment Variable:
MULTIPLEYE_CONFIGpointing to a YAML file.Local Default:
multipleye_settings_preprocessing.yamlin your current working directory.
If no configuration is found, the pEYEpline will:
Copy a template to
multipleye_settings_preprocessing.yamlin your current directory.Display a message with instructions.
Stop execution.
You must then edit the file (at least set data_collection_name) and rerun the command.
Initial Setup#
When you run the pEYEpline for the first time in a new directory, it will create a template for you.
uv run run_preprocessing
After it stops, open multipleye_settings_preprocessing.yaml and configure your session.
Configuration Settings#
Settings are divided into user-configurable parameters and internal constants.
User Settings (Required & Common)#
DATA_COLLECTION_NAME: (Required) A unique identifier for your collection.Format:
MultiplEYE_[LANG]_[COUNTRY]_[CITY]_[LAB_NO]_[YEAR]Example:
MultiplEYE_EN_UK_London_1_2026Note: This name has been given to you by the MultiplEYE project. It is used to determine data and output paths. If it doesn’t match the required 6-part format, the pEYEpline might fail to resolve certain paths.
OVERWRITE:trueto reprocess existing data,false(default) to skip already processed sessions.EXPERIMENT_TYPE:MultiplEYE(default) orMeRID.INCLUDE_SESSIONS/EXCLUDE_SESSIONS: Optional lists to filter which sessions are processed.INCLUDE_PILOTS:trueto include data from pilot folders (default:false).EXPECTED_SAMPLING_RATE_HZ: The sampling rate of your eye tracker (default:1000).
Less commonly changed user settings#
DATASET_DIR: The path where your raw data is located. By default, this isdata/[DATA_COLLECTION_NAME].OUTPUT_DIR: The path where preprocessed data will be saved. By default, this ispreprocessed_data/[DATA_COLLECTION_NAME].ALLOW_PQ_FALLBACK(allow_pq_fallback):false(default) requires the participant questionnaire workbooks. If they are missing, the preflight check fails. Set totrueto continue with raw questionnaire values and a warning. The workbooks are expected indata/[DATA_COLLECTION_NAME]/participant_questionnaire_*/or underdocumentation/questionnaire/and are copied to[OUTPUT_DIR]/documentation/questionnaire/together with the generatedpq_codebook.yamlandpq_mapping_<lang>.yaml. With fallback enabled, processing continues with a warning. Questionnaire fields that cannot be mapped to canonical codes stay empty in the participant view, and raw answers remain in the source JSON.PARTICIPANT_GROUPS(participant_groups): optional groups for merging different PIDs into one participant row or restricting a group to specific session IDs. Labels must be unique 3-digit IDs. See Participant Overview.
A copy of the config file used for a run is saved to
[OUTPUT_DIR]/metadata/[config_filename] and overwritten on every re-run, so the
output folder always records the exact settings the data was processed with.
Event Detection Settings#
These control fixation/saccade detection and velocity estimation. The defaults match the
published MultiplEYE pipeline. Change them only with a clear methodological reason. Whatever
values are used are recorded in the dataset overview processing_config section.
DETECTION_EYE: eye selection for event detection (auto,left,rightor null; default:auto).FIXATION_METHOD: fixation detection method (ivtoridt; default:ivt).FIXATION_MINIMUM_DURATION_MS: minimum fixation duration in milliseconds (default:100).FIXATION_VELOCITY_THRESHOLD: IVT velocity threshold in degrees/second (default:20.0).FIXATION_DISPERSION_THRESHOLD: IDT dispersion threshold (default:1.0).FIXATION_INCLUDE_NAN: split fixation events on missing samples (default:false).SACCADE_METHOD: saccade detection method (default:microsaccades).SACCADE_MINIMUM_DURATION: minimum saccade duration in samples (default:6).SACCADE_THRESHOLD: data-driven threshold method or an explicit two-value threshold (default:engbert2015).SACCADE_THRESHOLD_FACTOR: noise-adaptive velocity threshold factor (default:6.0).SACCADE_MINIMUM_THRESHOLD: minimum threshold value (default:1e-10).SACCADE_INCLUDE_NAN: split saccade events on missing samples (default:false).VELOCITY_ESTIMATION_METHOD: velocity estimation method (preceding,neighbors,fivepoint,smoothorsavitzky_golay; default:savitzky_golay).VELOCITY_SMOOTHING_WINDOW_MS: velocity window length in milliseconds (default:50).VELOCITY_POLYNOMIAL_DEGREE: Savitzky-Golay polynomial degree (default:2).VELOCITY_PADDING: Savitzky-Golay padding (default:nearest).
Data Loss Settings#
DATA_LOSS_MISSINGNESS_COLUMN: sample column used to detect missing data (default:pixel).
Fixation Correction Settings#
These control the drift correction of fixation locations. Correction is on by default
and is the normal path for new data collections. Whatever values are used are recorded in the
dataset overview processing_config section. See Fixation Correction for the output
contract.
RUN_FIXATION_CORRECTION: whether to correct fixation locations for line drift (default:true). Corrected fixations land on the original AOIs, so AOI enlargement isnone. All downstream outputs (scanpaths, reading measures, sanity plots) use the corrected fixations. The raw detected fixations are written tofixations_uncorrected/, a subfolder of the processed data collection. Set this tofalseto disable correction; then AOI enlargement ishalf_line_spacing.FIXATION_CORRECTION_ALGORITHM: drift correction algorithm passed to pymovements. Either a single algorithm (attach,chain,cluster,compare,merge,regress,segment,slice,split,stretch,warp) orwisdom_of_the_crowd(aliaswoc), the ensemble default that combines all algorithms via majority voting.FIXATION_CORRECTION_KWARGS: additional tuning parameters for the drift algorithms, e.g.{"x_thresh": 250.0}. An entry is routed only to algorithms whose signature accepts it, but it fans out to all of them, so use with care.FIXATIONS_UNCORRECTED_FOLDER: name of the raw-fixation subfolder inside the processed data collection. Default:fixations_uncorrected/.
The final-dot position is not a pipeline setting. It is derived from the stimulus config. Newer
configs can provide POS_BOTTOM_DOT_X_PX, POS_BOTTOM_DOT_Y_PX and FIX_DOT_RADIUS. Older
configs fall back to the image generator geometry. See Fixation Correction.
The script direction is also not a pipeline setting. LabConfig is loaded per stimulus version,
so each session uses the Script_direction and dot geometry from the stimulus folder it actually
saw. Missing Script_direction values fall back to ltr.
Stimulus Content Versions#
stimulus_versions assigns each participant to a stimulus folder. default_version: null uses
the suffix-less folder stimuli_<dcn>/. Each suffix under versions maps to the sibling folder
stimuli_<dcn>_<suffix>/. A participant may appear in only one version bucket. Participants not
listed under versions use the default folder.
stimulus_versions:
default_version: null
versions:
v2:
- "008"
- "010"
For the collection MultiplEYE_XX_XX_Example_1_2026, the default folder is
stimuli_MultiplEYE_XX_XX_Example_1_2026/ and the v2 folder is
stimuli_MultiplEYE_XX_XX_Example_1_2026_v2/.
The suffix is only a folder name. It does not set the script direction or any other processing setting.
Mixed Script Directions#
If a collection has sessions with different script directions, assign the matching stimulus folder
to each participant with Stimulus Content Versions. The version suffix can be vertical,
v2, ttb or any other folder name. It does not set the direction.
The Script_direction in the lab configuration for each version must match the direction that was
used when the stimuli were generated. It is not a free processing choice. A vertical version has:
"Script_direction": "ttb"
A horizontal default version normally has "ltr". The pipeline loads the lab configuration for
each session, so AOI enlargement, fixation correction and final-dot handling use the direction of
the folder that session saw. The dataset overview records the groups in
administrative.script_directions.
Quality Check Thresholds#
These settings define the criteria for “GOOD” data quality. Do not change these unless you are a core developer, as they ensure consistency across the MultiplEYE project.
ACCEPTABLE_NUM_CALIBRATIONS: [min, max] range for calibrations.ACCEPTABLE_NUM_VALIDATION: [min, max] range for validations.ACCEPTABLE_AVG_VALIDATION_SCORES: Acceptable average accuracy.ACCEPTABLE_DATA_LOSS_RATIOS: Max allowed data loss.ACCEPTABLE_RECORDING_DURATIONS: Acceptable session duration range.ACCEPTABLE_NUM_PRACTICE_TRIALS: Expected number of practice trials.ACCEPTABLE_NUM_TRIALS: Expected minimum number of trials.
Logging Settings#
LOG_LEVEL: General log level (default:INFO).CONSOLE_LOG_LEVEL: What you see in the terminal.FILE_LOG_LEVEL: What is saved topreprocessing_logs.txt(usuallyDEBUG).
Programmatic Usage (Notebooks)#
If you are using the package in a Python script or Jupyter notebook:
from preprocessing import settings
# Load a specific config file
settings.load("path/to/your_config.yaml")
# Access settings
print(settings.DATA_COLLECTION_NAME)
Internal Constants#
The settings object also contains technical parameters like folder names (RAW_DATA_FOLDER, etc.)
and regex patterns. These are marked as internal in the template and should not be modified.