From a48ccc13a559c53ed1b3835468582765db33656e Mon Sep 17 00:00:00 2001 From: phschiele Date: Thu, 9 Nov 2023 23:41:23 +0100 Subject: [PATCH] Support 1.4 + --- dsp/cvxpy_integration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dsp/cvxpy_integration.py b/dsp/cvxpy_integration.py index c5180d2..ecfa2df 100644 --- a/dsp/cvxpy_integration.py +++ b/dsp/cvxpy_integration.py @@ -1,5 +1,9 @@ from cvxpy import Expression, Problem -from cvxpy.reductions.dcp2cone.atom_canonicalizers import CANON_METHODS + +try: + from cvxpy.reductions.dcp2cone.canonicalizers import CANON_METHODS +except ModuleNotFoundError: + from cvxpy.reductions.dcp2cone.atom_canonicalizers import CANON_METHODS from dsp.problem import is_dsp from dsp.saddle_extremum import conjugate, saddle_max, saddle_min