How to use the pyxem.components.scattering_fit_component.ScatteringFitComponent function in pyxem

To help you get started, we’ve selected a few pyxem 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 / tests / test_components / test_scattering_fit_component.py View on Github external
def test_function_xtables(ri_model):
    elements = ['Cu']
    fracs = [1]
    sc_component = ScatteringFitComponent(elements, fracs, N=1., C=0., type='xtables')
    ri_model.append(sc_component)
    ri_model.fit()
    return
github pyxem / pyxem / tests / test_components / test_scattering_fit_component.py View on Github external
def test_function_lobato(ri_model):
    elements = ['Cu']
    fracs = [1]
    sc_component = ScatteringFitComponent(elements, fracs, N=1., C=0., type='lobato')
    ri_model.append(sc_component)
    ri_model.fit()
    return
github pyxem / pyxem / tests / test_components / test_scattering_fit_component.py View on Github external
def test_scattering_component_init_lobato():
    elements = ['Cu']
    fracs = [1]
    ref = ScatteringFitComponent(elements, fracs, N=1., C=0., type='lobato')
    assert isinstance(ref, ScatteringFitComponent)
    return
github pyxem / pyxem / tests / test_components / test_scattering_fit_component.py View on Github external
def test_scattering_component_init_xtables():
    elements = ['Cu']
    fracs = [1]
    ref = ScatteringFitComponent(elements, fracs, N=1., C=0., type='xtables')
    assert isinstance(ref, ScatteringFitComponent)
    return
github pyxem / pyxem / tests / test_components / test_scattering_fit_component.py View on Github external
def test_scattering_component_init_not_implemented():
    elements = ['Cu']
    fracs = [1]
    ref = ScatteringFitComponent(elements, fracs, N=1., C=0., type='nope')
    return