Skip to content

Resolve "Numpy: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future"

# orders = [ 0  1 -1] <class 'numpy.ndarray'>
# _order = 0 <class 'int'>
# np.argwhere(orders == _order) = [[0]] <class 'numpy.ndarray'>

Closes #607 (closed)

Code was trying to do an integer conversion on a two dimensional array with a single item in it.

Merge request reports