#NEWLINE# def getCDMSVariable( self ) : #NEWLINE# #INDENT# if ( not ( self . cdmsFile is None ) ) : #NEWLINE# #INDENT# data = self . varCombo . itemData ( self . varCombo . currentIndex ( ) ) . toStringList ( ) #NEWLINE# if ( data . count ( ) > 0 ) : #NEWLINE# #INDENT# if ( data [ 0 ] == 'variables' ) : #NEWLINE# #INDENT# return getattr ( self . cdmsFile , str ( data [ 0 ] ) ) [ str ( data [ 1 ] ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( data [ 0 ] == 'axes' ) : #NEWLINE# #INDENT# axis = getattr ( self . cdmsFile , str ( data [ 0 ] ) ) [ str ( data [ 1 ] ) ] #NEWLINE# var = MV2 . array ( self ) #NEWLINE# var . setAxis ( 0 , axis ) #NEWLINE# var . id = axis . id #NEWLINE# return var #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return None