.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/EELS/EELS_database.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_EELS_EELS_database.py: Get spectra from the EELS database =================================== This example demonstrates how to load EELS spectra from the EELS database in eXSpy. .. GENERATED FROM PYTHON SOURCE LINES 8-12 .. code-block:: Python import exspy import hyperspy.api as hs .. GENERATED FROM PYTHON SOURCE LINES 13-16 Load a core-loss and low-loss EELS spectra from a Ti\ :sub:`3`\Ni\ :sub:`4` alloy from the EELS database. The order parameter is set to "spectrumType" to load the low-loss spectrum as the first item and the core-loss spectrum as the second item. .. GENERATED FROM PYTHON SOURCE LINES 16-18 .. code-block:: Python cl, ll = exspy.data.eelsdb(element=["Ti", "Ni"], order="spectrumType") .. rst-class:: sphx-glr-script-out .. code-block:: none 0%| | 0/2 [00:00 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.837 seconds) .. _sphx_glr_download_auto_examples_EELS_EELS_database.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: EELS_database.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: EELS_database.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: EELS_database.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_