Skip to content

Commit

Permalink
[960] debug unit tests 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Sep 6, 2024
1 parent 1c89dcc commit 038b96a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tofu/geom/_comp_solidangles.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,13 @@ def _calc_solidangle_apertures_prepare(
ap_nin_x, ap_nin_y, ap_nin_z = None, None, None
else:
lka = list(apertures.keys())
ap_ind = np.r_[
0, np.cumsum([apertures[k0]['poly_x'].size for k0 in lka])
]
ap_ind = np.array(
[
0,
np.cumsum([apertures[k0]['poly_x'].size for k0 in lka]),
],
dtype=np.int64,
)
ap_x = np.concatenate([apertures[k0]['poly_x'] for k0 in lka])
ap_y = np.concatenate([apertures[k0]['poly_y'] for k0 in lka])
ap_z = np.concatenate([apertures[k0]['poly_z'] for k0 in lka])
Expand Down

0 comments on commit 038b96a

Please sign in to comment.