mne_bids.write_meg_calibration

mne_bids.write_meg_calibration(calibration, bids_path, verbose=None)[source]

Write the Elekta/Neuromag/MEGIN fine-calibration matrix to disk.

Parameters
calibrationpath-like | dict

Either the path of the .dat file containing the file-calibration matrix, or the dictionary returned by mne.preprocessing.read_fine_calibration().

bids_pathmne_bids.BIDSPath

A mne_bids.BIDSPath instance with at least root and subject set, and that datatype is either 'meg' or None.

verbosebool | None

If a boolean, whether or not to produce verbose output. If None, use the default log level.

Examples

>>> data_path = mne.datasets.testing.data_path(download=False)
>>> calibration_fname = op.join(data_path, 'SSS', 'sss_cal_3053.dat')
>>> bids_path = BIDSPath(subject='01', session='test',
...                      root=op.join(data_path, 'mne_bids'))
>>> write_meg_calibration(calibration_fname, bids_path) 
Writing fine-calibration file to ...sub-01_ses-test_acq-calibration_meg.dat...

Examples using mne_bids.write_meg_calibration