.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "master-tutorial/3_exercises/plot_2_convention.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_master-tutorial_3_exercises_plot_2_convention.py: Convention of spin Hamiltonian ****************************** .. include:: ../../exercises/2.inc .. GENERATED FROM PYTHON SOURCE LINES 7-10 .. code-block:: Python import magnopy .. GENERATED FROM PYTHON SOURCE LINES 11-13 Exercise 1 ========== .. GENERATED FROM PYTHON SOURCE LINES 14-32 .. code-block:: Python convention_1 = magnopy.Convention( name="H-1", multiple_counting=False, spin_normalized=False, c22=-1 ) convention_2 = magnopy.Convention( name="H-2", multiple_counting=True, spin_normalized=False, c22=-1 ) convention_3 = magnopy.Convention( name="H-3", multiple_counting=True, spin_normalized=False, c22=0.5 ) convention_4 = magnopy.Convention( name="H-4", multiple_counting=False, spin_normalized=True, c22=-1 ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.001 seconds) .. _sphx_glr_download_master-tutorial_3_exercises_plot_2_convention.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_2_convention.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_2_convention.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_2_convention.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_