MCPcopy
hub / github.com/mne-tools/mne-python / write

Method write

mne/io/base.py:2913–2941  ·  view source on GitHub ↗
(self, fid, part_idx, prev_fname, next_fname)

Source from the content-addressed store, hash-verified

2911 self.cfg = cfg
2912
2913 def write(self, fid, part_idx, prev_fname, next_fname):
2914 self._check_start_stop_within_bounds()
2915 start_block(fid, FIFF.FIFFB_MEAS)
2916 _write_raw_metadata(
2917 fid,
2918 self.info,
2919 self.cfg.data_type,
2920 self.cfg.reset_range,
2921 self.raw.annotations,
2922 )
2923 self.start = _write_raw_data(
2924 self.raw,
2925 self.info,
2926 self.picks,
2927 fid,
2928 part_idx,
2929 self.start,
2930 self.stop,
2931 self.cfg.buffer_size,
2932 prev_fname,
2933 self.cfg.split_size,
2934 next_fname,
2935 self.projector,
2936 self.cfg.drop_small_buffer,
2937 self.cfg.fmt,
2938 )
2939 end_block(fid, FIFF.FIFFB_MEAS)
2940 is_next_split = self.start < self.stop
2941 return is_next_split
2942
2943 def _check_start_stop_within_bounds(self):
2944 # we've done something wrong if we hit this

Callers 15

make_gallery_redirectsFunction · 0.80
make_api_redirectsFunction · 0.80
make_custom_redirectsFunction · 0.80
make_versionFunction · 0.80
generate_commands_rstFunction · 0.80
generate_name_links_rstFunction · 0.80
generate_contrib_avatarsFunction · 0.80
_write_mri_configFunction · 0.80
write_labelFunction · 0.80

Calls 5

start_blockFunction · 0.85
_write_raw_metadataFunction · 0.85
_write_raw_dataFunction · 0.85
end_blockFunction · 0.85

Tested by 15

test_use_coil_defFunction · 0.64
test_configFunction · 0.64
test_run_subprocessFunction · 0.64
test_datasetsFunction · 0.64
test_hashfuncFunction · 0.64
test_hashFunction · 0.64
test_show_fiffFunction · 0.64
test_compute_proj_exgFunction · 0.64
test_shielding_factorFunction · 0.64
test_read_raw_curry_hpiFunction · 0.64
test_read_raw_curry_rfDCFunction · 0.64
_mock_info_fileFunction · 0.64