Skip to content

Commit 9c06e7d

Browse files
committed
Fix test by using symmetrically unique reflections (4 degenerate were missing)
1 parent 98dc783 commit 9c06e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffsims/tests/generators/test_simulation_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_custom_shape_func(self, diffraction_calculator_custom, local_structure)
184184
)
185185
# This shape factor model yields 0 intensity for the direct beam,
186186
# which is less than the intensity threshold. The direct beam is therefore removed
187-
assert diffraction.coordinates.size == 52
187+
assert diffraction.coordinates.unique(use_symmetry=True).size == 9
188188

189189
def test_appropriate_scaling(self, diffraction_calculator: SimulationGenerator):
190190
"""Tests that doubling the unit cell halves the pattern spacing."""

0 commit comments

Comments
 (0)