DiffusionPreparation.scale_for

DiffusionPreparation.scale_for#

DiffusionPreparation.scale_for()[source]#

Return the gradient-amplitude factor for a requested b-value.

Parameters:

b_value (float) – Wanted b-value (s/mm^2), from zero to the design value.

Returns:

Amplitude factor for pypulseqpp.scale_grad() applied to g_diff.

Return type:

float

Raises:

ValueError – If b_value is negative or above the design value.