4
4
# or https://github.com/scikit-hep/vector for details.
5
5
6
6
import pytest
7
- from hypothesis import given , strategies as st
8
7
9
- import vector
8
+ # from hypothesis import given
9
+ # from hypothesis import strategies as st
10
+
11
+ # import vector
10
12
11
13
# If ROOT is not available, skip these tests.
12
14
ROOT = pytest .importorskip ("ROOT" )
13
15
14
16
# 4D constructor arguments to get all the weird cases.
15
17
constructor = [
16
18
(0 , 0 , 0 , 0 ),
17
- (0 , 0 , 1 , 0 ), # theta == 0.0
19
+ (0 , 0 , 1 , 0 ), # theta == 0.0
18
20
(0 , 0 , - 1 , 0 ),
19
21
(0 , 0 , 1 , 0 ),
20
22
(0 , 0 , 0 , 4294967296 ),
24
26
(1 , 2 , 3 , 0 ),
25
27
(1 , 2 , 3 , 10 ),
26
28
(1 , 2 , 3 , - 10 ),
27
- (1. , 2. , 3. , 2.5 ),
29
+ (1.0 , 2.0 , 3.0 , 2.5 ),
28
30
(1 , 2 , 3 , 2.5 ),
29
31
(1 , 2 , 3 , - 2.5 ),
30
32
]
31
33
32
34
# Coordinate conversion methods to apply to the VectorObject4D.
33
35
coordinate_list = [
34
36
"to_xyzt" ,
35
- "to_xythetat" , # may fail for constructor2
37
+ "to_xythetat" , # may fail for constructor2
36
38
"to_xyetat" ,
37
39
"to_rhophizt" ,
38
40
"to_rhophithetat" ,
45
47
"to_rhophietatau" ,
46
48
]
47
49
50
+
48
51
@pytest .fixture (scope = "module" , params = coordinate_list )
49
52
def coordinates (request ):
50
53
return request .param
51
54
55
+
52
56
angle_list = [
53
57
0 ,
54
58
0.0 ,
@@ -62,10 +66,12 @@ def coordinates(request):
62
66
- 6.283185307179586 ,
63
67
]
64
68
69
+
65
70
@pytest .fixture (scope = "module" , params = angle_list )
66
71
def angle (request ):
67
72
return request .param
68
73
74
+
69
75
scalar_list = [
70
76
0 ,
71
77
- 1 ,
@@ -74,6 +80,7 @@ def angle(request):
74
80
- 100000.0000 ,
75
81
]
76
82
83
+
77
84
@pytest .fixture (scope = "module" , params = scalar_list )
78
85
def scalar (request ):
79
86
return request .param
0 commit comments