From 9c6bef1bb1f1da33d234768e08b0e79bf030c39f Mon Sep 17 00:00:00 2001 From: Didier Vezinet Date: Thu, 16 Jan 2025 10:11:08 -0500 Subject: [PATCH] [#1009] Easier debug with strict=True 6 --- tofu/imas2tofu/_comp.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tofu/imas2tofu/_comp.py b/tofu/imas2tofu/_comp.py index 119672129..aeb6d2e6e 100644 --- a/tofu/imas2tofu/_comp.py +++ b/tofu/imas2tofu/_comp.py @@ -217,7 +217,15 @@ def fsig(obj, indt=None, indch=None, stack=None, dcond=dcond): raise Exception(msg) if len(ind) == 1: - sig[jj] = sig[jj][ind[0]] + # DB + try: + sig[jj] = sig[jj][ind[0]] + except Exception as err: + print() + print(ii, jj) + print(ind) + print(sig[jj]) + raise err else: if nsig != 1: msg = ("nsig should be 1!\n"