run

Import in python using from mcutils.scripts.round_bvals import run

mcutils.scripts.round_bvals.run(input_bvals: numpy.ndarray, delta_bval: int = 100) → numpy.ndarray[source]

Rounds an array of b-values

All b-values within delta_bval will be set to their median value.

Parameters
  • input_bvals – (N, ) array of input b-values

  • delta_bval – offset of b-value to still be considered a single shell

Returns

(N, ) array of rounded b-values