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 PIL import Image
|
||||||
from random import shuffle
|
from random import shuffle
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import sys
|
||||||
|
|
||||||
TCP_IP = '94.45.232.48'
|
TCP_IP = '94.45.232.48'
|
||||||
TCP_PORT = 1234
|
TCP_PORT = 1234
|
||||||
|
@ -33,11 +34,13 @@ def randomnumber(pseed,pmin,pmax,v1,v2,v3):
|
||||||
newseed=(int)(time.time()/60)
|
newseed=(int)(time.time()/60)
|
||||||
seed=newseed
|
seed=newseed
|
||||||
|
|
||||||
parts=2 #n users
|
user=int(sys.argv[1]) #1..n
|
||||||
user=1 #1..n
|
parts=int(sys.argv[2]) #n users
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
|
||||||
pixelcoords=[]
|
pixelcoords=[]
|
||||||
for _x in range(width):
|
for _x in range(width):
|
||||||
for _y in range(height):
|
for _y in range(height):
|
||||||
|
|
Loading…
Reference in New Issue