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¶
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
()¶
-
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
()¶
-
hyperspy.tests.model.test_fit_component module¶
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.
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
()¶
-
hyperspy.tests.model.test_parameter module¶
-
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)¶
-
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
()¶
-