IntFind

Finds all intervals that contain at least one timestamp of the specified event or neuron variable.

Syntax

IntFind(intervalVar, eventVar)

Parameters

Parameter

Type

Description

intervalVar

variableReference

Reference to the interval variable.

eventVar

variableReference

Reference to the event or neuron variable

Return

New interval variable.

Note

Creates a new Interval Variable. Each interval of intervalVar that contains one or more timestamps of eventVar is copied to the result.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["IntervalsWithEvent04"] = nex.IntFind(doc["Trials1"], doc["Event04"])

NexScript

doc = GetActiveDocument()
doc["IntervalsWithEvent04"] = IntFind(doc["Trials1"], doc["Event04"])