Start write raw data in file. Parameters ---------- fid : file The created file. %(info_not_none)s data_type : int The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT), 5 (FIFFT_DOUBLE), 16 (FIFFT_DAU_PACK16), or 3 (FIFFT_INT) for raw data.
(fid, info, data_type, reset_range, annotations)
| 3083 | |
| 3084 | @fill_doc |
| 3085 | def _write_raw_metadata(fid, info, data_type, reset_range, annotations): |
| 3086 | """Start write raw data in file. |
| 3087 | |
| 3088 | Parameters |
| 3089 | ---------- |
| 3090 | fid : file |
| 3091 | The created file. |
| 3092 | %(info_not_none)s |
| 3093 | data_type : int |
| 3094 | The data_type in case it is necessary. Should be 4 (FIFFT_FLOAT), |
| 3095 | 5 (FIFFT_DOUBLE), 16 (FIFFT_DAU_PACK16), or 3 (FIFFT_INT) for raw data. |
| 3096 | reset_range : bool |
| 3097 | If True, the info['chs'][k]['range'] parameter will be set to unity. |
| 3098 | annotations : instance of Annotations |
| 3099 | The annotations to write. |
| 3100 | |
| 3101 | """ |
| 3102 | # |
| 3103 | # Create the file and save the essentials |
| 3104 | # |
| 3105 | write_id(fid, FIFF.FIFF_BLOCK_ID) |
| 3106 | if info["meas_id"] is not None: |
| 3107 | write_id(fid, FIFF.FIFF_PARENT_BLOCK_ID, info["meas_id"]) |
| 3108 | |
| 3109 | write_meas_info(fid, info, data_type=data_type, reset_range=reset_range) |
| 3110 | |
| 3111 | # |
| 3112 | # Annotations |
| 3113 | # |
| 3114 | if len(annotations) > 0: # don't save empty annot |
| 3115 | _write_annotations(fid, annotations) |
| 3116 | |
| 3117 | |
| 3118 | def _write_raw_buffer(fid, buf, cals, fmt): |
no test coverage detected