How to use the diffsims.utils.atomic_scattering_params.ATOMIC_SCATTERING_PARAMS function in diffsims

To help you get started, we’ve selected a few diffsims examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pyxem / pyxem / pyxem / components / scattering_fit_component_xtables.py View on Github external
An additive constant to the fit.

        References
        ----------
        [1] Prince, E. (2004). International tables for crystallography.
        Vol. C, table 4.3.2.3.

        """
        Component.__init__(self, ['N', 'C'])
        self._whitelist['elements'] = ('init,sig', elements)
        self._whitelist['fracs'] = ('init,sig', fracs)
        self.elements = elements
        self.fracs = fracs
        params = []
        for e in elements:
            params.append(ATOMIC_SCATTERING_PARAMS[e])
        self.params = params
        self.N.value = N
        self.C.value = C