File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def set_int_index(series: Series) -> Series:
137137 """
138138 try :
139139 series .index = series .index .str [1 :].astype (int )
140- except :
140+ except ValueError as _ :
141141 series .index = series .index .str .replace (".*#" , "" , regex = True ).astype (int )
142142 return series
143143
Original file line number Diff line number Diff line change 2929 # mps io is only supported via highspy
3030 io_apis .append ("mps" )
3131
32- params = [
33- (name , io_api , with_names )
34- for (name , io_api , with_names ) in list (
35- itertools .product (available_solvers , io_apis , with_names )
36- )
37- if "lp" in io_api or with_names == False
38- ]
32+ params = list (itertools .product (available_solvers , io_apis , with_names ))
3933
4034direct_solvers = ["gurobi" , "highs" , "mosek" ]
4135for solver in direct_solvers :
You can’t perform that action at this time.
0 commit comments