change multisuer mode parameters to command line arguments
This commit is contained in:
parent
e837e4b94f
commit
a86320aa18
|
@ -4,6 +4,7 @@ import time
|
|||
from PIL import Image
|
||||
from random import shuffle
|
||||
import numpy as np
|
||||
import sys
|
||||
|
||||
TCP_IP = '94.45.232.48'
|
||||
TCP_PORT = 1234
|
||||
|
@ -33,11 +34,13 @@ def randomnumber(pseed,pmin,pmax,v1,v2,v3):
|
|||
newseed=(int)(time.time()/60)
|
||||
seed=newseed
|
||||
|
||||
parts=2 #n users
|
||||
user=1 #1..n
|
||||
user=int(sys.argv[1]) #1..n
|
||||
parts=int(sys.argv[2]) #n users
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
pixelcoords=[]
|
||||
for _x in range(width):
|
||||
for _y in range(height):
|
||||
|
|
Loading…
Reference in New Issue