brainstorm/structure/layout.py
def layout_hubs(hubs, layout):
    """
    Determine and fill in the @slice entries into the layout and return total
    buffer sizes.
    """
    for hub_nr, hub in enumerate(hubs):
        for buffer_name, _slice in hub.get_indices():
            buffer_layout = get_by_path(layout, buffer_name)
            buffer_layout['@slice'] = _slice
            buffer_layout['@hub'] = hub_nr

    Determine and fill in the @slice entries into the layout and return total
    buffer sizes.
    
Determine and fill in the @slice entries into the layout and return total
buffer sizes.
Determine and fill in the @slice entries into the layout and return total buffer sizes .
def layout_hubs(hubs, layout):
    for hub_nr, hub in enumerate(hubs):
        for buffer_name, _slice in hub.get_indices():
            buffer_layout = get_by_path(layout, buffer_name)
            buffer_layout['@slice'] = _slice
            buffer_layout['@hub'] = hub_nr
def layout_hubs ( hubs , layout ) : for hub_nr , hub in enumerate ( hubs ) : for buffer_name , _slice in hub . get_indices ( ) : buffer_layout = get_by_path ( layout , buffer_name ) buffer_layout [ '@slice' ] = _slice buffer_layout [ '@hub' ] = hub_nr
Determine and fill in the @slice entries into the layout and return total
buffer sizes.
Determine and fill in the @slice entries into the layout and return total buffer sizes .
"""
    Determine and fill in the @slice entries into the layout and return total
    buffer sizes.
    """
hubs
layout