[fix] clitools filters kaleidoscop should not send empty points lists

This commit is contained in:
alban 2020-10-13 22:00:50 +02:00
parent b2cc1b1ff5
commit 0b7ad2d75b

View File

@ -162,8 +162,7 @@ try:
pointsList = ast.literal_eval(line) pointsList = ast.literal_eval(line)
# Do the filter # Do the filter
result = kaleidoscope( pointsList ) result = kaleidoscope( pointsList )
print( result, flush=True ) if len(result) : print( result, flush=True )
looptime = time.time() - start looptime = time.time() - start
# debug(name+" looptime:"+str(looptime)) # debug(name+" looptime:"+str(looptime))
if( looptime < optimal_looptime ): if( looptime < optimal_looptime ):