From 6016c2ff62c121d07634ec0ca81ca9a019ccf03c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Oct 2021 09:39:11 +0200 Subject: model: Set DFATOOL_DTREE_ENABLED=0 to disable dtree support --- lib/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/model.py') diff --git a/lib/model.py b/lib/model.py index 06ff25c..844ec89 100644 --- a/lib/model.py +++ b/lib/model.py @@ -248,6 +248,7 @@ class AnalyticModel: if not self.fit_done: paramfit = ParamFit() + tree_allowed = bool(int(os.getenv("DFATOOL_DTREE_ENABLED", "1"))) tree_required = dict() for name in self.names: @@ -264,7 +265,7 @@ class AnalyticModel: safe_functions_enabled=safe_functions_enabled ): paramfit.enqueue(key, param, args, kwargs) - else: + elif tree_allowed: tree_required[name][attr] = self.attr_by_name[name][ attr ].depends_on_any_param() -- cgit v1.2.3