write fif files

External Email - Use Caution

Dear mne programmers,

I load from a tutorial in brainstorm the fif file:
mind004_050924_median01_raw.fif
as you seen in the attached image after loading we have the channel and raw
file

The information from the file coil_def.dat is integrated in the channel
file when loading data from CTF .res4 or Elekta .fif files. But in my case
I I edited the coil_def.dat file and aslo I edited the channel file after
loading the fif file mind004_050924_median01_raw.fif,

My questions:

-Brainstorm does not provide any FIF writer. How can I write those file in
MNE Python?
-How can I deal with problem in mne ? editing the meg channel files and
coil_def.dat channel, and making the information from the file
coil_def.dat is integrated in the channel file then compute the forward
problem?

Best regards
A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200527/6a771a3b/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loading.png
Type: image/png
Size: 5019 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200527/6a771a3b/attachment.png

External Email - Use Caution

-Brainstorm does not provide any FIF writer. How can I write those file
in MNE Python?

Read, edit, save:

raw = mne.io.read_raw_fif(...) # filename, etc.
raw.info['chs'][idx][...] = ... # edit however you need
raw.save(...) # write to some new filename

-How can I deal with problem in mne ? editing the meg channel files and
coil_def.dat channel, and making the information from the file
coil_def.dat is integrated in the channel file then compute the forward
problem?

Make your own coil_def.dat and use
mne.use_coil_def — MNE 1.6.0 documentation, see for example
Page Redirection

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200527/168cf530/attachment-0001.html