Back to the main page.

Bug 3471 - ft_statfun_actvsblT only for freq data?

Status CLOSED FIXED
Reported 2019-02-01 16:31:00 +0100
Modified 2022-03-21 16:14:21 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Stephen Whitmarsh - 2019-02-01 16:31:22 +0100

Hola, I thought it might be nice to try out ft_statfun_actvsblT for spikerate data, i.e. time-locked data. On line 77 it checks the dimord of the data, and will only accept 'chan_freq_time'. If this is the case, it's documentation suggests otherwise. Cheers, Stephen


Jan-Mathijs Schoffelen - 2019-04-02 13:35:00 +0200

I think that this can be easily resolved by adding a case for 'chan_time' around l.82, explicitly making nfreq=1 in that case. Can you submit a PR for this?


Jan-Mathijs Schoffelen - 2022-03-21 16:14:08 +0100

This has been recently discussed on github: https://github.com/fieldtrip/fieldtrip/issues/1973 https://github.com/fieldtrip/fieldtrip/issues/1980