From 149b03679b857d259a7539bdc0f46d86db0d4edc Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Mon, 20 Feb 2023 13:37:34 -0500 Subject: [PATCH 1/2] Fix scipy factorized import --- pygeo/pyGeo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeo/pyGeo.py b/pygeo/pyGeo.py index 839b94b0..f077abf7 100644 --- a/pygeo/pyGeo.py +++ b/pygeo/pyGeo.py @@ -8,7 +8,7 @@ from pyspline import Curve, Surface from pyspline.utils import closeTecplot, openTecplot, writeTecplot2D from scipy import sparse -from scipy.sparse.linalg.dsolve import factorized +from scipy.sparse.linalg import factorized # Local modules from . import geo_utils From 87dd700f7f66d23576bb653dc4a8aae2e58821b2 Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Mon, 20 Feb 2023 13:59:20 -0500 Subject: [PATCH 2/2] Fix in pyblock --- pygeo/pyBlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeo/pyBlock.py b/pygeo/pyBlock.py index a49ee0e9..19482ac0 100644 --- a/pygeo/pyBlock.py +++ b/pygeo/pyBlock.py @@ -292,7 +292,7 @@ def fitGlobal(self, greedyReorder=False): NN = sparse.csr_matrix((vals, colInd, rowPtr)) NNT = NN.T NTN = NNT * NN - solve = linalg.dsolve.factorized(NTN) + solve = linalg.factorized(NTN) self.coef = np.zeros((nCtl, 3)) for idim in range(3): self.coef[:, idim] = solve(NNT * pts[:, idim])