hyperspy.tests.model.test_model module¶
-
class
hyperspy.tests.model.test_model.
TestAdjustPosition
¶ Bases:
object
-
setup_method
(method)¶
-
test_disable_adjust_position
(mpl_cleanup)¶
-
test_enable_adjust_position
(mpl_cleanup)¶
-
test_enable_all
(mpl_cleanup)¶
-
test_enable_all_zero_start
(mpl_cleanup)¶
-
test_manual_close
(mpl_cleanup)¶
-
-
class
hyperspy.tests.model.test_model.
TestAsSignal
¶ Bases:
object
-
setup_method
(method)¶
-
test_all_components_multidim
(parallel)¶
-
test_all_components_simple
(parallel)¶
-
test_one_component_multidim
(parallel)¶
-
test_one_component_simple
(parallel)¶
-
test_threaded_identical
()¶
-
-
class
hyperspy.tests.model.test_model.
TestCreateModel
¶ Bases:
object
-
lazify
(**kwargs)¶
-
setup_method
(method)¶
-
test_create_model
()¶
-
test_lazy_create_model
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModel1D
¶ Bases:
object
-
setup_method
(method)¶
-
test_access_component_by_index
()¶
-
test_access_component_by_name
()¶
-
test_append_component
()¶
-
test_append_existing_component
()¶
-
test_calculating_convolution_axis
()¶
-
test_component_already_in_model
()¶
-
test_component_name_when_append
()¶
-
test_components_class_change_invalid_name
()¶
-
test_components_class_change_name
()¶
-
test_components_class_change_name_del_default
()¶
-
test_components_class_default
()¶
-
test_delete_component_by_index
()¶
-
test_delete_component_by_name
()¶
-
test_delete_slice
()¶
-
test_errfunc
()¶
-
test_errfunc2
()¶
-
test_get_component_by_component
()¶
-
test_get_component_by_index
()¶
-
test_get_component_by_name
()¶
-
test_get_component_wrong
()¶
-
test_gradient_ls
()¶
-
test_gradient_ml
()¶
-
test_model_function
()¶
-
test_no_component_with_that_name
()¶
-
test_remove_component
()¶
-
test_remove_component_by_index
()¶
-
test_remove_component_by_name
()¶
-
test_several_component_with_same_name
()¶
-
test_snap_parameter_bounds
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModel2D
¶ Bases:
object
-
setup_method
(method)¶
-
test_fitting
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelCallMethod
¶ Bases:
object
-
setup_method
(method)¶
-
test_call_method_binned
()¶
-
test_call_method_no_convolutions
()¶
-
test_call_method_with_convolutions
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelFitBinned
¶ Bases:
object
-
lazify
(**kwargs)¶
-
setup_method
(method)¶
-
test_fit_bounded_bad_starting_values_lbfgs
()¶
-
test_fit_bounded_bad_starting_values_leastsq
()¶
-
test_fit_bounded_bad_starting_values_mpfit
()¶
-
test_fit_bounded_lbfgs
()¶
-
test_fit_bounded_leastsq
()¶
-
test_fit_bounded_mpfit
()¶
-
test_fit_leastsq
()¶
-
test_fit_leastsq_grad
()¶
-
test_fit_mpfit
()¶
-
test_fit_mpfit_grad
()¶
-
test_fit_neldermead_leastsq
()¶
-
test_fit_neldermead_ml
()¶
-
test_fit_odr
()¶
-
test_fit_odr_grad
()¶
-
test_lazy_fit_bounded_bad_starting_values_lbfgs
()¶
-
test_lazy_fit_bounded_bad_starting_values_leastsq
()¶
-
test_lazy_fit_bounded_bad_starting_values_mpfit
()¶
-
test_lazy_fit_bounded_lbfgs
()¶
-
test_lazy_fit_bounded_leastsq
()¶
-
test_lazy_fit_bounded_mpfit
()¶
-
test_lazy_fit_leastsq
()¶
-
test_lazy_fit_leastsq_grad
()¶
-
test_lazy_fit_mpfit
()¶
-
test_lazy_fit_mpfit_grad
()¶
-
test_lazy_fit_neldermead_leastsq
()¶
-
test_lazy_fit_neldermead_ml
()¶
-
test_lazy_fit_odr
()¶
-
test_lazy_fit_odr_grad
()¶
-
test_lazy_wrong_method
()¶
-
test_wrong_method
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelJacobians
¶ Bases:
object
-
setup_method
(method)¶
-
test_jacobian_convolved
()¶
-
test_jacobian_not_convolved
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelPlotCall
¶ Bases:
object
-
setup_method
(method)¶
-
test_model2plot_other_am
()¶
-
test_model2plot_own_am
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelScalarVariance
¶ Bases:
object
-
setup_method
(method)¶
-
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.
TestModelSettingPZero
¶ Bases:
object
-
setup_method
(method)¶
-
test_fetching_from_p0
()¶
-
test_setting_boundaries
()¶
-
test_setting_mpfit_parameters_info
()¶
-
test_setting_p0
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelSignalVariance
¶ Bases:
object
-
lazify
(**kwargs)¶
-
setup_method
(method)¶
-
test_lazy_std1_red_chisq
()¶
-
test_std1_red_chisq
()¶
-
-
class
hyperspy.tests.model.test_model.
TestModelWeighted
¶ Bases:
object
-
lazify
(**kwargs)¶
-
setup_method
(method)¶
-
test_chisq
()¶
-
test_fit_leastsq_binned
()¶
-
test_fit_leastsq_unbinned
()¶
-
test_fit_mpfit_binned
()¶
-
test_fit_mpfit_unbinned
()¶
-
test_fit_neldermead_binned
()¶
-
test_fit_neldermead_unbinned
()¶
-
test_fit_odr_binned
()¶
-
test_fit_odr_unbinned
()¶
-
test_lazy_chisq
()¶
-
test_lazy_fit_leastsq_binned
()¶
-
test_lazy_fit_leastsq_unbinned
()¶
-
test_lazy_fit_mpfit_binned
()¶
-
test_lazy_fit_mpfit_unbinned
()¶
-
test_lazy_fit_neldermead_binned
()¶
-
test_lazy_fit_neldermead_unbinned
()¶
-
test_lazy_fit_odr_binned
()¶
-
test_lazy_fit_odr_unbinned
()¶
-
test_lazy_red_chisq
()¶
-
test_red_chisq
()¶
-
-
class
hyperspy.tests.model.test_model.
TestMultifit
¶ Bases:
object
-
lazify
(**kwargs)¶
-
setup_method
(method)¶
-
test_bounded_snapping_leastsq
()¶
-
test_bounded_snapping_mpfit
()¶
-
test_fetch_only_fixed_false
()¶
-
test_fetch_only_fixed_true
()¶
-
test_lazy_bounded_snapping_leastsq
()¶
-
test_lazy_bounded_snapping_mpfit
()¶
-
test_lazy_fetch_only_fixed_false
()¶
-
test_lazy_fetch_only_fixed_true
()¶
-
test_lazy_parameter_as_signal_values
()¶
-
test_parameter_as_signal_values
()¶
-