def __init__(self, dimensions, source):
        """
        EXPECTING A LIST OF {"name":name, "value":value} OBJECTS TO PERFORM A MAPPING
        """
        dimensions = wrap(dimensions)
        if is_data(dimensions) and dimensions.name == None:
            # CONVERT TO A REAL DIMENSION DEFINITION
            dimensions = {"name": ".", "type": "set", "edges":[{"name": k, "field": v} for k, v in dimensions.items()]}

        self.dimensions = Dimension(dimensions, None, source)
def __init__ ( self , dimensions , source ) : dimensions = wrap ( dimensions ) if is_data ( dimensions ) and dimensions . name == None : dimensions = { "name" : "." , "type" : "set" , "edges" : [ { "name" : k , "field" : v } for k , v in dimensions . items ( ) ] } self . dimensions = Dimension ( dimensions , None , source )
EXPECTING A LIST OF {"name":name, "value":value} OBJECTS TO PERFORM A MAPPING