

def attach_shape_instance_attributes(self, name=DEFAULT_NODE_NAME, shape_instance=DEFAULT_INSTANCE_NAME, attributes=None):
    'Copy the attributes onto the node.'
    assert isinstance(name, NodeName)
    instance = self.__retrieve_shape_instance(name, shape_instance)
    if attributes:
        for (k, v) in attributes.iteritems():
            instance[k] = v

dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py JsonAsset.attach_shape_instance_attributes/original