block_design

Contents

block_design#

snake.core.handlers.activations.bold.block_design(block_on, block_off, duration, offset=0, event_name='block_on')[source]#

Create a simple block design paradigm.

Parameters:
  • block_on (float) – in seconds, the amount of time the stimuli is on

  • block_off (float) – in seconds, the amount of time the stimuli is off (rest) after the on state.

  • duration (float) – in seconds, the total amount of the experiments.

  • offset (float) – in seconds, the starting point of the experiment, default=0.

  • event_name (str) – name of the block event, default=”block_on”

Returns:

the data frame corresponding to a block design.

Return type:

pd.DataFrame

Notes

The design is as follows

         |---------|          |----------|       |------>
|--------|         |----------|          |-------|
  offset   block_on  block_off  block_on   ...

And repeats until duration is reached.