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 fece39a commit 8cc1441Copy full SHA for 8cc1441
test/test_envelopes.py
@@ -10,6 +10,24 @@
10
with open("test/envelopes.pickle", "rb") as filename:
11
test_data = pickle.load(filename)
12
13
+ABS_TOL_FACTOR = 1e-11
14
+
15
16
+def get_atol(test_type: str) -> float:
17
+ """Get the absolute tolerance corresponding to a specific test data
18
19
+ Parameters
20
+ ----------
21
+ test_type : str
22
+ String representing the test type to be used as a key in the test_data dict
23
24
+ Returns
25
+ -------
26
+ float
27
+ Absolute tolerance for the desired value of this test type
28
+ """
29
+ return ABS_TOL_FACTOR * np.max(test_data[test_type])
30
31
32
@pytest.mark.unit
33
def test_pwc_shape():
0 commit comments