From d50728ca774ff6a94051e891995c39258129bdf0 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Sun, 28 Jan 2024 15:29:57 +0000
Subject: [PATCH] bval is trace of bmat

---
 src/pathways.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pathways.jl b/src/pathways.jl
index ba0f261..792ebfc 100644
--- a/src/pathways.jl
+++ b/src/pathways.jl
@@ -177,6 +177,6 @@ Only gradients active while the spins are in the transverse plane are considered
 By default gradients that are affected by user-provided `scale` or `rotate` parameters (e.g., bvals/bvecs) are ignored.
 You can set `scale` and/or `rotate` to specific symbols to only consider gradients that are affected by speficic `scale`/`rotate` parameters
 """
-bval(pathway::Pathway; scale=nothing, rotate=nothing) = norm(bmat(pathway; scale, rotate))
+bval(pathway::Pathway; scale=nothing, rotate=nothing) = tr(bmat(pathway; scale, rotate))
 
 end
\ No newline at end of file
-- 
GitLab