pliers.stimuli.TextStim

class pliers.stimuli.TextStim(filename=None, text=None, onset=None, duration=None, order=None, url=None)[source]

Bases: Stim

Any simple text stimulus–most commonly a single word.

Parameters
  • filename (str) – Path to input file, if one exists.

  • text (str) – Text value to store. If none is provided, value is read from filename.

  • onset (float) – Optional onset of the text presentation (in secs) with respect to some more general context or timeline the user wishes to keep track of.

  • duration (float) – Optional duration of the TextStim, in seconds.

  • order (int) – Optional sequential index of the TextStim within some broader context.

  • url (str) – Optional url to read contents from.

__init__(filename=None, text=None, onset=None, duration=None, order=None, url=None)[source]
get_filename()

Return the source filename of the current Stim.

property history

Return stimulus history.