From 7a6d92b39b4769fcc885c88d911343fa04f635f6 Mon Sep 17 00:00:00 2001 From: iou1name Date: Sat, 16 Dec 2017 13:51:27 -0500 Subject: [PATCH] changed something --- mosiac.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mosiac.py b/mosiac.py index b812040..f14aea4 100755 --- a/mosiac.py +++ b/mosiac.py @@ -5,7 +5,6 @@ Does mosiacs. """ import os import time -import random import colorsys import threading @@ -145,7 +144,7 @@ class Mosiac(): tol += int(tol == 0) indexs = dist.argsort()[:tol] # choice = dist.argmin() # closet value - choice = random.choice(indexs) + choice = np.random.choice(indexs) return cluster[tuple(nodes[choice])]