run

Import in python using from mcot.core._scripts.round_bvals import run

mcot.core._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