iblrig.frame2ttl.Frame2TTL

Inheritance diagram of Frame2TTL

class iblrig.frame2ttl.Frame2TTL[source]
__init__(port, threshold_light=None, threshold_dark=None, **kwargs)[source]
Parameters:
  • port (str)

  • threshold_light (int | None)

  • threshold_dark (int | None)

Return type:

None

calibrate(condition, n_samples=1000)[source]
Parameters:
  • condition (Literal['light', 'dark'])

  • n_samples (int)

Return type:

tuple[int, bool]

handshake(raise_on_fail=False)[source]
Parameters:

raise_on_fail (bool)

Return type:

bool

sample(n_samples)[source]
Parameters:

n_samples (int)

Return type:

ndarray

set_thresholds(light, dark)[source]
Parameters:
property streaming: bool
property threshold_dark: int
property threshold_light: int