hyperspy.tests.io package

Submodules

hyperspy.tests.io.generate_dm_testing_files module

Creates Digital Micrograph scripts to generate the dm3 testing files

hyperspy.tests.io.generate_dm_testing_files.generate_1D_files(f, data_types, dmversion)
hyperspy.tests.io.generate_dm_testing_files.generate_2D_files(f, data_types, dmversion)
hyperspy.tests.io.generate_dm_testing_files.generate_3D_files(f, data_types, dmversion)
hyperspy.tests.io.generate_dm_testing_files.generate_4D_files(f, data_types, dmversion)

hyperspy.tests.io.test_dm3 module

hyperspy.tests.io.test_dm3.check_content(dat1, dat2, subfolder, key)
hyperspy.tests.io.test_dm3.check_dtype(d1, d2, i)
hyperspy.tests.io.test_dm3.check_load(filename, subfolder, key)
hyperspy.tests.io.test_dm3.test_content()
hyperspy.tests.io.test_dm3.test_dtypes()
hyperspy.tests.io.test_dm3.test_loading()

hyperspy.tests.io.test_dm4 module

hyperspy.tests.io.test_dm4.check_content(dat1, dat2, subfolder, key)
hyperspy.tests.io.test_dm4.check_dtype(d1, d2, i)
hyperspy.tests.io.test_dm4.check_load(filename, subfolder, key)
hyperspy.tests.io.test_dm4.test_content()
hyperspy.tests.io.test_dm4.test_dtypes()
hyperspy.tests.io.test_dm4.test_loading()

hyperspy.tests.io.test_dm_stackbuilder_plugin module

class hyperspy.tests.io.test_dm_stackbuilder_plugin.TestStackBuilder

Bases: object

test_load_stackbuilder_imagestack()

hyperspy.tests.io.test_fei module

class hyperspy.tests.io.test_fei.TestFEIReader

Bases: object

setUp()
test_guess_units_from_mode(verbose=True)
test_load_acquire(verbose=True)
test_load_diffraction_area_scan(verbose=True)
test_load_diffraction_line_scan(verbose=True)
test_load_diffraction_point(verbose=True)
test_load_emi_old_new_format(verbose=True)
test_load_image_content(verbose=True)
test_load_ser_reader_old_new_format(verbose=True)
test_load_spectrum_area_scan(verbose=True)
test_load_spectrum_area_scan_not_square(verbose=True)
test_load_spectrum_line_scan(verbose=True)
test_load_spectrum_point(verbose=True)
test_load_stack_image_preview(verbose=True)
test_load_units_scale(verbose=True)
test_read_STEM_TEM_mode(verbose=True)

hyperspy.tests.io.test_hdf5 module

class hyperspy.tests.io.test_hdf5.Example1

Bases: object

test_data()
test_original_metadata()
class hyperspy.tests.io.test_hdf5.TestExample1_10

Bases: hyperspy.tests.io.test_hdf5.Example1

setUp()
class hyperspy.tests.io.test_hdf5.TestExample1_11

Bases: hyperspy.tests.io.test_hdf5.Example1

setUp()
class hyperspy.tests.io.test_hdf5.TestExample1_12

Bases: hyperspy.tests.io.test_hdf5.Example1

setUp()
test_date()
test_time()
class hyperspy.tests.io.test_hdf5.TestLoadingNewSavedMetadata

Bases: object

setUp()
test_binary_string()
test_empty_things()
test_inside_things()
test_signal_inside()
test_simple_things()
class hyperspy.tests.io.test_hdf5.TestPassingArgs

Bases: object

setUp()
tearDown()
test_compression_opts()
class hyperspy.tests.io.test_hdf5.TestSavingMetadataContainers

Bases: object

setUp()
tearDown()
test_general_type_not_working()
test_numpy_general_type()
test_numpy_only_inner_lists()
test_save_long_list(*arg, **kw)
test_save_unicode()
test_title_with_slash()
hyperspy.tests.io.test_hdf5.test_none_metadata()
hyperspy.tests.io.test_hdf5.test_rgba16()
hyperspy.tests.io.test_hdf5.test_strings_from_py2()

hyperspy.tests.io.test_msa module

class hyperspy.tests.io.test_msa.TestExample1

Bases: object

setUp()
test_data()
test_parameters()
class hyperspy.tests.io.test_msa.TestExample2

Bases: object

setUp()
test_data()
test_parameters()

hyperspy.tests.io.test_ripple module

hyperspy.tests.io.test_ripple.generate_files()

Generate the test files that are distributed with HyperSpy.

Unless new features are introduced there shouldn’t be any need to recreate the files.

hyperspy.tests.io.test_ripple.test_ripple()

hyperspy.tests.io.test_tiff module

hyperspy.tests.io.test_tiff.test_rgba16()

Module contents