minor: made the submit script start/end on sys.argv params

This commit is contained in:
Stephen Mardson McQuay 2011-03-03 00:59:31 -07:00
parent 89da68878a
commit 8f6d8ddc50

View File

@ -15,10 +15,11 @@ m = QueueManager(address=('gannon', 50000), authkey='asdf')
m.connect() m.connect()
if __name__ == '__main__': if __name__ == '__main__':
count = int(sys.argv[1]) start = int(sys.argv[1])
end = int(sys.argv[2])
inq = m.get_inqueue() inq = m.get_inqueue()
for i in xrange(count): for i in xrange(start, end + 1):
X = np.random.random((1,3))[0] X = np.random.random((1,3))[0]
inq.put((i,X)) inq.put((i,X))