busse_centre_echo

busse_centre_echo#

blochsim.trains.busse_centre_echo()[source]#

The centre echo whose contrast-equivalent echo time is nearest TE.

A Busse train is designed around its centre echo, so moving the centre changes the train and with it the contrast the centre is acquired at. Every centre the trains allow is tried at once: the train is designed for it, and effective_te() of its centre echo is compared with TE.

length and the three angles broadcast to several trains that share the centre echo – the trains of a shot-dependent schedule. A centre is kept only when every one of them can be designed for it, and the echo time is that of the first.

Parameters:
  • TE (float) – Contrast-equivalent echo time asked for, in ms.

  • length (int or array-like) – Refocusing pulses of each train, startup pulses included.

  • ESP (float) – Echo spacing, in ms.

  • first_ESP (float, default=None) – Time from the excitation to the first echo, in ms; ESP by default.

  • min_flip (float or array-like, default=25.0) – Lowest flip angle before the centre echo, in degrees.

  • centre_flip (float or array-like, default=70.0) – Flip angle at the centre echo, in degrees.

  • max_flip (float or array-like, default=120.0) – Flip angle of the first and the last pulse, in degrees.

  • startup_echoes (int, default=6) – Leading pulses whose echoes are not acquired. The centre is an acquired echo.

  • initial_decay (float, default=1.3) – Time constant of the opening transient, in echoes.

  • T1 (float, default=1000.0) – Longitudinal relaxation time of the reference tissue, in ms.

  • T2 (float, default=100.0) – Transverse relaxation time of the reference tissue, in ms.

  • threads (int, default=0) – Threads to spread the trains over; 0 sizes the pool to the batch.

Returns:

  • centre_echo (int) – Zero-based index of the centre pulse, startup pulses included. Of two centres equally near, the earlier.

  • TE (float) – Its contrast-equivalent echo time, in ms.

Raises:

ValueError – If TE, the timing or a prescription is not valid, or no centre gives every train a design.

Examples

>>> from blochsim.trains import busse_centre_echo
>>> centre, te = busse_centre_echo(60.0, 66, 3.672, max_flip=100.0)
>>> centre
38