Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
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
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
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
def test_scattering_component_init_not_implemented():
elements = ['Cu']
fracs = [1]
ref = ScatteringFitComponent(elements, fracs, N=1., C=0., type='nope')
return