minor: made the submit script start/end on sys.argv params
This commit is contained in:
parent
89da68878a
commit
8f6d8ddc50
@ -15,10 +15,11 @@ m = QueueManager(address=('gannon', 50000), authkey='asdf')
|
||||
m.connect()
|
||||
|
||||
if __name__ == '__main__':
|
||||
count = int(sys.argv[1])
|
||||
start = int(sys.argv[1])
|
||||
end = int(sys.argv[2])
|
||||
|
||||
inq = m.get_inqueue()
|
||||
|
||||
for i in xrange(count):
|
||||
for i in xrange(start, end + 1):
|
||||
X = np.random.random((1,3))[0]
|
||||
inq.put((i,X))
|
||||
|
Loading…
Reference in New Issue
Block a user