
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "generated/gallery/11-spin-echo/se_stack_of_blades3D_sequence.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_generated_gallery_11-spin-echo_se_stack_of_blades3D_sequence.py>`
        to download the full example code.

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_generated_gallery_11-spin-echo_se_stack_of_blades3D_sequence.py:


==============================
3D stack-of-blades spin echo
==============================

A slab-selective excitation and 180-degree refocusing pulse form one spin echo,
followed by a PROPELLER line with Cartesian partition encoding. Spoilers
suppress unwanted coherence between repetitions. TE and TR determine T2 and
longitudinal recovery weighting. The overlapping blade centres support
motion-robust 3D structural imaging.

.. GENERATED FROM PYTHON SOURCE LINES 12-32








.. GENERATED FROM PYTHON SOURCE LINES 33-37

Sixteen-line blades
-------------------

Sixteen lines per blade, at every partition.

.. GENERATED FROM PYTHON SOURCE LINES 37-47

.. code-block:: Python


    import pypulseqpp as pp
    from pypulseqpp.sequences import se_stack_of_blades3D_sequence

    baseline = se_stack_of_blades3D_sequence(
        n=96, n_z=8, blade_width=16, te=None, tr=None, n_dummy=0
    )
    print(f"{baseline.num_blocks} blocks, {baseline.duration()[0]:.2f} s")






.. rst-class:: sphx-glr-script-out

 .. code-block:: none

    11520 blocks, 16.38 s




.. GENERATED FROM PYTHON SOURCE LINES 48-50

Sequence diagram
----------------

.. GENERATED FROM PYTHON SOURCE LINES 50-53

.. code-block:: Python


    baseline.paper_plot()




.. image-sg:: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_001.png
   :alt: se stack of blades3D sequence
   :srcset: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_001.png
   :class: sphx-glr-single-img





.. GENERATED FROM PYTHON SOURCE LINES 54-58

Sampling order
--------------

The blades of every partition, over the three k-space axes.

.. GENERATED FROM PYTHON SOURCE LINES 58-61

.. code-block:: Python


    pp.plot.plot_kspace(baseline, color_by="shot")




.. image-sg:: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_002.png
   :alt: se stack of blades3D sequence
   :srcset: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_002.png
   :class: sphx-glr-single-img





.. GENERATED FROM PYTHON SOURCE LINES 62-67

Wider blades
------------

Increasing blade width reduces the number of orientations and increases
the shared central-k-space region.

.. GENERATED FROM PYTHON SOURCE LINES 67-81

.. code-block:: Python


    alternative = se_stack_of_blades3D_sequence(
        n=96, n_z=8, blade_width=32, te=None, tr=None, n_dummy=0
    )






.. rst-class:: sphx-glr-script-out

 .. code-block:: none

                       blocks  duration (s)  acquisitions
    16 lines            11520         16.38          1280
    32 lines            11520         16.38          1280




.. GENERATED FROM PYTHON SOURCE LINES 82-84

.. code-block:: Python

    pp.plot.plot_kspace(alternative, color_by="shot")




.. image-sg:: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_003.png
   :alt: se stack of blades3D sequence
   :srcset: /generated/gallery/11-spin-echo/images/sphx_glr_se_stack_of_blades3D_sequence_003.png
   :class: sphx-glr-single-img






.. rst-class:: sphx-glr-timing

   **Total running time of the script:** (0 minutes 8.749 seconds)


.. _sphx_glr_download_generated_gallery_11-spin-echo_se_stack_of_blades3D_sequence.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download Jupyter notebook: se_stack_of_blades3D_sequence.ipynb <se_stack_of_blades3D_sequence.ipynb>`

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download Python source code: se_stack_of_blades3D_sequence.py <se_stack_of_blades3D_sequence.py>`

    .. container:: sphx-glr-download sphx-glr-download-zip

      :download:`Download zipped: se_stack_of_blades3D_sequence.zip <se_stack_of_blades3D_sequence.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
