Skip to content

Commit

Permalink
Fix special case t=for MCL standardization
Browse files Browse the repository at this point in the history
  • Loading branch information
adrybakov committed Feb 21, 2024
1 parent 0490abb commit 1cebfb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utest/test_standardize.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ def test_RHL_standardize_cell(r1, r2, r3, conv_a, conv_alpha, order):
@example(
r1=0.0, r2=0.0, r3=1.0, conv_a=1.0, conv_b=1.0, conv_c=1.0, conv_alpha=1.0, order=3
)
@example(
r1=0.0, r2=0.0, r3=1.0, conv_a=1.0, conv_b=1.0, conv_c=2.0, conv_alpha=90.0, order=0
)
@given(
st.floats(min_value=0, max_value=2 * pi),
st.floats(min_value=0, max_value=2 * pi),
Expand All @@ -603,6 +606,7 @@ def test_RHL_standardize_cell(r1, r2, r3, conv_a, conv_alpha, order):
def test_MCL_standardize_cell(r1, r2, r3, conv_a, conv_b, conv_c, conv_alpha, order):
if not np.allclose([r1, r2, r3], [0, 0, 0], rtol=REL_TOL, atol=ABS_TOL) and (
min(conv_a, conv_b, conv_c) / max(conv_a, conv_b, conv_c) > REL_TOL
and conv_alpha != 90
):
# Prepare cell
cell = shuffle(
Expand Down

0 comments on commit 1cebfb7

Please sign in to comment.