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

Function _read_3

mne/source_estimate.py:153–159  ·  view source on GitHub ↗

Read 3 byte integer from file.

(fid)

Source from the content-addressed store, hash-verified

151
152
153def _read_3(fid):
154 """Read 3 byte integer from file."""
155 data = np.fromfile(fid, dtype=np.uint8, count=3).astype(np.int32)
156
157 out = np.left_shift(data[0], 16) + np.left_shift(data[1], 8) + data[2]
158
159 return out
160
161
162def _read_w(filename):

Callers 1

_read_wFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected