NaviNIBS.Navigator.Model.Triggering module

Bases: object

Parameters:
  • type (str)

  • time (Timestamp)

  • metadata (Dict[str, Any])

Bases: GenericCollectionDictItem[str]

Parameters:
  • _key – Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

  • _isEnabled

Return type:

dict[str, Any]

Bases: TriggerSource

Parameters:
  • _key – Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

  • _isEnabled

  • _streamKey

  • _fallbackTriggerSourceKey – If the primary LSL stream is not available, can fallback to another trigger source. The fallback source will be disabled when the primary is available, and enabled when the primary is not available.

  • _triggerEvents

  • _triggerValueIsEpochID

  • _defaultAction

  • _minInterTriggerPeriod

If the primary LSL stream is not available, can fallback to another trigger source. The fallback source will be disabled when the primary is available, and enabled when the primary is not available.

Bases: GenericCollectionDictItem[str]

Parameters:
  • _key – Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

  • _action – Action to trigger when hotkey fires (e.g. “sample”, “previous”, or “next”)

  • _keyboardDeviceID – Can specify a keyboard’s device ID to only respond to keypresses from that device. Useful for situations like when using a presenter remote that generates common keypresses like ‘.’ and ‘esc’, and you don’t want triggers to be generated when pressing the same keys on a normal keyboard. If None, no device filter will be applied.

Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

Action to trigger when hotkey fires (e.g. “sample”, “previous”, or “next”)

Can specify a keyboard’s device ID to only respond to keypresses from that device. Useful for situations like when using a presenter remote that generates common keypresses like ‘.’ and ‘esc’, and you don’t want triggers to be generated when pressing the same keys on a normal keyboard.

If None, no device filter will be applied.

Bases: GenericCollection[str, Hotkey]

Parameters:

_items

Return type:

Hotkeys

Bases: TriggerSource

Parameters:
  • _key – Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

  • _isEnabled

  • _hotkeys

Return type:

dict[str, Any]

Bases: object

Parameters:
  • _key – Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

  • _minTimeBetweenEvents

Literal key that will trigger hotkey (e.g. “.” or “PgDn”)

Bases: object

Handle routing of triggers to any of multiple trigger receivers, e.g. to handle cases where when the registration panel is in the foreground, triggers should record a new registration point, but if the navigation panel is in the foreground, triggers should record a new coil orientation sample.

Note: this is implemented here for centralization, but is not persisted in session file(s)

Bases: GenericCollection[str, TriggerSource]

Parameters:

_items

Return type:

TriggerSources