#NEWLINE# def __init__( self , **traits ) : #NEWLINE# #INDENT# sd = traits . pop ( 'scalar_data' , None ) #NEWLINE# vd = traits . pop ( 'vector_data' , None ) #NEWLINE# super ( ArraySource , self ) . __init__ ( ** traits ) #NEWLINE# self . configure_input_data ( self . change_information_filter , self . image_data ) #NEWLINE# if ( sd is not None ) : #NEWLINE# #INDENT# self . scalar_data = self #NEWLINE# #UNINDENT# if ( vd is not None ) : #NEWLINE# #INDENT# self . vector_data = vd #NEWLINE# #UNINDENT# self . outputs = [ self . change_information_filter . output ] #NEWLINE# self . on_trait_change ( self . _information_changed , 'spacing,origin' )