Skip to content

Commit

Permalink
drop type casting from evaluable._numpy_align
Browse files Browse the repository at this point in the history
  • Loading branch information
joostvanzwieten committed Dec 12, 2023
1 parent d70b70d commit b425c2a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nutils/evaluable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4598,11 +4598,6 @@ def _numpy_align(a, b):

a = asarray(a)
b = asarray(b)
if a.dtype != b.dtype:
if _type_order.index(a.dtype) < _type_order.index(b.dtype):
a = astype(a, b.dtype)
else:
b = astype(b, a.dtype)
if not a.ndim:
return _inflate_scalar(a, b.shape), b
if not b.ndim:
Expand Down

0 comments on commit b425c2a

Please sign in to comment.