craddm / eegUtils

An R package for processing and plotting of electroencephalography (EEG) data
https://craddm.github.io/eegUtils/
Other
105 stars 27 forks source link

compute_tfr() function #110

Closed DrCri95 closed 3 years ago

DrCri95 commented 3 years ago

Hi,

I'm computing time-frequency representation of my EEG data:

tfr <- compute_tfr (data,
                          method = "morlet",
                          foi = c (4, 30),
                          n_freq = 12,
                          n_cycles = 3)

and I got the following error:

Error in dim (data $ signals) <- c (n_times, n_epochs, n_chans): dims [product 13127264] do not match the length of object [215153632]

Before reporting this issue, I've checked my data (large eeg_epochs) and installed the latest development version from Github, since the last time I got a similar error extracting epochs, my issue was actually solved after installing the latest development version.

Thank you very much in advance!

Best, Cris

craddm commented 3 years ago

This is going to be a tough one for me without the data for me to see what exactly it's going wrong!

I appreciate it may not be possible to share it, but would you be able to send me an email? Either to matt@mattcraddock.com or mcraddock@lincoln.ac.uk

Cheers, Matt

craddm commented 3 years ago

Just to follow up on this, I've worked out where the error occurs, but not why. So I really need some example data to be able to reproduce the error locally!

Cheers, Matt

craddm commented 3 years ago

Closing this one for now as this may have been a workflow issue rather than a eegUtils issue per se