def getValue(arr, index, length): return numpy.array(arr[index:(index + length)]) # Write value of numpy array nparr (with given length) to a shared Array at # the given starting index.