Ejemplo n.º 1
0
def test_eds():
    s = EDSTEMSpectrum(([0, 1]))
    s2 = EDSSEMSpectrum(([0, 1]))
    s.axes_manager[0].convert_to_non_uniform_axis()
    s2.axes_manager[0].convert_to_non_uniform_axis()
    s.set_microscope_parameters(20)
    with pytest.raises(NotImplementedError):
        s.get_calibration_from(s)
    with pytest.raises(NotImplementedError):
        s2.get_calibration_from(s2)
    m = s.create_model()
    with pytest.raises(NotImplementedError):
        m.add_family_lines('Al_Ka')
    with pytest.raises(NotImplementedError):
        m._set_energy_scale('Al_Ka', [1.0])
    with pytest.raises(NotImplementedError):
        m._set_energy_offset('Al_Ka', [1.0])