#NEWLINE# def __setitem__( self , name , array ) : #NEWLINE# #INDENT# 'Stores the array in a memmap file, then pings server.' #NEWLINE# fn = tempfile . mktemp ( ) #NEWLINE# fp = np . memmap ( fn , dtype = array . dtype , mode = 'w+' , shape = array . shape ) #NEWLINE# fp [ : ] = fn [ : ] #NEWLINE# requests . put ( self . url ( name ) , json . dumps ( { #NEWLINE# #INDENT# 'dtype' : str ( array . dtype ) , #NEWLINE# 'shape' : list ( array . shape ) , #NEWLINE# 'filename' : fn , #NEWLINE# #UNINDENT# } ) )