From 9c7bca8c74baf4864848e71232464b9a2eb511e1 Mon Sep 17 00:00:00 2001 From: Matt Haberland Date: Fri, 14 Jun 2019 11:24:15 -0700 Subject: [PATCH] BUG: optimize: dummy commit to investigate #10303 on CI --- scipy/optimize/_linprog_simplex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scipy/optimize/_linprog_simplex.py b/scipy/optimize/_linprog_simplex.py index 382d948a12c7..442479fa0b64 100644 --- a/scipy/optimize/_linprog_simplex.py +++ b/scipy/optimize/_linprog_simplex.py @@ -90,6 +90,7 @@ def _pivot_col(T, tol=1e-9, bland=False): if ma.count() == 0: return False, np.nan if bland: + # ma.mask is sometimes 0d return True, np.nonzero(ma.mask == False)[0][0] return True, np.ma.nonzero(ma == ma.min())[0][0]