I am having trouble passing head position to maxwell filter function.
I need it to concatenate data from each runs of my experience.
Here is the code I used :
Error message : TypeError: head_pos must be an instance of ndarray or None, got <class 'mne.transforms.Transform'> instead.
The problem seems to be that raw.info[ādev_head_tā] is not an array, but I couldnāt find an appropriate method to convert it. Or maybe I am not using the maxwell filter function correctly?
I tried both methods, but couldnāt do the first one (read_head_pos() function) because I donāt have any separated file ending with .pos.
I tried to compute with the other method :
Has this issue been solved?
I am encoutering a similar issue as described by Raphaelle, chpi_amplitudes does not seem to produce a result for me. Is there any suggestion on how to handle this?
Linux platform, MNE version 1.2.0
The console stays at the following input until I reset the kernel:
Using 5 HPI coils: 293 307 314 321 328 Hz
Line interference frequencies: 50 100 150 200 250 300 Hz
Using time window: 142.9 ms
Fitting 5 HPI coil locations at up to 30693 time points (307.0 sec duration)
0%| | cHPI amplitudes : 0/30693 [00:00<?, ?it/s]
In order to fix it, we need to be able to reproduce it, and to do that we need a (preferably small) data file and a minimal working code sample that reproduces the problem. @Raphaelle never responded to @richard 's request for the data file, so no progress has been made AFAIK. @pascal can you provide a file / MWE for which this problem arises?
I spotted my mistake - the data had not been loaded with raw.load_data().
When doing so, the commands work well and I get to the visualization of the head movement. I might not be the only one forgetting to do so, hope it will be of help.
Thank you for your help anyways @drammock !
It seems like itās not actually a problem with preloading; it might (?) be a problem with the progress bar itself, and if you waited long enough it would actually work.@pascal how long did you wait before you reset the kernel? How long does it take when you do preload the data and it works?
I waited a good 10 minutes I would say. The data is 307 seconds long. I also cropped it to 10 or 15 seconds (donāt remember exactly) and waited again for around 10 minutes without a result.
When preloading (the original 307 seconds data set), it takes around 30 seconds to compute the chpi amplitudes.
However, the progress bar does not work in the meantime. The only console message I get is the one I posted before, and after 30 seconds, the computation is completed, without any notification.