neuroscout/tasks/utils/build.py
def _get_entities(run, **kwargs):
    """ Get BIDS-entities from run object """
    valid = ['number', 'session', 'subject', 'acquisition', 'task_name']
    entities = {
        r: v
        for r, v in run.items()
        if r in valid and v is not None
        }

    if 'number' in entities:
        entities['run'] = entities.pop('number')

    if 'task_name' in entities:
        entities['task'] = entities.pop('task_name')

    entities = {**entities, **kwargs}

    return entities
 Get BIDS-entities from run object 
Get BIDS-entities from run object
Get BIDS - entities from run object
def _get_entities(run, **kwargs):
    valid = ['number', 'session', 'subject', 'acquisition', 'task_name']
    entities = {
        r: v
        for r, v in run.items()
        if r in valid and v is not None
        }
    if 'number' in entities:
        entities['run'] = entities.pop('number')
    if 'task_name' in entities:
        entities['task'] = entities.pop('task_name')
    entities = {**entities, **kwargs}
    return entities
def _get_entities ( run , ** kwargs ) : valid = [ 'number' , 'session' , 'subject' , 'acquisition' , 'task_name' ] entities = { r : v for r , v in run . items ( ) if r in valid and v is not None } if 'number' in entities : entities [ 'run' ] = entities . pop ( 'number' ) if 'task_name' in entities : entities [ 'task' ] = entities . pop ( 'task_name' ) entities = { ** entities , ** kwargs } return entities
Get BIDS-entities from run object
Get BIDS - entities from run object
""" Get BIDS-entities from run object """
run