Skip to content

Commit 0a6da18

Browse files
committed
fix getGSI CWW dict case
1 parent 30f2796 commit 0a6da18

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pyGroupedTransforms"
7-
version = "0.3.5"
7+
version = "0.3.6"
88
authors = [
99
{ name="Felix Wirth", email="[email protected]" },
1010
]

src/pyGroupedTransforms/GroupedCoefficients.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ def norms(self, Dict=False, other=None, m=None):
188188
a = self[s.u][ac_in - 1 : ac_in + 2 ** np.sum(j) - 1]
189189
Psi = scipy.linalg.circulant(variances(j[0], m))
190190
if d > 1:
191-
for dd in range(1, d):
191+
for kd in range(1, d):
192192
Psi = np.kron(
193193
Psi,
194-
scipy.linalg.circulant(variances(j[dd], m)),
194+
scipy.linalg.circulant(variances(j[kd], m)),
195195
)
196196

197197
n[i] += a @ Psi.T @ a.T
@@ -217,10 +217,10 @@ def norms(self, Dict=False, other=None, m=None):
217217
a = self[s.u][ac_in - 1 : ac_in + 2 ** np.sum(j) - 1]
218218
Psi = scipy.linalg.circulant(variances(j[0], m))
219219
if d > 1:
220-
for dd in range(1, d):
220+
for kd in range(1, d):
221221
Psi = np.kron(
222222
Psi,
223-
scipy.linalg.circulant(variances(j[dd], m)),
223+
scipy.linalg.circulant(variances(j[kd], m)),
224224
)
225225

226226
n[i] += a @ Psi.T @ a.T

0 commit comments

Comments
 (0)