Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3e24eb

Browse files
authored
Merge pull request #8610 from eric-wieser/patch-2
BUG: Correct invocation of `expand_dims`
2 parents de2755c + 5cea9ce commit c3e24eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tri/triinterpolate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def get_bending_matrices(self, J, ecc):
898898
pts = self.gauss_pts
899899
for igauss in range(self.n_gauss):
900900
alpha = np.tile(pts[igauss, :], n).reshape(n, 3)
901-
alpha = np.expand_dims(alpha, 3)
901+
alpha = np.expand_dims(alpha, 2)
902902
weight = weights[igauss]
903903
d2Skdksi2 = self.get_d2Sidksij2(alpha, ecc)
904904
d2Skdx2 = _prod_vectorized(d2Skdksi2, H_rot)

0 commit comments

Comments
 (0)