#NEWLINE# def isOnAxis( self ) : #NEWLINE# #INDENT# "\n        Returns statements about this location:\n        \n            *   False if the location is not on-axis\n            *   The name of the axis if it is on-axis\n            *   None if the Location is at the origin\n\n        Note: this is only valid for an unbiased location.\n        ::\n\n            >>> l = Location(pop=1)\n            >>> l.isOnAxis()\n            'pop'\n            >>> l = Location(pop=1, snap=1)\n            >>> l.isOnAxis()\n            False\n            >>> l = Location()\n            >>> l.isOnAxis() is None\n            True\n        " #NEWLINE# new = self . __class__ ( ) #NEWLINE# new . update ( dims ) #NEWLINE# s = new . strip ( ) #NEWLINE# dims = s . keys ( ) #NEWLINE# if ( len ( dims ) > 1 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( dims ) == 1 ) : #NEWLINE# #INDENT# return dims [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# return None