Yeah, they are related but it's a bit subtle. The problem with the old code was that if you pass in a numpy array as an array index it does an element wise comparison to Ellipsis and then complains that you need to use .all() or .any() on the result. So this test now checks that case and thus throws an error with the previous implementation.
Yeah, they are related but it's a bit subtle. The problem with the old code was that if you pass in a numpy array as an array index it does an element wise comparison to Ellipsis and then complains that you need to use
.all()
or.any()
on the result. So this test now checks that case and thus throws an error with the previous implementation.