Opts#

class pulserver.Opts(adc_dead_time=None, adc_raster_time=None, block_duration_raster=None, gamma=None, grad_raster_time=None, grad_unit='Hz/m', max_grad=None, max_slew=None, rf_dead_time=None, rf_raster_time=None, rf_ringdown_time=None, rise_time=None, slew_unit='Hz/m/s', B0=None)[source]#

Bases: object

System limits of an MR scanner.

Note: Default values can be overwritten by creating an Opts object and calling set_as_default.

adc_dead_time#

Dead time for ADC readout pulses.

Type:

float, default=0

adc_raster_time#

Raster time for ADC readout pulses.

Type:

float, default=100e-9

block_duration_raster#

Raster time for block durations.

Type:

float, default=10e-6

gamma#

Gyromagnetic ratio. Default gamma is specified for Hydrogen.

Type:

float, default=42.576e6

grad_raster_time#

Raster time for gradient waveforms.

Type:

float, default=10e-6

grad_unit#

Unit of maximum gradient amplitude. Must be one of ‘Hz/m’, ‘mT/m’ or ‘rad/ms/mm’.

Type:

str, default=’Hz/m’

max_grad#

Maximum gradient amplitude.

Type:

float, default=40 mT/m

max_slew#

Maximum slew rate.

Type:

float, default=170 T/m/s

rf_dead_time#

Dead time for radio-frequency pulses.

Type:

float, default=0

rf_raster_time#

Raster time for radio-frequency pulses.

Type:

float, default=1e-6

rf_ringdown_time#

Ringdown time for radio-frequency pulses.

Type:

float, default=0

rise_time#

Rise time for gradients.

Type:

float, default=0

slew_unit#

Unit of maximum slew rate. Must be one of ‘Hz/m/s’, ‘mT/m/ms’, ‘T/m/s’ or ‘rad/ms/mm/ms’.

Type:

str, default=’Hz/m/s’

B0#

Main magnetic field strength (in tesla)

Type:

float, default=1.5

Raises:

ValueError – If invalid grad_unit is passed. Must be one of ‘Hz/m’, ‘mT/m’ or ‘rad/ms/mm’. If invalid slew_unit is passed. Must be one of ‘Hz/m/s’, ‘mT/m/ms’, ‘T/m/s’ or ‘rad/ms/mm/ms’.

Parameters:
  • adc_dead_time (float)

  • adc_raster_time (float)

  • block_duration_raster (float)

  • gamma (float)

  • grad_raster_time (float)

  • grad_unit (str)

  • max_grad (float)

  • max_slew (float)

  • rf_dead_time (float)

  • rf_raster_time (float)

  • rf_ringdown_time (float)

  • rise_time (float)

  • slew_unit (str)

  • B0 (float)

Methods

__init__

reset_default

set_as_default

Attributes

default