Skip to content

Commit

Permalink
Merge pull request #5 from AxelHenningsson/main
Browse files Browse the repository at this point in the history
tighten bounds on possible scattering angles
  • Loading branch information
AxelHenningsson authored Dec 4, 2023
2 parents 39e9163 + 0d86582 commit 2d7be57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xrd_simulator/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def setup_diffracting_planes(
NOTE: This function will skip Miller indices that have a zero intensity due to the unit cell structure
factor vanishing, i.e forbidden reflections, such as a 100 in an fcc for instance, will not be included.
"""
sintlmin = min_bragg_angle / wavelength
sintlmax = max_bragg_angle / wavelength
sintlmin = np.sin(min_bragg_angle) / wavelength
sintlmax = np.sin(max_bragg_angle) / wavelength
self.miller_indices = tools.genhkl_all(
self.unit_cell, sintlmin, sintlmax, sgname=self.sgname)
if self.path_to_cif_file is not None:
Expand Down

0 comments on commit 2d7be57

Please sign in to comment.