#NEWLINE# def set_data( self , data_np , metadata = None , astype = None ) : #NEWLINE# #INDENT# 'Use this method to SHARE (not copy) the incoming array.\n        ' #NEWLINE# if astype : #NEWLINE# #INDENT# data = data_np . astype ( astype ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = data_np #NEWLINE# #UNINDENT# self . _data = data #NEWLINE# if metadata : #NEWLINE# #INDENT# self . update_metadata ( metadata ) #NEWLINE# #UNINDENT# self . _set_minmax ( ) #NEWLINE# self . make_callback ( 'modified' )