Skip to content

Commit 0d2a7eb

Browse files
committed
TL: trying something
1 parent d772718 commit 0d2a7eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pySDC/tests/test_helpers/test_fieldsIO.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def testRectilinear(dim, nVar, nSteps, dtypeIdx):
151151
def initGrid(nVar, gridSizes):
152152
dim = len(gridSizes)
153153
coords = [np.linspace(0, 1, num=n, endpoint=False) for n in gridSizes]
154-
u0 = np.array(np.arange(nVar) + 1)[:, *[None] * dim]
154+
s = [None] * dim
155+
u0 = np.array(np.arange(nVar) + 1)[:, *s]
155156
for x in np.meshgrid(*coords, indexing="ij"):
156157
u0 = u0 * x
157158
return coords, u0

0 commit comments

Comments
 (0)