From ea95201db45bfa6c465f7430289ce2fc391ac8fd Mon Sep 17 00:00:00 2001 From: Nicolas Ochsner Date: Mon, 20 Dec 2021 17:11:10 +0100 Subject: [PATCH] Fix Iterable imports in all places. --- reframed/cobra/transcriptomics.py | 2 +- reframed/solvers/cplex_solver.py | 2 +- reframed/solvers/gurobi_solver.py | 2 +- reframed/solvers/optlang_solver.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reframed/cobra/transcriptomics.py b/reframed/cobra/transcriptomics.py index c6b2810..c8d9d72 100644 --- a/reframed/cobra/transcriptomics.py +++ b/reframed/cobra/transcriptomics.py @@ -4,7 +4,7 @@ from .simulation import FBA, pFBA from math import inf from numpy import percentile -from collections import Iterable +from collections.abc import Iterable def marge(model, expr_a=None, expr_b=None, rel_expr=None, constraints_a=None, constraints_b=None, diff --git a/reframed/solvers/cplex_solver.py b/reframed/solvers/cplex_solver.py index e565803..79c80a3 100644 --- a/reframed/solvers/cplex_solver.py +++ b/reframed/solvers/cplex_solver.py @@ -1,5 +1,5 @@ -from collections import Iterable +from collections.abc import Iterable from .solver import Solver, VarType, Parameter, default_parameters from .solution import Solution, Status from cplex import Cplex, infinity, SparsePair diff --git a/reframed/solvers/gurobi_solver.py b/reframed/solvers/gurobi_solver.py index 46cb516..74cfa48 100644 --- a/reframed/solvers/gurobi_solver.py +++ b/reframed/solvers/gurobi_solver.py @@ -1,4 +1,4 @@ -from collections import Iterable +from collections.abc import Iterable from .solver import Solver, VarType, Parameter, default_parameters from .solution import Solution, Status from gurobipy import Model as GurobiModel, GRB, quicksum diff --git a/reframed/solvers/optlang_solver.py b/reframed/solvers/optlang_solver.py index 4256fc5..dd75e15 100644 --- a/reframed/solvers/optlang_solver.py +++ b/reframed/solvers/optlang_solver.py @@ -4,7 +4,7 @@ from .solution import Solution, Status from math import inf from warnings import warn -from collections import Iterable +from collections.abc import Iterable status_mapping = {