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

Function _check_start_stop

mne/preprocessing/ica.py:2700–2711  ·  view source on GitHub ↗

Aux function.

(raw, start, stop)

Source from the content-addressed store, hash-verified

2698
2699
2700def _check_start_stop(raw, start, stop):
2701 """Aux function."""
2702 out = list()
2703 for st, none_ in ((start, 0), (stop, raw.n_times)):
2704 if st is None:
2705 out.append(none_)
2706 else:
2707 try:
2708 out.append(_ensure_int(st))
2709 except TypeError: # not int-like
2710 out.append(raw.time_as_index(st)[0])
2711 return out
2712
2713
2714@verbose

Callers 6

_fit_rawMethod · 0.85
_transform_rawMethod · 0.85
_sources_as_rawMethod · 0.85
_check_targetMethod · 0.85
_apply_rawMethod · 0.85
plot_ica_overlayFunction · 0.85

Calls 3

_ensure_intFunction · 0.85
appendMethod · 0.45
time_as_indexMethod · 0.45

Tested by

no test coverage detected