soprano.calculate.xrd.sel_rules#
Providing an interface to selection rules for XRD peaks and various spacegroups.
Functions
| Generate a function object that acts as a selection rule for XRD lines for the given symmetry group expressed in Hall number notation | |
| 
 | Generate a function object that acts as a selection rule for XRD lines for the given symmetry group expressed in international number notation | 
- soprano.calculate.xrd.sel_rules.get_sel_rule_from_hall(h)[source]#
- Generate a function object that acts as a selection rule for XRD lines for the given symmetry group expressed in Hall number notation Args:h (int): Hall number of the required spacegroupReturns:rule_func (function< list<int> >=> <bool>): a function that can be used to test triples ofMiller indices h,k,l to verify whether therelated plane gives rise or not to a peakRaises:RuntimeError: if the database of XRD selection rules or that ofHall numbers was not properly loadedValueError: if the passed argument is invalid
- soprano.calculate.xrd.sel_rules.get_sel_rule_from_international(n, o='all')[source]#
- Generate a function object that acts as a selection rule for XRD lines for the given symmetry group expressed in international number notation Args:n (int): International number of the required spacegroupo (Optional[int]): Sub-option of the required spacegroupReturns:rule_func (function< list<int> >=> <bool>): a function that can be used to test triples ofMiller indices h,k,l to verify whether therelated plane gives rise or not to a peakRaises:RuntimeError: if the database of XRD selection rules was not properlyloadedValueError: if some of the passed arguments are invalid