Skip to content

Commit

Permalink
[960] debug unit tests 11
Browse files Browse the repository at this point in the history
  • Loading branch information
dvezinet committed Sep 6, 2024
1 parent 99428d4 commit 1d153b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tofu/geom/_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,12 @@ def _Ves_get_sample_checkinputs(
msg += " You provided:\n{}".format(ind)
raise Exception(msg)

return res, domain, resMode, ind.astype(np.int64)
if isinstance(ind, np.ndarray):
ind = ind.astype(np.int64)
elif isinstance(ind, list):
ind = [ii.astype(np.int64) for ii in ind]

return res, domain, resMode, ind


def _Ves_get_sampleEdge(
Expand Down

0 comments on commit 1d153b4

Please sign in to comment.