def theta(self, theta): """Set the angle of the survey node (in radians) within the associated map. :param float theta: The survey node angle. :raise fetchcore.exceptions.ValidationError: Thrown if theta is not a finite number in between 0 and pi. """ if not Number.is_finite(theta): raise ValidationError("Theta must be a finite number (theta is %s)" % theta) else: self._set("theta", Number.bind_radians_to_pi(theta))
def theta(self, theta): """Set the angle of the lower-left corner of the map (in radians). :param float theta: The map angle. :raise fetchcore.exceptions.ValidationError: Thrown if theta is not a finite number in between 0 and pi. """ if not Number.is_finite(theta): raise exceptions.ValidationError( "Theta must be a finite number (theta is %s)" % theta) else: self._set("theta", Number.bind_radians_to_pi(theta))