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
.datfile containing the file-calibration matrix, or the dictionary returned bymne.preprocessing.read_fine_calibration().- bids_path
BIDSPath A
mne_bids.BIDSPathinstance with at leastrootandsubjectset, and thatdatatypeis either'meg'orNone.- verbose
bool|str|int|None Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.
- calibrationpath-like |
Examples
>>> data_path = mne.datasets.testing.data_path(download=False) >>> calibration_fname = data_path / 'SSS' / 'sss_cal_3053.dat' >>> bids_path = BIDSPath(subject='01', session='test', ... root=data_path / 'mne_bids') >>> write_meg_calibration(calibration_fname, bids_path) Writing fine-calibration file to ...sub-01_ses-test_acq-calibration_meg.dat...