From d238716f7ac5809919c99bdd886ef5b5db65088a Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Thu, 15 Feb 2024 17:31:27 +0000
Subject: [PATCH] Fix sum notation

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

diff --git a/src/all_building_blocks/base_building_blocks.jl b/src/all_building_blocks/base_building_blocks.jl
index 7aa5e80..5b3a318 100644
--- a/src/all_building_blocks/base_building_blocks.jl
+++ b/src/all_building_blocks/base_building_blocks.jl
@@ -149,7 +149,7 @@ function qval(bb::BaseBuildingBlock, index1, index2)
     if (!isnothing(index1)) && (index1 == index2)
         return zeros(3)
     end
-    sum((i, wv) -> qval(wv), waveform_sequence(bb, index1, index2); init=0.)
+    sum([qval(wv) for (_, wv) in waveform_sequence(bb, index1, index2)]; init=0.)
 end
 qval(bb::BaseBuildingBlock) = qval(bb, nothing, nothing)
 
-- 
GitLab