syncopy.specest.mtmconvol._make_trialdef

syncopy.specest.mtmconvol._make_trialdef(cfg, trialdefinition, samplerate)[source]

Local helper to construct trialdefinition arrays for time-frequency SpectralData objects

Parameters
  • cfg (dict) – Config dictionary attribute of ComputationalRoutine subclass

  • trialdefinition (2D numpy.ndarray) – Provisional trialdefnition array either directly copied from the AnalogData input object or computed by the Selector class.

  • samplerate (float) – Original sampling rate of AnalogData input object

Returns

  • trialdefinition (2D numpy.ndarray) – Updated trialdefinition array reflecting provided toi/toilim selection

  • samplerate (float) – Sampling rate accouting for potentially new spacing b/w time-points (accouting for provided toi/toilim selection)

Notes

This routine is a local auxiliary method that is purely intended for internal use. Thus, no error checking is performed.

See also

syncopy.specest.mtmconvol.mtmconvol()

computeFunction() performing time-frequency analysis using (multi-)tapered sliding window Fourier transform

syncopy.specest.wavelet.wavelet()

computeFunction() performing time-frequency analysis using non-orthogonal continuous wavelet transform