Skip to content

Commit 9ac76fe

Browse files
committed
fix: add missing new file testmelib.py in test/utils/lookupTable
1 parent be0a7a1 commit 9ac76fe

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import numpy as np
2+
3+
4+
def MakeNumpyFile():
5+
x = np.arange(1, 10, 1.0)
6+
y = np.arange(5, 10, 1.0)
7+
z = np.arange(2, 5, 1.0)
8+
9+
xp, yp, zp = np.meshgrid(x, y, z, indexing="ij")
10+
11+
data = xp + 2 * yp - zp
12+
13+
np.save("x.npy", x)
14+
np.save("y.npy", y)
15+
np.save("z.npy", z)
16+
np.save("data.npy", data)
17+
# show the expected result
18+
# f=RegularGridInterpolator((x, y, z), data)
19+
# print(f([2.7,7.4,3.9]))

0 commit comments

Comments
 (0)