Skip to content

Commit

Permalink
[#977] Debugged user_limits for vos computation
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Dec 17, 2024
1 parent d070ff7 commit e7cdb95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tofu/data/_class8_vos.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,13 @@ def _get_user_limits(
np.full(shape_cam, user_limits['Dphi'][1]),
])

# -----------
# clean-up
# ----------

if len(user_limits) == 0:
user_limits = None

return user_limits


Expand Down
7 changes: 7 additions & 0 deletions tofu/data/_class8_vos_broadband.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ def _vos(
phor1 = user_limits['phor1'][key_cam]
dphi = user_limits['dphi'][key_cam]

else:
msg = (
"Something weird with pcross0:\n"
f"user_limits: {user_limits}\n"
)
raise Exception(msg)

else:

# get temporary vos
Expand Down

0 comments on commit e7cdb95

Please sign in to comment.