#NEWLINE# def ones( shape , dtype = 'd' ) : #NEWLINE# #INDENT# "Create an shared array initialised to ones. Avoid object arrays, as these\n    will almost certainly break as the objects themselves won't be stored in shared\n    memory, only the pointers" #NEWLINE# sa = create ( shape , dtype = 'd' ) #NEWLINE# sa [ : ] = numpy . ones ( 1 , dtype ) #NEWLINE# return sa