Skip to content

Commit

Permalink
[#1009] Easier debug with strict=True 6
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Jan 16, 2025
1 parent c62ce76 commit 9c6bef1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tofu/imas2tofu/_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9c6bef1

Please sign in to comment.