hyperspy.tests.io.test_msa module¶
-
class
hyperspy.tests.io.test_msa.
TestExample1
¶ Bases:
object
-
setup_method
(method)¶
-
test_data
()¶
-
test_metadata
()¶
-
test_parameters
()¶
-
test_write_load_cycle
()¶
-
-
class
hyperspy.tests.io.test_msa.
TestExample1WrongDate
¶ Bases:
object
-
setup_method
(method)¶
-
test_metadata
()¶
-
-
class
hyperspy.tests.io.test_msa.
TestExample2
¶ Bases:
object
-
setup_method
(method)¶
-
test_data
()¶
-
test_metadata
()¶
-
test_parameters
()¶
-
test_write_load_cycle
()¶
-
-
hyperspy.tests.io.test_msa.
example1_TEM
= {'Detector': {'EELS': {'collection_angle': 3.4, 'collection_angle_units': 'mR', 'dwell_time': 100.0, 'dwell_time_units': 'ms'}}, 'beam_current': 12.345, 'beam_current_units': 'nA', 'beam_energy': 120.0, 'beam_energy_units': 'kV', 'convergence_angle': 1.5, 'convergence_angle_units': 'mR'}¶
-
hyperspy.tests.io.test_msa.
example1_metadata
= {'Acquisition_instrument': {'TEM': {'Detector': {'EELS': {'collection_angle': 3.4, 'collection_angle_units': 'mR', 'dwell_time': 100.0, 'dwell_time_units': 'ms'}}, 'beam_current': 12.345, 'beam_current_units': 'nA', 'beam_energy': 120.0, 'beam_energy_units': 'kV', 'convergence_angle': 1.5, 'convergence_angle_units': 'mR'}}, 'General': {'date': '1991-10-01', 'original_filename': 'example1.msa', 'time': '12:00:00', 'title': 'NIO EELS OK SHELL'}, 'Sample': {'thickness': 50.0, 'thickness_units': 'nm'}, 'Signal': {'binned': True, 'quantity': 'Counts (Intensity)', 'signal_type': 'EELS'}, '_HyperSpy': {'Folding': {'original_axes_manager': None, 'original_shape': None, 'signal_unfolded': False, 'unfolded': False}}}¶
-
hyperspy.tests.io.test_msa.
example1_parameters
= {'BEAMDIAM -nm': 100.0, 'BEAMKV -kV': 120.0, 'CHOFFSET': -168.0, 'COLLANGLE-mR': 3.4, 'CONVANGLE-mR': 1.5, 'DATATYPE': 'XY', 'DATE': '01-OCT-1991', 'DWELLTIME-ms': 100.0, 'ELSDET': 'SERIAL', 'EMISSION -uA': 5.5, 'FORMAT': 'EMSA/MAS Spectral Data File', 'MAGCAM': 100.0, 'NCOLUMNS': 1.0, 'NPOINTS': 20.0, 'OFFSET': 520.13, 'OPERMODE': 'IMAG', 'OWNER': 'EMSA/MAS TASK FORCE', 'PROBECUR -nA': 12.345, 'SIGNALTYPE': 'ELS', 'THICKNESS-nm': 50.0, 'TIME': '12:00', 'TITLE': 'NIO EELS OK SHELL', 'VERSION': '1.0', 'XLABEL': 'Energy', 'XPERCHAN': 3.1, 'XUNITS': 'eV', 'YLABEL': 'Counts', 'YUNITS': 'Intensity'}¶
-
hyperspy.tests.io.test_msa.
example2_TEM
= {'Detector': {'EDS': {'EDS_det': 'SIWLS', 'azimuth_angle': 90.0, 'azimuth_angle_units': 'dg', 'elevation_angle': 20.0, 'elevation_angle_units': 'dg', 'live_time': 100.0, 'live_time_units': 's', 'real_time': 150.0, 'real_time_units': 's'}}, 'Stage': {'tilt_alpha': 45.0, 'tilt_alpha_units': 'dg'}, 'beam_current': 12.345, 'beam_current_units': 'nA', 'beam_energy': 120.0, 'beam_energy_units': 'kV'}¶
-
hyperspy.tests.io.test_msa.
example2_metadata
= {'Acquisition_instrument': {'TEM': {'Detector': {'EDS': {'EDS_det': 'SIWLS', 'azimuth_angle': 90.0, 'azimuth_angle_units': 'dg', 'elevation_angle': 20.0, 'elevation_angle_units': 'dg', 'live_time': 100.0, 'live_time_units': 's', 'real_time': 150.0, 'real_time_units': 's'}}, 'Stage': {'tilt_alpha': 45.0, 'tilt_alpha_units': 'dg'}, 'beam_current': 12.345, 'beam_current_units': 'nA', 'beam_energy': 120.0, 'beam_energy_units': 'kV'}}, 'General': {'date': '1991-10-01', 'original_filename': 'example2.msa', 'time': '12:00:00', 'title': 'NIO Windowless Spectra OK NiL'}, 'Sample': {'thickness': 50.0, 'thickness_units': 'nm'}, 'Signal': {'binned': False, 'quantity': 'X-RAY INTENSITY (Intensity)', 'signal_type': 'EDS'}, '_HyperSpy': {'Folding': {'original_axes_manager': None, 'original_shape': None, 'signal_unfolded': False, 'unfolded': False}}}¶
-
hyperspy.tests.io.test_msa.
example2_parameters
= {'ALPHA-1': '3.1415926535', 'AZIMANGLE-dg': 90.0, 'BEAMDIAM -nm': 100.0, 'BEAMKV -kV': 120.0, 'CHOFFSET': -20.0, 'COMMENT': 'The next two lines are User Defined Keywords and values', 'DATATYPE': 'Y', 'DATE': '01-OCT-1991', 'EDSDET': 'SIWLS', 'ELEVANGLE-dg': 20.0, 'EMISSION -uA': 5.5, 'FORMAT': 'EMSA/MAS Spectral Data File', 'LIVETIME -s': 100.0, 'MAGCAM': 100.0, 'NCOLUMNS': 5.0, 'NPOINTS': 80.0, 'OFFSET': 200.0, 'OPERMODE': 'IMAG', 'OWNER': 'EMSA/MAS TASK FORCE', 'PROBECUR -nA': 12.345, 'REALTIME -s': 150.0, 'RESTMASS': '511.030', 'SIGNALTYPE': 'EDS', 'SOLIDANGL-sR': '0.13', 'TACTLYR -cm': 0.3, 'TAUWIND -cm': 2e-06, 'TBEWIND -cm': 0.0, 'TDEADLYR -cm': 1e-06, 'THICKNESS-nm': 50.0, 'TIME': '12:00', 'TITLE': 'NIO Windowless Spectra OK NiL', 'VERSION': '1.0', 'XLABEL': 'X-RAY ENERGY', 'XPERCHAN': 10.0, 'XPOSITION': 123.0, 'XTILTSTGE-dg': 45.0, 'XUNITS': 'eV', 'YLABEL': 'X-RAY INTENSITY', 'YPOSITION': 456.0, 'YTILTSTGE-dg': 20.0, 'YUNITS': 'Intensity', 'ZPOSITION': 0.0}¶
-
hyperspy.tests.io.test_msa.
minimum_md_om
= {'COMMENT': 'File created by HyperSpy version 1.1.2+dev', 'DATATYPE': 'Y', 'DATE': '', 'FORMAT': 'EMSA/MAS Spectral Data File', 'NCOLUMNS': 1.0, 'NPOINTS': 1.0, 'OFFSET': 0.0, 'OWNER': '', 'SIGNALTYPE': '', 'TIME': '', 'TITLE': '', 'VERSION': '1.0', 'XLABEL': '', 'XPERCHAN': 1.0, 'XUNITS': ''}¶
-
hyperspy.tests.io.test_msa.
my_path
= '/home/francisco/Git/hyperspy/hyperspy/tests/io'¶
-
hyperspy.tests.io.test_msa.
test_minimum_metadata_example
()¶