mne.preprocessing.maxwell_filter_prepare_emptyroom

Hi all,

I am attempting to run this function to prepare my emptyroom recording but am receiving some odd errors. The documentation shows that this function requires a raw_er instance and a raw instance from the experimental recording. When I enter the parameters I get an error regarding “too many positional arguments” but when I run it without a “raw” instance I get an error stating that the “keyword argument “raw” is required”. How do I make the instance of raw a keyword argument rather than a positional argument, so as to inject the head transformations from the experimental recordings into that of the emptyroom?

Thanks!

Ethan

Hi all - problem solved.

I was not setting the raw instance equal to raw as a keyword argument. I fixed this issue by entering the parameter for ‘raw’ as raw=raw.

See this post for an explanation on keyword-only arguments: apply head position to empty room - #10 by richard

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.