stimpyp.stimulus.FunctionStim#

class stimpyp.stimulus.FunctionStim#

Bases: NamedTuple

FunctionStim(index, time, pos_xy, size_xy)

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

Attributes

index

stimulus index

pos_xy

object center position XY.

size_xy

object size width and height.

time

stim on-off time.

index: int#

stimulus index

time: ndarray#

stim on-off time. Array[float, 2].

pos_xy: ndarray#

object center position XY. Array[float, 2]

size_xy: ndarray#

object size width and height. Array[float, 2]

static __new__(_cls, index, time, pos_xy, size_xy)#

Create new instance of FunctionStim(index, time, pos_xy, size_xy)

Parameters:
  • index (int)

  • time (ndarray)

  • pos_xy (ndarray)

  • size_xy (ndarray)

count(value, /)#

Return number of occurrences of value.