vflow/convert.py
def init_args(args_tuple: tuple, names=None):
    ''' converts tuple of arguments to a list of dicts
    Params
    ------
    names: optional, list-like
        gives names for each of the arguments in the tuple
    '''
    if names is None:
        names = ['start'] * len(args_tuple)
    else:
        assert len(names) == len(args_tuple), 'names should be same length as args_tuple'

    output_dicts = []
    for (i, ele) in enumerate(args_tuple):
        output_dicts.append({
            (Subkey(names[i], 'init'), ): args_tuple[i],
            PREV_KEY: ('init', ),
        })
    return output_dicts
 converts tuple of arguments to a list of dicts
    Params
    ------
    names: optional, list-like
        gives names for each of the arguments in the tuple
    
converts tuple of arguments to a list of dicts
Params

optional, list-like
gives names for each of the arguments in the tuple
converts tuple of arguments to a list of dicts Params optional list - like gives names for each of the arguments in the tuple
def init_args(args_tuple: tuple, names=None):
    if names is None:
        names = ['start'] * len(args_tuple)
    else:
        assert len(names) == len(args_tuple), 'names should be same length as args_tuple'
    output_dicts = []
    for (i, ele) in enumerate(args_tuple):
        output_dicts.append({
            (Subkey(names[i], 'init'), ): args_tuple[i],
            PREV_KEY: ('init', ),
        })
    return output_dicts
def init_args ( args_tuple : tuple , names = None ) : if names is None : names = [ 'start' ] * len ( args_tuple ) else : assert len ( names ) == len ( args_tuple ) , 'names should be same length as args_tuple' output_dicts = [ ] for ( i , ele ) in enumerate ( args_tuple ) : output_dicts . append ( { ( Subkey ( names [ i ] , 'init' ) , ) : args_tuple [ i ] , PREV_KEY : ( 'init' , ) , } ) return output_dicts
converts tuple of arguments to a list of dicts
Params
converts tuple of arguments to a list of dicts Params
''' converts tuple of arguments to a list of dicts
    Params
    ------
    names: optional, list-like
        gives names for each of the arguments in the tuple
    '''
args_tuple
tuple
names