Let's say I have a 2-d numpy array with 10 rows
for example
array([[ 23425. , 521331.40625],
[ 23465. , 521246.03125],
[ 23505. , 528602.8125 ],
[ 23545. , 531934.75 ],
[ 23585. , 534916.375 ],
[ 23625. , 544971.9375 ],
[ 23665. , 544707.5625 ],
[ 23705. , 532729.25 ],
[ 23745. , 540303.0625 ],
[ 23865. , 527971.1875 ]])
Is there a way to place that whole array in a queue (from python's collections) all at once, without iterating over the array and using put()
for each row, and then be able to retrieve each row separately using the queue.get()
function?
For example a first call to the queue.get()
would retrieve [23865., 527971.1875 ]
and a second call would retrieve [23745., 540303.0625 ]