mne_bids/read.py
def _get_bads_from_tsv_data(tsv_data):
    """Extract names of bads from data read from channels.tsv."""
    idx = []
    for ch_idx, status in enumerate(tsv_data['status']):
        if status.lower() == 'bad':
            idx.append(ch_idx)

    bads = [tsv_data['name'][i] for i in idx]
    return bads
Extract names of bads from data read from channels.tsv.
Extract names of bads from data read from channels.tsv.
Extract names of bads from data read from channels . tsv .
def _get_bads_from_tsv_data(tsv_data):
    idx = []
    for ch_idx, status in enumerate(tsv_data['status']):
        if status.lower() == 'bad':
            idx.append(ch_idx)
    bads = [tsv_data['name'][i] for i in idx]
    return bads
def _get_bads_from_tsv_data ( tsv_data ) : idx = [ ] for ch_idx , status in enumerate ( tsv_data [ 'status' ] ) : if status . lower ( ) == 'bad' : idx . append ( ch_idx ) bads = [ tsv_data [ 'name' ] [ i ] for i in idx ] return bads
Extract names of bads from data read from channels.tsv.
Extract names of bads from data read from channels . tsv .
"""Extract names of bads from data read from channels.tsv."""
tsv_data