Skip to content

Commit

Permalink
Update hkl/tests/test_diffract.py
Browse files Browse the repository at this point in the history
LGTM

Co-authored-by: Padraic Shafer <[email protected]>
  • Loading branch information
prjemian and padraic-shafer authored Dec 19, 2023
1 parent 100643f commit a7ed9ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hkl/tests/test_diffract.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ def test_i303_forward_solution_original_problem(e4cv):
# Check that phi is held constant in forward_solutions_table()
# Returns a pyRestTable.Table object.
table = e4cv.forward_solutions_table([refl], full=True, digits=4)
assert len(table.rows) == 2
assert table.labels[4] == "phi"
assert pytest.approx(table.rows[0][4], abs=1e-4) == CONSTANT_PHI
assert pytest.approx(table.rows[1][4], abs=1e-4) == CONSTANT_PHI
phi_column = table.labels.index("phi")
assert len(table.rows) > 0
for row in table.rows:
assert pytest.approx(row[phi_column], abs=1e-4) == CONSTANT_PHI

# Check that phi is held constant in forward()
# Returns a position namedtuple.
Expand Down

0 comments on commit a7ed9ca

Please sign in to comment.