From a98ba70543ec66816c88695d0c376c975295fba4 Mon Sep 17 00:00:00 2001 From: Didier Vezinet Date: Thu, 16 Jan 2025 10:28:55 -0500 Subject: [PATCH] [#1009] Easier debug with strict=True 9 --- tofu/imas2tofu/_comp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tofu/imas2tofu/_comp.py b/tofu/imas2tofu/_comp.py index 2f3a2d8f5..388387ae6 100644 --- a/tofu/imas2tofu/_comp.py +++ b/tofu/imas2tofu/_comp.py @@ -220,7 +220,9 @@ def fsig(obj, indt=None, indch=None, stack=None, dcond=dcond): if len(ind) == 1: if len(sig[jj]) < ind[0] + 1: msg = ( - "dcond[{ii}]['ind'] = {dcond[ii]['ind']} so ind = {ind} but len(sig[{jj}]) = {len(sig[jj])}" + f"dcond[{ii}]['ind'] = {dcond[ii]['ind']} " + f"so ind = {ind} " + "but len(sig[{jj}]) = {len(sig[jj])}" ) raise Exception(msg) else: