From 9794f62892cb342fdd2fe4147c0dd1d850b1a210 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Tue, 30 Jan 2024 15:17:03 +0000
Subject: [PATCH] Do not print vectors of variables without concrete values

---
 src/building_blocks.jl | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/building_blocks.jl b/src/building_blocks.jl
index ba42e38..1419e60 100644
--- a/src/building_blocks.jl
+++ b/src/building_blocks.jl
@@ -180,7 +180,12 @@ function _robust_value(possible_number::VariableType)
     end
 end
 
-_robust_value(possible_vector::AbstractVector) = _robust_value.(possible_vector)
+function _robust_value(possible_vector::AbstractVector) 
+    result = _robust_value.(possible_vector)
+    if any(isnothing.(result))
+        return nothing
+    end
+end
 
 function Base.show(io::IO, printer::BuildingBlockPrinter)
     block = printer.bb
-- 
GitLab