#NEWLINE# def getType( self , short = False ) : #NEWLINE# #INDENT# "Return a string describing the type of the location, i.e. origin, on axis, off axis etc.\n\n        ::\n            \n            >>> l = Location()\n            >>> l.getType()\n            'origin'\n            >>> l = Location(pop=1)\n            >>> l.getType()\n            'on-axis, pop'\n            >>> l = Location(pop=1, snap=1)\n            >>> l.getType()\n            'off-axis, pop snap'\n            >>> l = Location(pop=(1,2))\n            >>> l.getType()\n            'on-axis, pop, split'\n        " #NEWLINE# if self . isOrigin ( ) : #NEWLINE# #INDENT# return 'origin' #NEWLINE# #UNINDENT# t = [ ] #NEWLINE# onAxis = self . isOnAxis ( ) #NEWLINE# if ( onAxis is False ) : #NEWLINE# #INDENT# if short : #NEWLINE# #INDENT# t . append ( 'off-axis' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# t . append ( ( 'off-axis, ' + ' ' . join ( self . getActiveAxes ( ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if short : #NEWLINE# #INDENT# t . append ( 'on-axis' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# t . append ( ( 'on-axis, %s' % onAxis ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . isAmbivalent ( ) : #NEWLINE# #INDENT# t . append ( 'split' ) #NEWLINE# #UNINDENT# return ', ' . join ( t )