pose_format.torch.representation.inner_angle_test module

Classes:

TestInnerAngleRepresentation([methodName])

Unit test for the InnerAngleRepresentation class.

class pose_format.torch.representation.inner_angle_test.TestInnerAngleRepresentation(methodName='runTest')[source]

Bases: TestCase

Unit test for the InnerAngleRepresentation class.

This test class verifies that the angle calculations for the InnerAngleRepresentation class are correct and handle edge cases appropriately.

test_call_value_should_be_inner_angle():

Tests if the calculated angle matches the expected angle value.

test_call_masked_value_should_be_zero():

Tests if a masked value in the input results in a zero output angle.

Methods:

test_call_masked_value_should_be_zero()

Tests if masking an input value results in an output angle of zero.

test_call_value_should_be_inner_angle()

Tests if the computed angle from the InnerAngleRepresentation matches the expected value.

test_call_masked_value_should_be_zero()[source]

Tests if masking an input value results in an output angle of zero.

This test masks one of the input points and expects the computed angle at the middle point to be zero.

test_call_value_should_be_inner_angle()[source]

Tests if the computed angle from the InnerAngleRepresentation matches the expected value.

This test sets up three points and expects the computed angle at the middle point to be approximately equal to the angle calculated via arccosine of a predefined value.