We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e85c3 commit db1f7a9Copy full SHA for db1f7a9
tests/test_elements.py
@@ -7,12 +7,8 @@
7
8
def test_drift():
9
10
- for CTX in xo.ContextCpu, xo.ContextPyopencl, xo.ContextCupy:
11
- if CTX not in available:
12
- continue
13
-
14
- print(f"Test {CTX}")
15
- ctx = CTX()
+ for ctx in xo.context.get_test_contexts():
+ print(f"Test {ctx.__class__}")
16
17
pyst_particle = xl.Particles(
18
p0c=25.92e9,
@@ -40,12 +36,8 @@ def test_drift():
40
36
41
37
def test_elens():
42
38
43
44
45
46
47
48
39
49
50
51
p0c=np.array([7000e9]),
0 commit comments