def set_theta_direction(self, direction):
    '\n        Set the direction in which theta increases.\n\n        clockwise, -1:\n           Theta increases in the clockwise direction\n\n        counterclockwise, anticlockwise, 1:\n           Theta increases in the counterclockwise direction\n        '
    if (direction in ('clockwise',)):
        self._direction = (- 1)
    elif (direction in ('counterclockwise', 'anticlockwise')):
        self._direction = 1
    elif (direction in (1, (- 1))):
        self._direction = direction
    else:
        raise ValueError('direction must be 1, -1, clockwise or counterclockwise')
Set the direction in which theta increases.

clockwise, -1:
   Theta increases in the clockwise direction

counterclockwise, anticlockwise, 1:
   Theta increases in the counterclockwise direction
def set_theta_direction(self, direction):
    '\n        Set the direction in which theta increases.\n\n        clockwise, -1:\n           Theta increases in the clockwise direction\n\n        counterclockwise, anticlockwise, 1:\n           Theta increases in the counterclockwise direction\n        '
    if (direction in ('clockwise',)):
        self._direction = (- 1)
    elif (direction in ('counterclockwise', 'anticlockwise')):
        self._direction = 1
    elif (direction in (1, (- 1))):
        self._direction = direction
    else:
        raise ValueError('direction must be 1, -1, clockwise or counterclockwise')