def send_arrays(socket, arrays, stop=False):
 if arrays:
  arrays = [numpy.ascontiguousarray(array) for array in arrays]
 if stop:
  headers = {'stop': True}
  socket.send_json(headers)
 else:
  headers = [header_data_from_array_1_0(array) for array in arrays]
  socket.send_json(headers, zmq.SNDMORE)
  for array in arrays[:(-1)]:
   socket.send(array, zmq.SNDMORE)
  socket.send(arrays[(-1)])

def send_arrays ( socket , arrays , stop = False ) : if arrays : arrays = [ numpy . ascontiguousarray ( array ) for array in arrays ] if stop : headers = { 'stop' : True } socket . send_json ( headers ) else : headers = [ header_data_from_array_1_0 ( array ) for array in arrays ] socket . send_json ( headers , zmq . SNDMORE ) for array in arrays [ : ( - 1 ) ] : socket . send ( array , zmq . SNDMORE ) socket . send ( arrays [ ( - 1 ) ] )
send numpy arrays using the buffer interface and some metadata .