Skip to content

Commit

Permalink
[skip ci] pre-commit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed May 10, 2021
1 parent 92fe702 commit 566ac89
Show file tree
Hide file tree
Showing 13 changed files with 1,307 additions and 597 deletions.
17 changes: 12 additions & 5 deletions tests/root/test_EulerAngles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
# or https://github.com/scikit-hep/vector for details.

import pytest
from hypothesis import given, strategies as st

import vector
# from hypothesis import given
# from hypothesis import strategies as st

# import vector

# If ROOT is not available, skip these tests.
ROOT = pytest.importorskip("ROOT")

# 4D constructor arguments to get all the weird cases.
constructor = [
(0, 0, 0, 0),
(0, 0, 1, 0), # theta == 0.0
(0, 0, 1, 0), # theta == 0.0
(0, 0, -1, 0),
(0, 0, 1, 0),
(0, 0, 0, 4294967296),
Expand All @@ -24,15 +26,15 @@
(1, 2, 3, 0),
(1, 2, 3, 10),
(1, 2, 3, -10),
(1., 2., 3., 2.5),
(1.0, 2.0, 3.0, 2.5),
(1, 2, 3, 2.5),
(1, 2, 3, -2.5),
]

# Coordinate conversion methods to apply to the VectorObject4D.
coordinate_list = [
"to_xyzt",
"to_xythetat", # may fail for constructor2
"to_xythetat", # may fail for constructor2
"to_xyetat",
"to_rhophizt",
"to_rhophithetat",
Expand All @@ -45,10 +47,12 @@
"to_rhophietatau",
]


@pytest.fixture(scope="module", params=coordinate_list)
def coordinates(request):
return request.param


angle_list = [
0,
0.0,
Expand All @@ -62,10 +66,12 @@ def coordinates(request):
-6.283185307179586,
]


@pytest.fixture(scope="module", params=angle_list)
def angle(request):
return request.param


scalar_list = [
0,
-1,
Expand All @@ -74,6 +80,7 @@ def angle(request):
-100000.0000,
]


@pytest.fixture(scope="module", params=scalar_list)
def scalar(request):
return request.param
Loading

0 comments on commit 566ac89

Please sign in to comment.