I’m doing some computations with tfr_multitaper
where I need to access single-trial TFR data. This works fine with power by passing average=False
and return_itc=False
. This returns an EpochsTFR
object, which contains the TFRs for each single trial.
However, setting return_itc=True
(the default) in combination with average=False
doesn’t work, because I get an error saying “Inter-trial coherence is not supported with average=False”. I think this is because ITC is only defined as an average over epochs, but I’m still looking to get the single-trial phase values. These must be available somewhere in the calculation process, but presumably they get averaged before they are returned as an AverageTFR
object. Does anyone have an idea where these single-trials phase values are available?
Note that there seems to be an error in the docstring, because it says itc : AverageTFR | EpochsTFR
, but apparently this cannot be an EpochsTFR
object (this would instantly solve my problem).