@@ -643,7 +643,10 @@ def allowed(self):
643
643
# ------------------------- Custom methods ----------------------- #
644
644
645
645
def calculate_structure_factor (
646
- self , scattering_params = "xtables" , debye_waller_factors = None
646
+ self ,
647
+ scattering_params = "xtables" ,
648
+ debye_waller_factors = None ,
649
+ use_symmetry = True ,
647
650
):
648
651
r"""Populate :attr:`structure_factor` with the complex
649
652
kinematical structure factor :math:`F_{hkl}` for each vector.
@@ -655,6 +658,9 @@ def calculate_structure_factor(
655
658
(default) or ``"lobato"``.
656
659
debye_waller_factors: dict
657
660
Debye-Waller factors for atoms in the structure.
661
+ use_symmetry: bool
662
+ If True, will use symmetry to avoid re-calculating structure factors for equivalent reflections.
663
+ This can be slower for high symmetries.
658
664
659
665
Examples
660
666
--------
@@ -694,7 +700,7 @@ def calculate_structure_factor(
694
700
"""
695
701
696
702
# Compute one structure factor per set {hkl}
697
- unique , inds = self .unique (use_symmetry = True , return_inverse = True )
703
+ unique , inds = self .unique (use_symmetry = use_symmetry , return_inverse = True )
698
704
hkl_unique = unique .hkl
699
705
structure_factor = _get_kinematical_structure_factor (
700
706
structure = self .phase .structure ,
0 commit comments