hyperspy.tests.model package

Submodules

hyperspy.tests.model.test_chi_squared module

class hyperspy.tests.model.test_chi_squared.TestChiSquared

Bases: object

setUp()
test_chisq()
test_chisq_in_range()
test_chisq_with_fit()
test_chisq_with_inactive_components()
test_dof_with_fit()
test_dof_with_inactive_components()
test_dof_with_p0()
test_red_chisq()
test_red_chisq_with_fit()

hyperspy.tests.model.test_component module

class hyperspy.tests.model.test_component.TestMultidimensionalActive

Bases: object

setUp()
test_disable_pixel_switching()
test_disable_pixel_switching_current_off()
test_disable_pixel_switching_current_on()
test_enable_pixel_switching_current_off()
test_enable_pixel_switching_current_on()

hyperspy.tests.model.test_components module

class hyperspy.tests.model.test_components.TestExpression

Bases: object

setUp()
test_f()
test_grad_fwhm()
test_grad_height()
test_grad_x0()
test_name()
test_position()
class hyperspy.tests.model.test_components.TestGaussian

Bases: object

setUp()
test_estimate_parameters_binned()
test_estimate_parameters_unbinned()
class hyperspy.tests.model.test_components.TestHeavisideStep

Bases: object

setUp()
test_float_values()
test_gradients()
test_integer_values()
test_not_sorted()
class hyperspy.tests.model.test_components.TestOffset

Bases: object

setUp()
test_estimate_parameters_binned()
test_estimate_parameters_unbinned()
class hyperspy.tests.model.test_components.TestPolynomial

Bases: object

setUp()
test_2d_signal()
test_3d_signal()
test_estimate_parameters_binned()
test_estimate_parameters_unbinned()
test_gradient()
class hyperspy.tests.model.test_components.TestPowerLaw

Bases: object

setUp()
test_estimate_parameters_binned()
test_estimate_parameters_binned_only_current()
test_estimate_parameters_unbinned()
test_estimate_parameters_unbinned_only_current()
class hyperspy.tests.model.test_components.TestScalableFixedPattern

Bases: object

setUp()
test_both_binned()
test_both_unbinned()
test_pattern_binned_signal_unbinned()
test_pattern_unbinned_signal_binned()

hyperspy.tests.model.test_eelsmodel module

class hyperspy.tests.model.test_eelsmodel.TestCreateEELSModel

Bases: object

setUp()
test_auto_add_background_true()
test_auto_add_edges_false()
test_auto_add_edges_false_names()
test_auto_add_edges_true()
test_create_eelsmodel()
test_gos()
test_low_loss()
class hyperspy.tests.model.test_eelsmodel.TestEELSModel

Bases: object

setUp()
test_get_first_ionization_edge_energy_C()
test_get_first_ionization_edge_energy_C_B()
test_get_first_ionization_edge_energy_None()
test_get_start_energy_above()
test_get_start_energy_below()
test_get_start_energy_none()
test_resume_fsw()
test_suspend_auto_fsw()
test_two_area_powerlaw_estimation_BC()
test_two_area_powerlaw_estimation_C()
test_two_area_powerlaw_estimation_no_edge()
class hyperspy.tests.model.test_eelsmodel.TestFitBackground

Bases: object

setUp()
test_fit_background_B_C()
test_fit_background_C()
test_fit_background_no_edge()

hyperspy.tests.model.test_fit_component module

class hyperspy.tests.model.test_fit_component.TestFitOneComponent

Bases: object

setUp()
test_component_not_in_model(*arg, **kw)
test_fit_component()
class hyperspy.tests.model.test_fit_component.TestFitSeveralComponent

Bases: object

setUp()
test_fit_component_active_state()
test_fit_component_free_state()
test_fit_multiple_component()

hyperspy.tests.model.test_model module

class hyperspy.tests.model.test_model.TestAsSignal

Bases: object

setUp()
test_all_components_multidim()
test_all_components_simple()
test_one_component_multidim()
test_one_component_simple()
class hyperspy.tests.model.test_model.TestCreateModel

Bases: object

setUp()
test_create_model()
class hyperspy.tests.model.test_model.TestModel

Bases: object

setUp()
test_access_component_by_index()
test_access_component_by_name()
test_component_already_in_model(*arg, **kw)
test_component_name_when_append()
test_components_class_change_invalid_name()
test_components_class_change_name()
test_components_class_change_name_del_default(*arg, **kw)
test_components_class_default()
test_delete_component_by_index()
test_delete_component_by_name()
test_delete_slice()
test_get_component_by_component()
test_get_component_by_index()
test_get_component_by_name()
test_get_component_wrong(*arg, **kw)
test_no_component_with_that_name(*arg, **kw)
test_notebook_interactions()
test_remove_component()
test_remove_component_by_index()
test_remove_component_by_name()
test_several_component_with_same_name(*arg, **kw)
test_snap_parameter_bounds()
class hyperspy.tests.model.test_model.TestModelFitBinned

Bases: object

setUp()
test_fit_bounded()
test_fit_bounded_bad_starting_values()
test_fit_fmin_leastsq()
test_fit_fmin_ml()
test_fit_leastsq()
test_fit_leastsq_grad()
test_fit_mpfit()
test_fit_mpfit_grad()
test_fit_odr()
test_fit_odr_grad()
test_wrong_method(*arg, **kw)
class hyperspy.tests.model.test_model.TestModelScalarVariance

Bases: object

setUp()
test_std10_chisq()
test_std10_red_chisq()
test_std1_chisq()
test_std1_red_chisq()
test_std1_red_chisq_in_range()
class hyperspy.tests.model.test_model.TestModelSignalVariance

Bases: object

setUp()
test_std1_red_chisq()
class hyperspy.tests.model.test_model.TestModelWeighted

Bases: object

setUp()
test_chisq()
test_fit_fmin_binned()
test_fit_fmin_unbinned()
test_fit_leastsq_binned()
test_fit_leastsq_unbinned()
test_fit_mpfit_binned()
test_fit_mpfit_unbinned()
test_fit_odr_binned()
test_fit_odr_unbinned()
test_red_chisq()
class hyperspy.tests.model.test_model.TestMultifit

Bases: object

setUp()
test_bounded_snapping()
test_fetch_only_fixed_false()
test_fetch_only_fixed_true()
class hyperspy.tests.model.test_model.TestSetCurrentValuesTo

Bases: object

setUp()
test_set_1()
test_set_all()
class hyperspy.tests.model.test_model.TestStoreCurrentValues

Bases: object

setUp()
test_active()
test_not_active()

hyperspy.tests.model.test_parameter module

class hyperspy.tests.model.test_parameter.Dummy

Bases: object

add_one()
class hyperspy.tests.model.test_parameter.DummyAxesManager

Bases: object

indices = ()
navigation_shape = ()
class hyperspy.tests.model.test_parameter.TestParameterLen1

Bases: object

setUp()
test_connect_disconnect()
test_default_value()
test_ext_force_positive()
test_map_size0()
test_map_size1()
test_map_size2()
test_number_of_elements()
test_set_value()
test_set_value_bounded()
test_set_value_wrong_length(*arg, **kw)
class hyperspy.tests.model.test_parameter.TestParameterLen2

Bases: object

setUp()
test_connect_disconnect()
test_default_value()
test_ext_force_positive()
test_is_tuple()
test_map_size0()
test_map_size1()
test_map_size2()
test_number_of_elements()
test_set_value()
test_set_value_bounded()
test_set_value_wrong_length(*arg, **kw)
test_set_value_wrong_length2(*arg, **kw)
class hyperspy.tests.model.test_parameter.TestParameterTwin

Bases: object

setUp()
test_inherit_connections()
test_slave_fixed()
test_twin_function()
test_twin_value()
test_twin_value_bounded()

hyperspy.tests.model.test_set_parameter_state module

class hyperspy.tests.model.test_set_parameter_state.TestSetParameterInModel

Bases: object

setUp()
test_set_parameter_in_model1()
test_set_parameter_in_model2()
test_set_parameter_in_model3()
test_set_parameter_in_model4()
test_set_parameter_in_model5()
test_set_parameter_in_model_free()
test_set_parameter_in_model_not_free()

hyperspy.tests.model.test_set_parameter_value module

class hyperspy.tests.model.test_set_parameter_value.TestSetParameterInModel

Bases: object

setUp()
test_set_active_value1()
test_set_active_value2()
test_set_active_value3()
test_set_parameter_value1()
test_set_parameter_value2()
test_set_parameter_value3()

Module contents