def rgb2hex(rgb):
    a = '#%02x%02x%02x' % tuple([int(np.round(val * 255)) for val in rgb[:3]])
    return a
Grant privileges on an existing foreign table
dataset/ETHPy150Open inpho/topic-explorer/topicexplorer/lib/color.py/rgb2hex--crossover with--dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_privs.py/PrivilegeToSqlTestCase.test_foreign_table_new_grant