From 8f1e241ba25c05b26bc47270fd3e7089a31f09f4 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Fri, 26 Apr 2024 12:07:23 +0100 Subject: [PATCH] Raise error if there is no gradient orientation --- src/containers/building_blocks.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/containers/building_blocks.jl b/src/containers/building_blocks.jl index 0ce1465..62f4ae8 100644 --- a/src/containers/building_blocks.jl +++ b/src/containers/building_blocks.jl @@ -79,6 +79,7 @@ function gradient_orientation(bb::BaseBuildingBlock) return gradient_orientation(e) end end + error("No gradient orientation found for building block $bb") end -- GitLab