hyperspy.tests.signal.test_tools module

class hyperspy.tests.signal.test_tools.Test1D

Bases: object

lazify(**kwargs)
setup_method(method)
test_integrate1D()
test_lazy_integrate1D()
class hyperspy.tests.signal.test_tools.Test2D

Bases: object

lazify(**kwargs)
setup_method(method)
test_add_gaussian_noise()
test_add_poisson_noise()
test_axis_by_str()
test_crop_float()
test_crop_float_no_unit_convertion_signal1D()
test_crop_float_no_unit_convertion_signal2D()
test_crop_float_unit_convertion_signal1D()
test_crop_float_unit_convertion_signal2D()
test_crop_image_unit_convertion_signal2D()
test_crop_int()
test_crop_start_end_equal()
test_estimate_poissonian_noise_copy_data()
test_estimate_poissonian_noise_noarg()
test_estimate_poissonian_noise_with_args()
test_histogram()
test_lazy_add_gaussian_noise()
test_lazy_add_poisson_noise()
test_lazy_axis_by_str()
test_lazy_crop_float()
test_lazy_crop_float_no_unit_convertion_signal1D()
test_lazy_crop_float_no_unit_convertion_signal2D()
test_lazy_crop_float_unit_convertion_signal1D()
test_lazy_crop_float_unit_convertion_signal2D()
test_lazy_crop_image_unit_convertion_signal2D()
test_lazy_crop_int()
test_lazy_crop_start_end_equal()
test_lazy_estimate_poissonian_noise_copy_data()
test_lazy_estimate_poissonian_noise_noarg()
test_lazy_estimate_poissonian_noise_with_args()
test_lazy_histogram()
test_lazy_numpy_func()
test_lazy_numpy_unfunc_one_arg_titled()
test_lazy_numpy_unfunc_one_arg_untitled()
test_lazy_numpy_unfunc_two_arg_titled()
test_lazy_numpy_unfunc_two_arg_untitled()
test_lazy_print_summary()
test_lazy_print_summary_statistics()
test_lazy_split_axis0()
test_lazy_split_axis1()
test_lazy_split_axisE()
test_lazy_split_default()
test_lazy_sum_x()
test_lazy_sum_x_E()
test_lazy_unfold_image()
test_lazy_unfold_image_returns_true()
test_numpy_func()
test_numpy_unfunc_one_arg_titled()
test_numpy_unfunc_one_arg_untitled()
test_numpy_unfunc_two_arg_titled()
test_numpy_unfunc_two_arg_untitled()
test_print_summary()
test_print_summary_statistics()
test_split_axis0()
test_split_axis1()
test_split_axisE()
test_split_default()
test_sum_x()
test_sum_x_E()
test_unfold_image()
test_unfold_image_returns_true()
class hyperspy.tests.signal.test_tools.Test3D

Bases: object

lazify(**kwargs)
setup_method(method)
test_default_navigation_max()
test_default_navigation_mean()
test_default_navigation_min()
test_default_navigation_std()
test_default_navigation_sum()
test_default_navigation_var()
test_get_navigation_signal_dtype()
test_get_navigation_signal_given_data()
test_get_navigation_signal_given_dtype()
test_get_navigation_signal_nav_dim0()
test_get_navigation_signal_nav_dim1()
test_get_navigation_signal_nav_dim2()
test_get_navigation_signal_nav_dim3()
test_get_navigation_signal_wrong_data_shape()
test_get_navigation_signal_wrong_data_shape_dim0()
test_get_signal_signal_dtype()
test_get_signal_signal_given_data()
test_get_signal_signal_given_dtype()
test_get_signal_signal_nav_dim0()
test_get_signal_signal_nav_dim1()
test_get_signal_signal_nav_dim2()
test_get_signal_signal_nav_dim3()
test_get_signal_signal_wrong_data_shape()
test_get_signal_signal_wrong_data_shape_dim0()
test_indexmax()
test_indexmin()
test_lazy_default_navigation_max()
test_lazy_default_navigation_mean()
test_lazy_default_navigation_min()
test_lazy_default_navigation_std()
test_lazy_default_navigation_sum()
test_lazy_default_navigation_var()
test_lazy_get_navigation_signal_dtype()
test_lazy_get_navigation_signal_given_data()
test_lazy_get_navigation_signal_given_dtype()
test_lazy_get_navigation_signal_nav_dim0()
test_lazy_get_navigation_signal_nav_dim1()
test_lazy_get_navigation_signal_nav_dim2()
test_lazy_get_navigation_signal_nav_dim3()
test_lazy_get_navigation_signal_wrong_data_shape()
test_lazy_get_navigation_signal_wrong_data_shape_dim0()
test_lazy_get_signal_signal_dtype()
test_lazy_get_signal_signal_given_data()
test_lazy_get_signal_signal_given_dtype()
test_lazy_get_signal_signal_nav_dim0()
test_lazy_get_signal_signal_nav_dim1()
test_lazy_get_signal_signal_nav_dim2()
test_lazy_get_signal_signal_nav_dim3()
test_lazy_get_signal_signal_wrong_data_shape()
test_lazy_get_signal_signal_wrong_data_shape_dim0()
test_lazy_indexmax()
test_lazy_indexmin()
test_lazy_rebin()
test_lazy_rebin_const_variance()
test_lazy_rebin_dtype()
test_lazy_rebin_no_variance()
test_lazy_swap_axes_iteration()
test_lazy_swap_axes_simple()
test_lazy_valuemax()
test_lazy_valuemin()
test_rebin()
test_rebin_const_variance()
test_rebin_dtype()
test_rebin_no_variance()
test_swap_axes_iteration()
test_swap_axes_simple()
test_valuemax()
test_valuemin()
class hyperspy.tests.signal.test_tools.Test4D

Bases: object

lazify(**kwargs)
setup_method(method)
test_diff_axis()
test_diff_data()
test_image_signal_unfolded_back_to_false()
test_image_signal_unfolded_deepcopy()
test_image_signal_unfolded_false()
test_image_signal_unfolded_true()
test_lazy_diff_axis()
test_lazy_diff_data()
test_lazy_image_signal_unfolded_back_to_false()
test_lazy_image_signal_unfolded_deepcopy()
test_lazy_image_signal_unfolded_false()
test_lazy_image_signal_unfolded_true()
test_lazy_rollaxis_int()
test_lazy_rollaxis_str()
test_lazy_unfold_image()
test_lazy_unfold_spectrum()
test_lazy_unfold_spectrum_returns_true()
test_lazy_unfold_spectrum_signal_returns_false()
test_rollaxis_int()
test_rollaxis_str()
test_unfold_image()
test_unfold_spectrum()
test_unfold_spectrum_returns_true()
test_unfold_spectrum_signal_returns_false()
class hyperspy.tests.signal.test_tools.TestDerivative

Bases: object

lazify(**kwargs)
setup_method(method)
test_derivative_data()
test_lazy_derivative_data()
class hyperspy.tests.signal.test_tools.TestLinearRebin

Bases: object

test_linear_downscale_out()
test_linear_downsize()
test_linear_upscale_out()
test_linear_upsize()
class hyperspy.tests.signal.test_tools.TestOutArg

Bases: object

lazify(**kwargs)
setup_method(method)
test_as_image()
test_as_spectrum()
test_derivative()
test_diff()
test_get_histogram()
test_histogram_axis_changes()
test_inav()
test_inav_variance()
test_indexmax()
test_integrate1D()
test_integrate_simpson()
test_isig()
test_isig_variance()
test_lazy_as_image()
test_lazy_as_spectrum()
test_lazy_derivative()
test_lazy_diff()
test_lazy_get_histogram()
test_lazy_histogram_axis_changes()
test_lazy_inav()
test_lazy_inav_variance()
test_lazy_indexmax()
test_lazy_integrate1D()
test_lazy_integrate_simpson()
test_lazy_isig()
test_lazy_isig_variance()
test_lazy_masked_array_mean()
test_lazy_masked_array_sum()
test_lazy_masked_arrays_out()
test_lazy_max()
test_lazy_mean()
test_lazy_min()
test_lazy_rebin()
test_lazy_std()
test_lazy_sum()
test_lazy_sum_no_navigation_axis(mask)
test_lazy_sum_return_1d_signal()
test_lazy_valuemax()
test_lazy_var()
test_lazy_wrong_out_shape()
test_lazy_wrong_out_shape_masked()
test_masked_array_mean()
test_masked_array_sum()
test_masked_arrays_out()
test_max()
test_mean()
test_min()
test_rebin()
test_std()
test_sum()
test_sum_no_navigation_axis(mask)
test_sum_return_1d_signal()
test_valuemax()
test_var()
test_wrong_out_shape()
test_wrong_out_shape_masked()
class hyperspy.tests.signal.test_tools.TestTranspose

Bases: object

lazify(**kwargs)
setup_method(method)
test_lazy_navigation_int_transpose()
test_lazy_navigation_iterable_axes_transpose()
test_lazy_navigation_iterable_int_transpose()
test_lazy_navigation_iterable_names_transpose()
test_lazy_navigation_one_name()
test_lazy_optimize()
test_lazy_signal_int_transpose()
test_lazy_signal_iterable_axes_transpose()
test_lazy_signal_iterable_int_transpose()
test_lazy_signal_iterable_names_transpose()
test_lazy_signal_one_name()
test_lazy_too_many_navigation_axes()
test_lazy_too_many_signal_axes()
test_lazy_transpose_shortcut()
test_navigation_int_transpose()
test_navigation_iterable_axes_transpose()
test_navigation_iterable_int_transpose()
test_navigation_iterable_names_transpose()
test_navigation_one_name()
test_optimize()
test_signal_int_transpose()
test_signal_iterable_axes_transpose()
test_signal_iterable_int_transpose()
test_signal_iterable_names_transpose()
test_signal_one_name()
test_too_many_navigation_axes()
test_too_many_signal_axes()
test_transpose_shortcut()
hyperspy.tests.signal.test_tools.test_lazy_changetype_rechunk()
hyperspy.tests.signal.test_tools.test_lazy_changetype_rechunk_False()
hyperspy.tests.signal.test_tools.test_lazy_diff_rechunk()
hyperspy.tests.signal.test_tools.test_lazy_reduce_rechunk()
hyperspy.tests.signal.test_tools.test_lazy_transpose_rechunks()
hyperspy.tests.signal.test_tools.test_signal_iterator()
hyperspy.tests.signal.test_tools.test_spikes_removal_tool()