sine_waves#

sine_waves stimulus example

You can find an interactive version of this example here

stimupy.stimuli.plaids.sine_waves(grating_parameters1, grating_parameters2, weight1=1, weight2=1)#

Draw plaid consisting of two sine-wave gratings

Parameters:
  • grating_parameters1 (dict) – kwargs to generate first sine-wave grating

  • grating_parameters2 (dict) – kwargs to generate second sine-wave grating

  • weight1 (float) – weight of first grating (default: 1)

  • weight2 (float) – weight of second grating (default: 1)

Returns:

dict with the stimulus (key: “img”), mask with integer index for each phase (key: “grating_mask”), and additional keys containing stimulus parameters

Return type:

dict[str, Any]