meaningful input to submit script

This commit is contained in:
Stephen Mardson McQuay 2011-03-03 00:38:47 -07:00
parent f125a653b1
commit 89da68878a

View File

@ -1,5 +1,7 @@
#!/usr/bin/env python
import sys
from multiprocessing.managers import BaseManager
import numpy as np
@ -13,8 +15,10 @@ m = QueueManager(address=('gannon', 50000), authkey='asdf')
m.connect()
if __name__ == '__main__':
count = int(sys.argv[1])
inq = m.get_inqueue()
for i in xrange(1000):
for i in xrange(count):
X = np.random.random((1,3))[0]
inq.put((i,X))