You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if a non- np.ndarray somehow gets into a Dataset an exception is raised when doing addition/subtraction.
this is because
a = [1,2,3]
a == a
returns True, but
anp = np.array(a)
anp == anp
returns array([ True, True, True], dtype=bool)
I temporarily solved this by writing a make_numpy_array function that returns a np.ndarray.
Perhaps we should solve this also in another way, by replacing the code any(x == y) with something that can handle both array and ndarray.
The text was updated successfully, but these errors were encountered:
Right now if a non-
np.ndarray
somehow gets into aDataset
an exception is raised when doing addition/subtraction.this is because
returns
True
, butreturns
array([ True, True, True], dtype=bool)
I temporarily solved this by writing a
make_numpy_array function
that returns a np.ndarray.Perhaps we should solve this also in another way, by replacing the code
any(x == y)
with something that can handle botharray
andndarray
.The text was updated successfully, but these errors were encountered: