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

Function _ndarray_ch_names

mne/annotations.py:208–215  ·  view source on GitHub ↗
(ch_names)

Source from the content-addressed store, hash-verified

206
207
208def _ndarray_ch_names(ch_names):
209 # np.array(..., dtype=object) if all entries are empty will give
210 # an empty array of shape (n_entries, 0) which is not helpful. So let's
211 # force it to give us an array of shape (n_entries,) full of empty
212 # tuples
213 out = np.empty(len(ch_names), dtype=object)
214 out[:] = ch_names
215 return out
216
217
218@fill_doc

Callers 3

_check_o_d_s_c_eFunction · 0.85
cropMethod · 0.85

Calls

no outgoing calls

Tested by 1