experanto.interpolators.ScreenTrial
- class ScreenTrial(data_file_name, meta_data, image_size, first_frame_idx, num_frames, cache_data=False)[source]
Bases:
objectBase class for visual stimulus trials.
Represents a single trial (stimulus presentation) in a screen recording. Subclasses handle different trial types: images, videos, and blanks.
- Parameters:
data_file_name (str) – Path to the data file for this trial.
meta_data (dict) – Metadata dictionary for the trial.
image_size (tuple) – Frame dimensions
(height, width)or(height, width, channels).first_frame_idx (int) – Index of the first frame in the global timestamp array.
num_frames (int) – Number of frames in this trial.
cache_data (bool, default=False) – If True, loads and caches data on initialization.
Methods
__init__(data_file_name, meta_data, ...[, ...])create(data_file_name, meta_data[, cache_data])get_data()Wrapper that handles caching
Base implementation for loading/generating data
get_meta(property)