splitvar/splitvar.py
def dependentlookup(depends):
    """
    Generate a mapping from dependent variables back to variables on which they depend
    """
    lookup = defaultdict(list)
    for k, v in depends.items():
        for var in v:
            lookup[var].append(k)
    return lookup

    Generate a mapping from dependent variables back to variables on which they depend
    
Generate a mapping from dependent variables back to variables on which they depend
Generate a mapping from dependent variables back to variables on which they depend
def dependentlookup(depends):
    lookup = defaultdict(list)
    for k, v in depends.items():
        for var in v:
            lookup[var].append(k)
    return lookup
def dependentlookup ( depends ) : lookup = defaultdict ( list ) for k , v in depends . items ( ) : for var in v : lookup [ var ] . append ( k ) return lookup
Generate a mapping from dependent variables back to variables on which they depend
Generate a mapping from dependent variables back to variables on which they depend
"""
    Generate a mapping from dependent variables back to variables on which they depend
    """
depends