#NEWLINE# def __getitem__( self , name ) : #NEWLINE# #INDENT# if ( name in self . _changed ) : #NEWLINE# #INDENT# return self . _changed [ val ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . _complex : #NEWLINE# #INDENT# val = self . _inner [ name ] #NEWLINE# if isinstance ( val , ndarray ) : #NEWLINE# #INDENT# self . _changed [ name ] = numpy . asarray ( val , dtype = complex ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _changed [ name ] = complex ( val ) #NEWLINE# #UNINDENT# return self . _changed [ name ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _inner [ name ]