From 97cf2f53fd5d41a130b6909d2dc07354b79d2a2b Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Fri, 3 Jan 2025 11:57:28 +0530 Subject: [PATCH] refactor: only load analysis points if not defined in ModelingToolkit --- src/Blocks/Blocks.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Blocks/Blocks.jl b/src/Blocks/Blocks.jl index adb5db6e5..447da8aea 100644 --- a/src/Blocks/Blocks.jl +++ b/src/Blocks/Blocks.jl @@ -29,6 +29,8 @@ include("continuous.jl") export AnalysisPoint, get_sensitivity, get_comp_sensitivity, get_looptransfer, open_loop -include("analysis_points.jl") +@static if !isdefined(ModelingToolkit, :AnalysisPoint) + include("analysis_points.jl") +end end