ApplyTemplate
Runs the analysis specified in the analysis template.
Syntax
ApplyTemplate(doc, templateName)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
templateName |
string |
The name of the template. See How To Specify Template Names for details on how to specify the template name parameter |
Return
None.
Examples
Python
import nex
doc = nex.GetActiveDocument()
# run PSTH analysis saved in the template PerieventHistograms
nex.ApplyTemplate(doc, "PerieventHistograms")
NexScript
doc = GetActiveDocument()
% run PSTH analysis saved in the template PerieventHistograms
ApplyTemplate(doc, "PerieventHistograms")