#NEWLINE# def reduce_memmap( a ) : #NEWLINE# #INDENT# 'Pickle the descriptors of a memmap instance to reopen on same file' #NEWLINE# m = _get_backing_memmap ( a ) #NEWLINE# if ( m is not None ) : #NEWLINE# #INDENT# return _reduce_memmap_backed ( m , m ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( loads , ( dumps ( np . asarray ( a ) , protocol = HIGHEST_PROTOCOL ) , ) )