Skip to content

Commit 99d3da3

Browse files
committed
use other.data explicitly when other is an LArray
1 parent 7a7de34 commit 99d3da3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

larray/core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ def _binop(opname):
13591359
def opmethod(self, other):
13601360
if isinstance(other, LArray):
13611361
#TODO: first test if it is not already broadcastable
1362-
other = other.broadcast_with(self)
1362+
other = other.broadcast_with(self).data
13631363
elif isinstance(other, np.ndarray):
13641364
pass
13651365
elif not np.isscalar(other):
@@ -1567,6 +1567,8 @@ def __len__(self):
15671567
def __array__(self, dtype=None):
15681568
return self.data
15691569

1570+
__array_priority__ = 100
1571+
15701572

15711573

15721574
def parse(s):

0 commit comments

Comments
 (0)