π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
[pre-commit.ci] pre-commit suggestions (#2811)
pre-commit-ci[bot]7229990ff4df
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex fed070fce..db623ad53 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -20,7 +20,7 @@ repos:- id: pyproject-fmt- repo: https://github.com/astral-sh/ruff-pre-commit- rev: v0.2.1+ rev: v0.2.2hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix]diff --git a/tests/integration/test_conversions.py b/tests/integration/test_conversions.pyindex dbe74f508..e78d0fabf 100644--- a/tests/integration/test_conversions.py+++ b/tests/integration/test_conversions.py@@ -187,7 +187,9 @@ class TestAngleOfRotations:@pytest.mark.parametrize("axis_name", ("x", "y", "z"))def test_axis_angle_to_rotation_matrix(self, axis_name, device, dtype, atol, rtol):# Random angle in [-pi..pi]- angle = torch.tensor((np.random.random(size=(2, 1)) * 2.0 * np.pi - np.pi), device=device, dtype=dtype)+ angle = torch.tensor(+ (np.random.default_rng().random(size=(2, 1)) * 2.0 * np.pi - np.pi), device=device, dtype=dtype+ )rot_m, axis = TestAngleOfRotations.axis_and_angle_to_rotation_matrix(axis_name=axis_name, angle=angle, device=device, dtype=dtype)