#NEWLINE# def convert_to_np_atom2( object , atom ) : #NEWLINE# #INDENT# 'Convert a generic object into a NumPy object compliant with atom.' #NEWLINE# copy = ( atom . type in [ 'time64' ] ) #NEWLINE# nparr = convert_to_np_atom ( object , atom , copy ) #NEWLINE# byteorder = byteorders [ nparr . dtype . byteorder ] #NEWLINE# if ( ( byteorder in [ 'little' , 'big' ] ) and ( byteorder != sys . byteorder ) ) : #NEWLINE# #INDENT# nparr = nparr . byteswap ( ) #NEWLINE# #UNINDENT# return nparr