Skip to content

Commit 2750848

Browse files
committed
Drop meaningless order-of-magnitude comparison
1 parent 4f18bc1 commit 2750848

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/test_core.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,24 +1033,15 @@ def test_cumulant_function(self):
10331033
cumulant_function_second_order = numeric.calculate_cumulant_function(
10341034
pulse, spectrum, omega, second_order=True
10351035
)
1036-
# Make sure first and second order are --roughly -- of same order
1037-
# of magnitude. Unlike the frequency shifts themselves, the
1038-
# second order contributions to the cumulant function vanish on the
1039-
# diagonal, whereas the first order contributions dominate. Hence,
1040-
# be quite lenient.
10411036
second_order_contribution = (cumulant_function_second_order
10421037
- cumulant_function_first_order)
1043-
rel = (np.linalg.norm(cumulant_function_first_order)
1044-
/ np.linalg.norm(second_order_contribution))
10451038

10461039
# Second order terms should be anti-hermitian
10471040
self.assertArrayAlmostEqual(second_order_contribution,
10481041
- second_order_contribution.transpose(0, 2, 1),
10491042
atol=1e-16)
10501043
self.assertEqual(cumulant_function_first_order.shape,
10511044
cumulant_function_second_order.shape)
1052-
self.assertLessEqual(rel, 200)
1053-
self.assertGreaterEqual(rel, 1/10)
10541045

10551046
def test_error_transfer_matrix(self):
10561047
"""Test raises of numeric.error_transfer_matrix."""

0 commit comments

Comments
 (0)