Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/dwi/gradient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ namespace MR
// write the scheme as interpreted back into the header if:
// - vector normalisation effect is large, regardless of whether or not b-value scaling was applied
// - gradient information was pulled from file
if (exceeds_single_precision || get_options ("grad").size() || get_options ("fslgrad").size())
// - explicit b-value scaling is requested
if (exceeds_single_precision || get_options ("grad").size() || get_options ("fslgrad").size() || bvalue_scaling != BValueScalingBehaviour::Auto)
set_DW_scheme (const_cast<Header&> (header), grad);

INFO ("found " + str (grad.rows()) + "x" + str (grad.cols()) + " diffusion gradient table");
Expand Down